John Harragin
2003-Jun-09 11:02 UTC
[Asterisk-Users] Question for someone running hylafax off *.
Hi, I am setting up a hylafax server. From what I've read so far, hylafax supports CID numbers and names but currently does not support DID. I assume I can do something like this... [40faxDIDs] exten => _87[5-8]X,1,SetVar(CALLERIDNAME=${EXTEN}) exten => _87[5-8]X,2,Dial(Zap/g${hylafaxMODEMGROUP}) ...and use the CIDName variable in hylafax to route the faxes to the appropriate destination. My question is this, is anyone doing something like this, and if so, what is the best way to accomplish the routing. Thanks, John This e-mail was scanned and found clean by Monroe-Woodbury CSD Antivirus.
David Carr
2003-Jun-09 12:29 UTC
[Asterisk-Users] Question for someone running hylafax off *.
I think the easiest way is like this: exten => 124,1,SetCIDName(jmcdonald) exten => 124,2,Dial(${FAX}) exten => 125,1,SetCIDName(bsmith) exten => 125,2,Dial(${FAX}) Then in your hylafax FaxDispatch file put SENDTO=${CIDNAME}@mydomain.com Remember to set up your hylafax config file with the right pattern-match strings CIDNumber: "CALLER NUMBER: " # pattern string for phone number info CIDName: "CALLER NAME: " # pattern string for identity info for whatever your modem gives you for the caller ID strings. You have to hard-code extensions to route to usernames anyway, so I figure it's as easy to do that in extensions.conf as anywhere else. However, if you want to pass CIDNumber instead of CIDName through, you can do it with exten => 124,1,SetCallerID(${EXTEN}) in extensions.conf and case "$CIDNUMBER" in 435*) SENDTO=lee; FILETYPE=pdf;; # all faxes from area code 435 5059627777) SENDTO=amy; FILETYPE=tif;; # Amy wants faxes in TIFF esac in FaxDispatch. Contact me off-list if you want more details.> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of John Harragin > Sent: Monday, June 09, 2003 12:03 PM > To: Asterisk > Subject: [Asterisk-Users] Question for someone running hylafax off *. > > > Hi, > > I am setting up a hylafax server. From what I've read so far, hylafax > supports CID numbers and names but currently does not support > DID. I assume > I can do something like this... > > [40faxDIDs] > exten => _87[5-8]X,1,SetVar(CALLERIDNAME=${EXTEN}) > exten => _87[5-8]X,2,Dial(Zap/g${hylafaxMODEMGROUP}) > > ...and use the CIDName variable in hylafax to route the faxes to the > appropriate destination. > > My question is this, is anyone doing something like this, and if > so, what is > the best way to accomplish the routing. > > Thanks, > > John > > > This e-mail was scanned and found clean by Monroe-Woodbury CSD Antivirus. > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >