HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
[hylafax-users] dialrules confusion...
hi!
i'm confused: i'm trying to set up a fax/mail gateway. it works fine, but not
if you supply a dialstring with a + in front. i'm using faxmail with the
direct delivery option -d and a passive AVM isdn card with their latest
CAPI2.0 release for linux. i'm running suse 7.1 .
my isdnlog logs the following (numbers are modified):
---
Mar 19 10:33:26 fax-gw isdnlog: Mar 19 10:33:26 tei 67 calling +41 1/1234567,
Schweiz, Zurich with TN +41.1.213.45.67 Invalid number format (address
incomplete) (Public network serving local user)
Mar 19 10:33:26 fax-gw isdnlog: Mar 19 10:33:26 tei 67 calling +41 1/1234567,
Schweiz, Zurich with TN +41.1.213.45.67 Invalid number format (address
incomplete) (User)
Mar 19 10:33:26 fax-gw isdnlog: Mar 19 10:33:26 tei 67 calling +41 1/1234567,
Schweiz, Zurich with TN +41.1.213.45.67 Invalid number format (address
incomplete) (User)
Mar 19 10:33:26 fax-gw isdnlog: Mar 19 10:33:26 tei 67 calling +41 1/1234567,
Schweiz, Zurich with TN +41.1.213.45.67 HANGUP Invalid number format (address
incomplete) (Public network serving
local user)
---
my config.faxCAPI (part):
---
CountryCode: 41 # CH
LongDistancePrefix: 0
InternationalPrefix: 00
AreaCode: 1
DialStringRules etc/dialrules.europe
[...]
---
my dialrules.europe (in /var/spool/fax/etc/)
Area=${AreaCode} ! local area code
Country=${CountryCode} ! local country code
IDPrefix=${InternationalPrefix} ! prefix for placing an international call
LDPrefix=${LongDistancePrefix} ! prefix for placing a long distance call
WS=" " ! our notion of white space
CanonicalNumber := [
#.* = ! strip calling card stuff
[abcABC] = 2 ! these convert alpha to
numbers
[defDEF] = 3
[ghiGHI] = 4
[jklJKL] = 5
[mnoMNO] = 6
[prsPRS] = 7
[tuvTUV] = 8
[wxyWXY] = 9
[^+0-9]+ = ! strip white space etc.
^${IDPrefix} = + ! replace int. dialing code
^${LDPrefix} = +${Country} ! STD call (long distance)
^[^+] = +${Country}${Area}& ! else cononicalize
]
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
^${IDPrefix}${Country}${Area} = ! local phone call
^${LDPrefix}${Area} = ! local phone call
^${IDPrefix}${Country} = ${LDPrefix} ! STD call (long distance)
^[+]${Country}${Area} = ! local phone call
^[+]${Country} = ${LDPrefix} ! STD call (long distance)
^[+] = ${IDPrefix} ! international call
---
another problem here: where does the
{AreaCode} string come from?
it seems not to use the one from /var/spool/fax/etc/config nor
/var/spool/fax/etc/config.faxCAPI
it take the usa setting per default. but it doesn't bother me right now. i
can override them, nevertheless the dialed number (using faxmail) seems to
ignore (or not using these dialrules) at all.
thank you for any help,
sascha
____________________ HylaFAX(tm) Users Mailing List _______________________
To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null