[asterisk-users] 1.6.0.10: core restart on ReceiveFax()
sean darcy
seandarcy2 at gmail.com
Fri Jun 12 23:23:40 CDT 2009
For our internal fax machines, I'm checking if the faxes are going to
branch offices. If they are, I want to capture and email them to the
branches. I've set up extension 8447 to test this.
A fax machines is connected via an SPA 2102 on 173. Any calls from 173
are sent to:
[outbound-fax]
exten => 8447,1,Answer()
exten => 8447,n,GoSub(Capture-Fax,s,1)
exten =>_NXXNXXXXXX,1,Answer()
exten =>_NXXNXXXXXX,n,GoSub(DialOut-PSTN,s,1(1${EXTEN}))
exten =>_1NXXNXXXXXX,1,Answer()
exten =>_1NXXNXXXXXX,n,GoSub(DialOut-PSTN,s,1(${EXTEN}))
exten =>_91NXXNXXXXXX,1,Answer()
exten =>_91NXXNXXXXXX,n,GoSub(DialOut-PSTN,s,1(${EXTEN:1}))
Actual outbound faxes work correctly. That is, a call from 173 to an
outside fax machine works.
The test faxes go to:
[Capture-Fax]
exten =>
s,1,Set(FAXFILE=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},,%Y%m%d)}_${STRFTIME(${EPOCH},,%H%M)})
exten => s,n,ReceiveFAX(${FAXFILE}.tif) ;; 1.6 use ReceiveFAX
exten => s,n,Hangup()
When the test fax gets to ReceiveFax() asterisk restarts. Any calls at
the time are lost.
-- Executing [8447 at outbound-fax:1] Answer("SIP/173-081d3780", "")
in new stack
-- Executing [8447 at outbound-fax:2] Gosub("SIP/173-081d3780",
"Capture-Fax,s,1") in new stack
-- Executing [s at Capture-Fax:1] Set("SIP/173-081d3780",
"FAXFILE=/var/spool/asterisk/fax/20090612_1710") in new stack
-- Executing [s at Capture-Fax:2] ReceiveFAX("SIP/173-081d3780",
"/var/spool/asterisk/fax/20090612_1710.tif") in new stack
/var/spool/asterisk/fax exists, permissions 777:
ls -l /var/spool/asterisk
total 32
..............
drwxrwxrwx 2 root root 4096 2009-05-03 14:21 fax
...........
I've set debug and verbose to 20, but no further info.
What am I missing? Anybody have something like this working this working?
sean
More information about the asterisk-users
mailing list