HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unable to convert dial string to canonical format



Ah, I think it's a missunderstanding on how the dialriles works.

There are 3 well known rule set names: Canonical Number, to convert the
number to canonical format, DialString - to prepare a dial string
before using it to dial the telephone, and DisplayNumber - to convert a
dial string to an external form which might hide private information
(i.e. PIN, CCard).

It loks like you've correctly been able to change #15 to the correct
Canonical form, but you forcot to change the DialString rule .  The
result of the DialString rule is what is actually used by HylaFAX to
dial.

a.

On 14 Feb, Ralf Sipple wrote:
> On Sat, Feb 13, 1999 at 05:36:03PM -0500, Aidan Van Dyk wrote:
>> There is a program called dialtest which allows you to test the
>> dialrules and see how it is working.
>> 
> Hi Aidan,
> 
> thank for this. I tried it with my dialrules:
> 
> carnivore:/var/spool/fax/etc # dialtest -a 711 -c 49 -i 00 -l 0 dialrules.ralfs 
> dialrules.ralfs: line 134577988: Define AreaCode = "711"
> dialrules.ralfs: line 134577988: Define CountryCode = "49"
> dialrules.ralfs: line 134577988: Define InternationalPrefix = "00"
> dialrules.ralfs: line 134577988: Define LongDistancePrefix = "0"
> dialrules.ralfs: line 19: Define Area = "711"
> dialrules.ralfs: line 20: Define Country = "49"
> dialrules.ralfs: line 21: Define IDPrefix = "00"
> dialrules.ralfs: line 22: Define LDPrefix = "0"
> dialrules.ralfs: line 24: Define WS = "         "
> dialrules.ralfs: line 33: CanonicalNumber := [
> dialrules.ralfs: line 35:   "^#" = "+497117777206"
> dialrules.ralfs: line 36:   "[abcABC]" = "2"
> dialrules.ralfs: line 37:   "[defDEF]" = "3"
> dialrules.ralfs: line 38:   "[ghiGHI]" = "4"
> dialrules.ralfs: line 39:   "[jklJKL]" = "5"
> dialrules.ralfs: line 40:   "[mnoMNO]" = "6"
> dialrules.ralfs: line 41:   "[prsPRS]" = "7"
> dialrules.ralfs: line 42:   "[tuvTUV]" = "8"
> dialrules.ralfs: line 43:   "[wxyWXY]" = "9"
> dialrules.ralfs: line 44:   "[^+0-9]+" = ""
> dialrules.ralfs: line 45:   "^00" = "+"
> dialrules.ralfs: line 46:   "^0" = "+49"
> dialrules.ralfs: line 47:   "^[^+]" = "+49711&"
> dialrules.ralfs: line 48: ]
> dialrules.ralfs: line 54: DialString := [
> dialrules.ralfs: line 55:   "[-         .]+" = ""
> dialrules.ralfs: line 56:   "[abcABC]" = "2"
> dialrules.ralfs: line 57:   "[defDEF]" = "3"
> dialrules.ralfs: line 58:   "[ghiGHI]" = "4"
> dialrules.ralfs: line 59:   "[jklJKL]" = "5"
> dialrules.ralfs: line 60:   "[mnoMNO]" = "6"
> dialrules.ralfs: line 61:   "[prsPRS]" = "7"
> dialrules.ralfs: line 62:   "[tuvTUV]" = "8"
> dialrules.ralfs: line 63:   "[wxyWXY]" = "9"
> dialrules.ralfs: line 64:   "^0049711" = ""
> dialrules.ralfs: line 65:   "^0711" = ""
> dialrules.ralfs: line 66:   "^0049" = "0"
> dialrules.ralfs: line 67:   "^[+]49711" = ""
> dialrules.ralfs: line 68:   "^[+]49" = "0"
> dialrules.ralfs: line 69:   "^[+]" = "00"
> dialrules.ralfs: line 70: ]
> ready> #15
> Apply CanonicalNumber rules to "#15"
> --> match rule "^#", result now "+49711777720615"
> --> return result "+49711777720615"
> Apply DialString rules to "#15"
> --> return result "#15"
> Apply DisplayNumber rules to "#15"
> --> return result "#15"
> canonical = "+49711777720615"
> dial-string = "#15"
> display = "#15"
> ready> 
> 
> They work exactly as expected. As I already supected in my previous mail
> there must be something else that goes wrong. I guess that hylafax has a
> problem with the resulting dialstring.
> 
> Ralf
> 





Project hosted by iFAX Solutions