HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: help: need dialrules for ZA
Hello,
There must be a solution within dialrules for that but why not try this;
The following command line assumes that your ascii fax number database has
one entry at a line and each entry contains a pair of brackets you want to
lose. If this is not the case forget all about it!
cat your_fax_db |awk -F "(" '{print($1,$2)}' |awk -F ")" '{print($1,$2)}'
> your_new_fax_DB
(These should be on one line)
Hope it works!
Emre Sezginer
METU Computer Center
/____/
On Tue, 15 Apr 1997, Fred Meyer wrote:
> Hi folks,
>
> ...i've got some trouble setting up the proper dialrules for my
> environment.
>
> The fax numbers are comming out of a database, where they don't have to
> fit into a cannonical format (sigh)...
> It is quite common, that the numbers are stored with brackets in it,
> which is what you find here on a business card quite often.
>
> ...the dialrules that ship with HylaFAX v4.0pl1 don't handle this
> properly.
>
> Help anyone?
> I'll offer a greeting card from SA as a reward ;-)
>
> TIA,
> fred
>
> ...here is what the dialrules SHOULD do:
>
> Country-Code: 27
> Aera-Code: 11 (i.e. Johannesburg)
> Long-Dist.: 0
> Internat.: 09
>
>
> -> dial "(011)123-456" should result in:
>
> cannonically: +2711123456
> dialstring: 123456
>
> -> dial "(021)123-456" (Capetown) should result in:
>
> cannonically: +2721123456
> dialstring: 021123456
>
> -> dial "+49 (171) 12345" (Germany) should result in:
>
> cannonically: +4917112345
> dialstring: 094917112345
>
> ...sometime you find even this:
>
> -> dial "+27 (0)11 123-4567" (Johannesburg) should result in:
>
> cannonically: +27111234567
> dialstring: 1234567
>
> -> dial "+27 (0)21 123-4567 (Capetown) should result in:
>
> cannonically: +27211234567
> dialstring: 0211234567
>
>