[asterisk-users] iaxmodem + hylafax w/ DID routing
Edwin Lam
edwin.lam at officegeneral.com
Mon Apr 7 21:04:44 CDT 2008
Doug Lytle wrote:
> Edwin Lam wrote:
>> 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.
> 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
More information about the asterisk-users
mailing list