Still no luck..
I still get this:
-- Accepting call from '3126290600' to '3125727758' on channel 0/1,
span 2
-- Executing [EMAIL PROTECTED]:1] Macro("Zap/25-1",
"faxreceive|7758|[EMAIL PROTECTED]") in new stack
-- Executing [EMAIL PROTECTED]:1] Answer("Zap/25-1", "") in new stack
-- Executing [EMAIL PROTECTED]:2] Set("Zap/25-1",
"FAXFILE=/var/spool/asterisk/fax/7758_3126290600_1207335375.54.tif") in
new stack
-- Executing [EMAIL PROTECTED]:3] RxFAX("Zap/25-1",
"/var/spool/asterisk/fax/7758_3126290600_1207335375.54.tif") in new stack
-- Channel 0/1, span 2 got hangup request, cause 16
-- Hungup 'Zap/25-1'
Here's my updated function:
[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,Hangup()
Doug Lytle wrote:
> Rob Schall wrote:
>
>> Hi all,
>>
>> Here's our setup:
>> Asterisk 1.4.18
>> Agx-ast-addons 1.4.5
>>
>> Problem:
>>
>> When accepting a fax, the fax itself comes through just fine, and it
>> does successfully create a tiff file. However, the dialplan should be
>> executing a system command right after that completes, but isn't due to
>> hanging up early. I'm getting a cause 16 hangup, which I believe is a
>>
>>
>
> Use the h extension (hangup) to process the fax.
>
> Doug
>
>
>
_______________________________________________
-- 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