VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
edwin.lam at officegen... Guest
|
Posted: Fri Apr 04, 2008 7:55 pm Post 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 |
|
Back to top |
|
|
jonnt at taylortelepho... Guest
|
Posted: Fri Apr 04, 2008 9:28 pm Post subject: [asterisk-users] iaxmodem + hylafax w/ DID routing |
|
|
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 |
|
Back to top |
|
|
support at drdos.info Guest
|
Posted: Sat Apr 05, 2008 7:03 am Post subject: [asterisk-users] iaxmodem + hylafax w/ DID routing |
|
|
Edwin Lam wrote:
Quote: | 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
according to some documentations i've found $CALLID4
|
Correct. Here is my extensions.conf:
exten => _[4-8]XXX,1,Macro(faxreceive,${EXTEN})
exten => _[4-8]XXX,n,Hangup()
[macro-faxreceive]
exten => s,1,Dial(IAX2/iaxmodem.com01/${ARG1})
exten => s,n,Dial(IAX2/iaxmodem.com02/${ARG1})
exten => s,n,Dial(IAX2/iaxmodem.com03/${ARG1})
exten => s,n,Dial(IAX2/iaxmodem.com04/${ARG1})
exten => s,n,Dial(IAX2/iaxmodem.com05/${ARG1})
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." |
|
Back to top |
|
|
support at drdos.info Guest
|
Posted: Sat Apr 05, 2008 7:06 am Post subject: [asterisk-users] iaxmodem + hylafax w/ DID routing |
|
|
Edwin Lam wrote:
Quote: | 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
|
This is also incomplete,
One of my entries with archiving of the PDF and TIF:
case "$CALLID4" in
'5051')
#################################################################
## Bankers Life/Conseco (Rose Parker) (Previously Louise Taylor)#
#################################################################
FILETYPE=pdf;
SENDTO=emailaddress at here.com;
/usr/local/bin/tiff2pdf $FULLPATH -p letter -o
faxdata/$CALLID4/pdf/$FILENAME.pdf
cp $FULLPATH /var/spool/hylafax/faxdata/$CALLID4/tif/
;;
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." |
|
Back to top |
|
|
edwin.lam at officegen... Guest
|
Posted: Mon Apr 07, 2008 9:04 pm Post subject: [asterisk-users] iaxmodem + hylafax w/ DID routing |
|
|
Doug Lytle wrote:
Quote: | Edwin Lam wrote:
Quote: | 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
|
This is also incomplete,
|
actually there's no problems with the above script. it's just
$CALLID4 always return blank, causing the email send to the
default $SENDTO address.
Quote: | One of my entries with archiving of the PDF and TIF:
case "$CALLID4" in
'5051')
#################################################################
## Bankers Life/Conseco (Rose Parker) (Previously Louise Taylor)#
#################################################################
FILETYPE=pdf;
SENDTO=emailaddress at here.com;
/usr/local/bin/tiff2pdf $FULLPATH -p letter -o
faxdata/$CALLID4/pdf/$FILENAME.pdf
cp $FULLPATH /var/spool/hylafax/faxdata/$CALLID4/tif/
;;
Doug
| --
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 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|