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

2008-04-07 Thread Edwin Lam
Doug Lytle wrote:
 Edwin Lam wrote:
 in FaxDispatch:

 FILETYPE=pdf
 case $CALLID4 in
1000)
  [EMAIL PROTECTED]
1001)
  [EMAIL PROTECTED]
*)
  [EMAIL PROTECTED]
 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.

 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;
 [EMAIL PROTECTED];
 /usr/local/bin/tiff2pdf $FULLPATH -p letter -o 
 faxdata/$CALLID4/pdf/$FILENAME.pdf
 cp $FULLPATH /var/spool/hylafax/faxdata/$CALLID4/tif/
 ;;
 
 Doug
 


-- 
Edwin Lam [EMAIL PROTECTED]
Systems Engineer, Office General, Inc.
Ph: +1 415 439 4988 Fax: +1 415 283 3370
http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=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


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

2008-04-05 Thread Doug Lytle
Edwin Lam wrote:
 in extensions.conf:

 exten = _,1,Dial(IAX2/iaxmodem0/${EXTEN}|20|r)
 exten = _,n,Dial(IAX2/iaxmodem1/${EXTEN}|20|r)
 exten = _,n,Busy
 exten = _,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.


___
-- 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


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

2008-04-05 Thread Doug Lytle
Edwin Lam wrote:
 in FaxDispatch:

 FILETYPE=pdf
 case $CALLID4 in
1000)
  [EMAIL PROTECTED]
1001)
  [EMAIL PROTECTED]
*)
  [EMAIL PROTECTED]
 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;
[EMAIL PROTECTED];
/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.


___
-- 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


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

2008-04-04 Thread Edwin Lam

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 = _,1,Dial(IAX2/iaxmodem0/${EXTEN}|20|r)
exten = _,n,Dial(IAX2/iaxmodem1/${EXTEN}|20|r)
exten = _,n,Busy
exten = _,n,Hangup

in FaxDispatch:

FILETYPE=pdf
case $CALLID4 in
   1000)
 [EMAIL PROTECTED]
   1001)
 [EMAIL PROTECTED]
   *)
 [EMAIL PROTECTED]
esac

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


-- 
Edwin Lam [EMAIL PROTECTED]
Systems Engineer, Office General, Inc.
Ph: +1 415 439 4988 Fax: +1 415 283 3370
http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=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


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

2008-04-04 Thread Jonn R Taylor
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 = _,1,Dial(IAX2/iaxmodem0/${EXTEN}|20|r)
exten = _,n,Dial(IAX2/iaxmodem1/${EXTEN}|20|r)
exten = _,n,Busy
exten = _,n,Hangup

in FaxDispatch:

FILETYPE=pdf
case $CALLID4 in
   1000)
 [EMAIL PROTECTED]
   1001)
 [EMAIL PROTECTED]
   *)
 [EMAIL PROTECTED]
esac

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


-- 
Edwin Lam [EMAIL PROTECTED]
Systems Engineer, Office General, Inc.
Ph: +1 415 439 4988 Fax: +1 415 283 3370
http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=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




___
-- 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