HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] How to enable "DialString" processing form dialrules?



Hello Aidan

oh, thank for the info.
I should have read manual more carefuly to see that "DialStringRules"
must be present in device configuration file as well.

Now all works as needed.

Thak you and wish you a nice day

Tomas Novosad
------------ Původní zpráva ------------
Od: Aidan Van Dyk <aidan@xxxxxxxx>
Předmět: Re: [hylafax-users] How to enable "DialString" processing form
dialrules?
Datum: 13.1.2009 17:17:57
----------------------------------------
Tomas,

There are 3 "system" used dialstring rules, and they are all used for
different things.

CanonicalNumber:
    Used by *everything* as the definitive way to translate a given dial
    number it's "canonical" form so that (hopefully) all jobs to this same
    number but inputted in different formats have the same "canonical" form
    and match.

DisplayNumber:
    Used by the "sendfax client" to "sanitize" the given dial number to
    remove anything (like PIN, LD code, etc) that shouldn't be "displayed"
publicly
    via the client-server protocol.  A job has the "dial" number and an
    "external" number, external being what it shows others.

DialString:
   Used by faxsend to "transform" the given number into what needs to be
   directly given to the modem for dialing (usually stuff like prefix
   with a 9, etc)


So, CanonoicalNumber is the only one that "everything" (like the logs
you show below) will use.  DisplayNumber is*only* sed by
sendfax/sendpage clients, and DialString is only used by
faxsend/pagesend when actually dialing.

a.


* Tomas Novosad <kbbl@xxxxxxxx> [090113 10:47]:
> Hello,
> 
> i have hylafax 5.2.8 running with no problem for sime time now.
> Today i need to change a bit those default dialrules.
> I have my own dialrules file, but Faxq somehow only process "CanonicalNumber"
rules
> and does not apply "DialString" and "DisplayNumber" rules.
> 
> My dialrules file is successfuly loaded,
> but when processing new job only "CanonicalNumber" rules are applied
> see the log below.
> 
> Do "DialString" rules have to be explicitly enabled in "config" file?
> 
> Thanks for any help.
> Tomáš Novosad
> 
> 
> Logs follow:
> Submitting of new job:
> Jan 13 16:37:46 vmtnv09 FaxQueuer[17227]: SUBMIT JOB 133
> Jan 13 16:37:46 vmtnv09 FaxQueuer[17227]: JOB 133 (suspended dest  pri 127 tts
0:00:00 killtime 2:59:00): CREATE
> Jan 13 16:37:46 vmtnv09 FaxQueuer[17227]: Apply CanonicalNumber rules to
"00420972"
> Jan 13 16:37:46 vmtnv09 FaxQueuer[17227]: --> match rule "^00", result now
"+11420972"
> Jan 13 16:37:46 vmtnv09 FaxQueuer[17227]: --> return result "+11420972"
> Jan 13 16:37:46 vmtnv09 FaxQueuer[17227]: JOB 133 (suspended dest +11420972
pri 127 tts 0:00:00 killtime 2:59:00): CONTROL
> As you can see, only "CanonicalNumber" rules are applied - no "DialString"
rules
> 
> 
> Here is log of loading my dialrules file
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: Define AreaCode = "7"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: Define CountryCode = "420"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: Define LongDistancePrefix = "0"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: Define InternationalPrefix = "00"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: Define Area = "7"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: Define Country = "420"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: Define IDPrefix = "00"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: Define LDPrefix = "0"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: Define WS = "         "
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: CanonicalNumber := [
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "%.*" = ""
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[abcABC]" = "2"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[defDEF]" = "3"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[ghiGHI]" = "4"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[jklJKL]" = "5"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[mnoMNO]" = "6"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[prsPRS]" = "7"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[tuvTUV]" = "8"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[wxyWXY]" = "9"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[^+0-9]+" = ""
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "^00" = "+11"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "^0" = "+420"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "^[^+]" = "+4207&"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: ]
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: DialString := [
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "%.*" = ""
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[abcABC]" = "2"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[defDEF]" = "3"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[ghiGHI]" = "4"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[jklJKL]" = "5"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[mnoMNO]" = "6"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[prsPRS]" = "7"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[tuvTUV]" = "8"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[wxyWXY]" = "9"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[^+0-9]+" = ""
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "^00" = "+11"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "^0" = "+420"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "^[^+]" = "+4207&"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: ]
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: DisplayNumber := [
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "%.*" = ""
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[abcABC]" = "2"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[defDEF]" = "3"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[ghiGHI]" = "4"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[jklJKL]" = "5"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[mnoMNO]" = "6"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[prsPRS]" = "7"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[tuvTUV]" = "8"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[wxyWXY]" = "9"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "[^+0-9]+" = ""
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "^00" = "+66"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "^0" = "+420"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]:   "^[^+]" = "+4207&"
> Jan 13 16:34:55 vmtnv09 FaxQueuer[17227]: ]
> 
> 
> 
> 
> 
> ____________________ 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*



-- 
Aidan Van Dyk                                             aidan@xxxxxxxx
Senior Software Developer                          +1 215 825-8700 x8103
iFAX Solutions, Inc.                                http://www.ifax.com/




Tomáš Novosad
mailto:kbbl@xxxxxxxx
jabber:kbbl@xxxxxxxxx
icq:499392313
+420737309887
# rm -rf /*


____________________ 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*




Project hosted by iFAX Solutions