Hi all,<br><br>I configured outbound fax in Asterisk 10 and the version I'm using is 10.4.3. Most of time when user tries to send an outbound fax (using call file), the fax is either fails or success but in few cases it doesn't stores the status record in cdr. As I checked those cases in asterisk cli I'm getting these responses listed below;<br>
<br>[Oct 22 16:35:26] VERBOSE[28332] pbx_spool.c: -- Attempting call on SIP/9437463434374334@MasterProxy for s@fax-send:1 (Retry 1)<br>[Oct 22 16:35:26] VERBOSE[28332] netsock2.c: == Using SIP RTP CoS mark 5<br>[Oct 22 16:35:26] NOTICE[28332] pbx_spool.c: Call failed to go through, reason (1) Hangup<br>
[Oct 22 16:36:26] VERBOSE[28335] pbx_spool.c: -- Attempting call on SIP/9437463434374334@MasterProxy for s@fax-send:1 (Retry 2)<br>[Oct 22 16:36:26] VERBOSE[28335] netsock2.c: == Using SIP RTP CoS mark 5<br>[Oct 22 16:36:26] NOTICE[28335] pbx_spool.c: Call failed to go through, reason (1) Hangup<br>
[Oct 22 16:37:26] VERBOSE[28336] pbx_spool.c: -- Attempting call on SIP/9437463434374334@MasterProxy for s@fax-send:1 (Retry 3)<br>[Oct 22 16:37:26] VERBOSE[28336] netsock2.c: == Using SIP RTP CoS mark 5<br>[Oct 22 16:37:26] NOTICE[28336] pbx_spool.c: Call failed to go through, reason (1) Hangup<br>
[Oct 22 16:37:26] NOTICE[28336] pbx_spool.c: Queued call to SIP/9437463434374334@MasterProxy expired without completion after 2 attempts<br><br><br>As for testing I used invalid number and took SIP traces it gave ISDN code 3 (No route to destination) with SIP code 404.<br>
<br>My question is, how can I store this type of information in cdr? Even I enabled noanswer = yes in cdr, it doesn't store the destination number or any other information which I required it most, in it and insert the data in cdr 3 times i.e. after each Retry up to 3.<br>
<br>Listing down my dialplan;<br><br>[fax-send]<br><br>exten => s,1,NoOp(**** Send a FAX ****)<br> same => n,Set(filename=${FAXFILE})<br> same => n,Set(LOCALHEADERINFO=${FAXHEADER})<br> same => n,Set(LOCALSTATIONID=${LOCALID})<br>
same => n,NoOp(Dial Status Result : ${DIALSTATUS})<br> same => n,Set(notify=NOTIFY)<br> same => n,SendFAX(${FAXFILE})<br><br><br> exten => h,1,NoOp(FAX Pages : ${FAXPAGES})<br> same => n,NoOp(FAX Bit Rate : ${FAXBITRATE})<br>
same => n,NoOp(Remote ID Station: ${REMOTESTATIONID})<br> same => n,NoOp(FAXOPT Resolution : ${FAXRESOLUTION})<br> same => n,NoOp(FAX Status : ${FAXSTATUS})<br> same => n,NoOp(FAX Error : ${FAXERROR})<br> same => n,Set(CDR(fax_status)=${FAXSTATUS})<br>
same => n,Set(CDR(fax_error)=${FAXERROR})<br> same => n,Set(CDR(fax_pages)=${FAXPAGES})<br> same => n,Set(CDR(image_id)=${Image_ID})<br> same => n,Set(CDR(calling_num)=${LOCALID})<br> same => n,Set(CDR(called_num)=${DESTINATION})<br>
same => n,Set(AGISIGHUP=no)<br> same => n,AGI(<a href="http://faxnotify.pl">faxnotify.pl</a>, ${notify},${EMAIL},${DESTINATION},${TIMESTAMP},${FAXSTATUS},${FAXPAGES},${filename},${FAXERROR})<br clear="all"><br><br>
Listing down the call file;<br><br>Channel: SIP/9437463434374334@MasterProxy<br>MaxRetries: 2<br>RetryTime: 60<br>WaitTime: 60<br>Archive: yes<br>Context: fax-send<br>Extension: s<br>Priority: 1<br>Set: FAXFILE=/tmp/faxfolder/e0f620da-b5d1-4f99-9d3d-2fa59c4233a5.tif<br>
Set: FAXHEADER=IQOR FAX<br>Set: LOCALID=6096337395<br>Set: DESTINATION=9437463434374334<br>Set: EMAIL=<a href="mailto:Ahmed.Chohan@abcd.com">Ahmed.Chohan@abcd.com</a><br>Set: TIMESTAMP=2012-10-22 16:58:13<br>Set: Image_ID=e0f620da-b5d1-4f99-9d3d-2fa59c4233a5<br>
<br><br><br>Please advise at earliest.<br><br><br><br>-- <br>Regards,<br><br>Ahmed Munir Chohan<br><br><br>