[asterisk-users] iaxmodem + hylafax w/ DID routing

Jonn R Taylor jonnt at taylortelephone.com
Fri Apr 4 21:28:24 CDT 2008


I use FreePBX for my dial plan. I have been using iaxmodem and hylafax for over a year with DID routing to email and samba shares. This is our mail fax number dial plan.

exten => +16516834019,1,Set(__FROM_DID=+16516834019)
exten => +16516834019,n,Gosub(app-blacklist-check,s,1)
exten => +16516834019,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
exten => +16516834019,n,Set(CALLERID(name)=${CALLERID(num)})
exten => +16516834019,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => +16516834019,n,Set(FAX_RX=disabled)
exten => +16516834019,n,Dial(IAX2/2000/${FROM_DID},60)
exten => +16516834019,n,Maco(hangupcall,)

Jonn

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Edwin Lam
Sent: Friday, April 04, 2008 7:56 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] iaxmodem + hylafax w/ DID routing


hi folks.

i'm experimenting with iaxmodem + hylafax using DID to determine
where to send the fax to it's final destination. however i have
difficulties passing the DID information from iaxmodem to
hylafax.

in extensions.conf:

exten => _XXXX,1,Dial(IAX2/iaxmodem0/${EXTEN}|20|r)
exten => _XXXX,n,Dial(IAX2/iaxmodem1/${EXTEN}|20|r)
exten => _XXXX,n,Busy
exten => _XXXX,n,Hangup

in FaxDispatch:

FILETYPE=pdf
case "$CALLID4" in
   1000)
     SENDTO=addr1 at sample.com
   1001)
     SENDTO=addr2 at sample.com
   *)
     SENDTO=blackhole at sample.com
esac

according to some documentations i've found $CALLID4
should have the DID info. but in fact it's blank.
any idea?


-- 
Edwin Lam <edwin.lam at officegeneral.com>
Systems Engineer, Office General, Inc.
Ph: +1 415 439 4988 Fax: +1 415 283 3370
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0xD6506D20


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users






More information about the asterisk-users mailing list