HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
[hylafax-users] dialtest handling "(" in dial strings differently?
Hello all,
I just hit some unclear behaviour when testing some dial rules with
dialtest. (Hylafax 4.4.4, from debian lenny)
Using the standard dialrules file, I changed the DialString ruleset to strip
'/', '(' and ')' additionally:
DialString := [
[-${WS}./]+ = ! strip syntactic sugar
\( =
\) =
[abcABC] = 2 ! these convert alpha to
numbers
[defDEF] = 3
[ghiGHI] = 4
[jklJKL] = 5
[mnoMNO] = 6
[prsPRS] = 7
[tuvTUV] = 8
[wxyWXY] = 9
^[+]${Country} = ${LDPrefix} ! long distance call
^[+] = ${IDPrefix} ! international call
]
Looks ok so far, but if I try to test a dial string like "(0228) 555-123",
this happens:
ready> (0228) 555-123
input = "(0228) 555-123"
Apply rules to "0228"
--> return result "0228"
(0228) = "0228"
ready>
If I use other notations like 0228/555-123 everything is fine:
ready> 0228/555-123
input = "0228/555-123"
Apply CanonicalNumber rules to "0228/555-123"
--> match rule "[^+0-9]+", result now "0228555-123"
--> match rule "[^+0-9]+", result now "0228555123"
--> match rule "^0", result now "+49228555123"
--> return result "+49228555123"
Apply DialString rules to "0228/555-123"
--> match rule "[- ./]+", result now "0228555-123"
--> match rule "[- ./]+", result now "0228555123"
--> return result "0228555123"
Apply DisplayNumber rules to "0228/555-123"
--> return result "0228/555-123"
canonical = "+49228555123"
dial-string = "0228555123"
display = "0228/555-123"
ready>
Do I miss something here or is this just a special behaviour of dialtest?
(Reading the man page suggests this, as expressions like "setname(string)"
are allowed.)
Thanks in advance and kind regards
Stefan
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*