[asterisk-users] rxfax issue

Rob Schall rschall at callone.net
Fri Apr 4 14:43:13 CDT 2008


Still no luck,
    -- Accepting call from '3126290600' to '3125727758' on channel 0/1,
span 2
    -- Executing [3125727758 at from-pstn:1] Macro("Zap/25-1",
"faxreceive|7758|rschall at callone.net") in new stack
    -- Executing [s at macro-faxreceive:1] Answer("Zap/25-1", "") in new stack
    -- Executing [s at macro-faxreceive:2] Set("Zap/25-1",
"FAXFILE=/var/spool/asterisk/fax/7758_3126290600_1207338128.77.tif") in
new stack
    -- Executing [s at macro-faxreceive:3] RxFAX("Zap/25-1",
"/var/spool/asterisk/fax/7758_3126290600_1207338128.77.tif") in new stack
    -- Channel 0/1, span 2 got hangup request, cause 16
    -- Hungup 'Zap/25-1'

Extensions.conf
[macro-faxreceive]
exten => s,1,Answer()
exten =>
s,n,Set(FAXFILE=/var/spool/asterisk/fax/${ARG1}_${CALLERID(num)}_${UNIQUEID}.tif)
exten => s,n,rxfax(${FAXFILE})
exten => s,n,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}" "${ARG2}")
exten => s,n,Hangup()
exten => h,1,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}" "${ARG2}")
exten => h,n,NoOP(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}")
exten => h,n,Hangup()

Doug Lytle wrote:
> Rob Schall wrote:
>   
>> exten => s,n,Hangup()
>> exten => h,1,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}" 
>> "${CALLERID(name)}" "${FAXFILE}" 
>>     
>
> Can you and a NoOP and send the output:
>
> exten => h,n,NoOP(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}" 
> "${CALLERID(name)}" "${FAXFILE}")
>
> Doug
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080404/158ff6fc/attachment.htm 


More information about the asterisk-users mailing list