<br clear="all">Hi all,<br>
I am running to the following problem, when using the below dialplan to receive fax, everything works perfect till this line <br>
exten => receive,n,ReceiveFAX(${FAXFILE}):<br>
and then the following line cannot be executed, it's like asterisk can't
go back to dialplan and continue, the good news is when i check what is
received in my fax folder i find that the file is a valid one (not
corrupted or empty), also when I use another way to execute fax2mail,
it's working perfect and sent right to my email (test was done with the
same file received by ReceiveFAX), so I belive the problem is just when
transiting from the line that call ReceiveFAX and the line that call
fax2mail (but both work not in order or separately), the debugging of
PRI channel is below dialplan (maybe i will need to turn on debugging in
receiveFAX app as well), please advise! <br>
<br>
I am using asterisk 1.6.2.11, FAX For Asterisk Components:<br>
Applications: 1.6.2.0_1.2.1<br>
Digium FAX Driver: 1.6.2.0_1.2.1 (optimized for barcelona_64)<br>
<br>
[fax-rx]<br>
exten => receive,1,NoOp(**** FAX RECEIVE ****)<br>
exten => receive,n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ])<br>
exten => receive,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)})<br>
exten => receive,n,Set(FAXFILE=/var/spool/asterisk/fax/${STRFTIME(,,%F_%T_${CALLERID(num)})}.tif)<br>
exten => receive,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(,,%F_%T_${CALLERID(num)})})<br>
exten => receive,n,Set(GLOBAL(LASTFAXCALLERNUM)=${CALLERID(num)})<br>
exten => receive,n,Set(GLOBAL(LASTFAXCALLERNAME)=${CALLERID(name)})<br>
exten => receive,n,NoOp(**** SETTING FAXOPT ****)<br>
exten => receive,n,Set(FAXOPT(ecm)=yes)<br>
exten => receive,n,Set(FAXOPT(headerinfo)=MY FAXBACK RX)<br>
exten => receive,n,Set(FAXOPT(localstationid)=15184893772)<br>
exten => receive,n,Set(FAXOPT(maxrate)=14400)<br>
exten => receive,n,Set(FAXOPT(minrate)=2400)<br>
exten => receive,n,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})<br>
exten => receive,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)})<br>
exten => receive,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)})<br>
exten => receive,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)})<br>
exten => receive,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)})<br>
exten => receive,n,NoOp(**** RECEIVING FAX : ${FAXFILE} ****)<br>
exten => receive,n,ReceiveFAX(${FAXFILE})<br>
exten => receive,n,System('/usr/local/bin/fax2mail -p -f
"${FAXFILENOEXT}" --cid-number ${CALLERID(num)} --cid-name
"${CALLERID(name)}" --dest-name "Sir/Madam"')<br>
<br>
<b>debug:</b><br>
<br>
pbx3*CLI> <br>
-- Executing [receive@fax-rx:20] ReceiveFAX("DAHDI/1-1",
"/var/spool/asterisk/fax/2011-06-18_12:52:44_8009806858.tif") in new
stack<br>
q931.c:5088 q931_connect: Call 14288 enters state 8 (Connect Request). Hold state: Idle<br>
pbx3*CLI> <br>
pbx3*CLI> <br>
> DL-DATA request<br>
pbx3*CLI> <br>
> Protocol Discriminator: Q.931 (8) len=14<br>
pbx3*CLI> <br>
> TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator)<br>
pbx3*CLI> <br>
> Message Type: CONNECT (7)<br>
TEI=0 Transmitting N(S)=1, window is open V(A)=0 K=7<br>
pbx3*CLI> <br>
pbx3*CLI> <br>
> Protocol Discriminator: Q.931 (8) len=14<br>
pbx3*CLI> <br>
> TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator)<br>
> Message Type: CONNECT (7)<br>
pbx3*CLI> <br>
> [18 03 a9 83 81]<br>
> Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0<br>
<br>
pbx3*CLI> <br>
> ChanSel: As indicated in following octets<br>
> Ext: 1 Coding: 0 Number Specified Channel Type: 3<br>
pbx3*CLI> <br>
> Ext: 1 Channel: 1 Type: CPE]<br>
> [1e 02 81 82]<br>
pbx3*CLI> <br>
> Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard
(0) 0: 0 Location: Private network serving the local user (1)<br>
pbx3*CLI> <br>
> Ext: 1 Progress Description: Called equipment is non-ISDN. (2) ]<br>
pbx3*CLI> <br>
-- Channel 'DAHDI/1-1' receiving FAX '/var/spool/asterisk/fax/2011-06-18_12:52:44_8009806858.tif'<br>
pbx3*CLI> <br>
-- Channel 'DAHDI/1-1' FAX session '7' started<br>
pbx3*CLI> < Protocol Discriminator: Q.931 (8) len=5<br>
< TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent from originator)<br>
< Message Type: CONNECT ACKNOWLEDGE (15)<br>
pbx3*CLI> <br>
Received message for call 0x2aaac80812d0 on link 0x2aaac8035bb8 TEI/SAPI 0/0<br>
q931.c:7785 post_handle_q931_message: Call 14288 enters state 10 (Active). Hold state: Idle<br>
pbx3*CLI> <br>
-- FAX handle 0: [ 104.899463 ], entering CLOSING state<br>
-- FAX handle 0: [ 104.899528 ], entering CLOSING state<br>
pbx3*CLI> < Protocol Discriminator: Q.931 (8) len=9<br>
< TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent from originator)<br>
< Message Type: DISCONNECT (69)<br>
< [08 02 82 90]<br>
pbx3*CLI> <br>
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2)<br>
< Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]<br>
Received message for call 0x2aaac80812d0 on link 0x2aaac8035bb8 TEI/SAPI 0/0<br>
-- Processing IE 8 (cs0, Cause)<br>
pbx3*CLI> <br>
-- Found active call: 0x2aaac80812d0 cref:14288<br>
q931.c:7994 post_handle_q931_message: Call 14288 enters state 12 (Disconnect Indication). Hold state: Idle<br>
pbx3*CLI> <br>
-- Channel 0/1, span 1 got hangup request, cause 16<br>
pbx3*CLI> <br>
[Jun 18 12:54:30] NOTICE[11967]: res_fax.c:980 generic_fax_exec: Channel 'DAHDI/1-1' did not return a frame; probably hung up.<br>
pbx3*CLI> <br>
-- Channel 'DAHDI/1-1' FAX session '7' is complete, result:
'SUCCESS' (FAX_SUCCESS), error: 'NO_ERROR', pages: 2, resolution:
'204x196', transfer rate: '12000', remoteSID: ''<br>
pbx3*CLI> <br>
== Spawn extension (fax-rx, receive, 20) exited non-zero on 'DAHDI/1-1'<br>
pbx3*CLI> <br>
q931_hangup: other hangup<br>
pbx3*CLI> <br>
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, peerstate Disconnect Request, hold-state Idle<br>
pbx3*CLI> <br>
q931.c:5126 q931_release: Call 14288 enters state 19 (Release Request). Hold state: Idle<br>
pbx3*CLI> > DL-DATA request<br>
pbx3*CLI> <br>
> Protocol Discriminator: Q.931 (8) len=9<br>
pbx3*CLI> <br>
> TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator)<br>
pbx3*CLI> <br>
> Message Type: RELEASE (77)<br>
pbx3*CLI> <br>
TEI=0 Transmitting N(S)=2, window is open V(A)=2 K=7<br>
pbx3*CLI> <br>
pbx3*CLI> <br>
> Protocol Discriminator: Q.931 (8) len=9<br>
> TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator)<br>
pbx3*CLI> <br>
> Message Type: RELEASE (77)<br>
pbx3*CLI> <br>
> [08 02 81 90]<br>
pbx3*CLI> <br>
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)<br>
pbx3*CLI> <br>
> Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]<br>
pbx3*CLI> <br>
-- Hungup 'DAHDI/1-1'<br>
pbx3*CLI> < Protocol Discriminator: Q.931 (8) len=5<br>
< TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent from originator)<br>
pbx3*CLI> <br>
< Message Type: RELEASE COMPLETE (90)<br>
pbx3*CLI> <br>
Received message for call 0x2aaac80812d0 on link 0x2aaac8035bb8 TEI/SAPI 0/0<br>
pbx3*CLI> <br>
q931.c:7861 post_handle_q931_message: Call 14288 enters state 0 (Null). Hold state: Idle<br>
pbx3*CLI> <br>
q931_hangup: other hangup<br>
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle<br>
pbx3*CLI> <br>
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle<br>
<br clear="all"><br>-- <br>khalid<br>
<br>