[asterisk-users] Getting Message: Call failed to go through, reason (1) Hangup

Ahmed Munir ahmedmunir007 at gmail.com
Mon Oct 22 16:40:51 CDT 2012


Hi all,

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;

[Oct 22 16:35:26] VERBOSE[28332] pbx_spool.c:     -- Attempting call on
SIP/9437463434374334 at MasterProxy for s at fax-send:1 (Retry 1)
[Oct 22 16:35:26] VERBOSE[28332] netsock2.c:   == Using SIP RTP CoS mark 5
[Oct 22 16:35:26] NOTICE[28332] pbx_spool.c: Call failed to go through,
reason (1) Hangup
[Oct 22 16:36:26] VERBOSE[28335] pbx_spool.c:     -- Attempting call on
SIP/9437463434374334 at MasterProxy for s at fax-send:1 (Retry 2)
[Oct 22 16:36:26] VERBOSE[28335] netsock2.c:   == Using SIP RTP CoS mark 5
[Oct 22 16:36:26] NOTICE[28335] pbx_spool.c: Call failed to go through,
reason (1) Hangup
[Oct 22 16:37:26] VERBOSE[28336] pbx_spool.c:     -- Attempting call on
SIP/9437463434374334 at MasterProxy for s at fax-send:1 (Retry 3)
[Oct 22 16:37:26] VERBOSE[28336] netsock2.c:   == Using SIP RTP CoS mark 5
[Oct 22 16:37:26] NOTICE[28336] pbx_spool.c: Call failed to go through,
reason (1) Hangup
[Oct 22 16:37:26] NOTICE[28336] pbx_spool.c: Queued call to
SIP/9437463434374334 at MasterProxy expired without completion after 2 attempts


As for testing I used invalid number and took SIP traces it gave ISDN code
3 (No route to destination) with SIP code 404.

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.

Listing down my dialplan;

[fax-send]

exten => s,1,NoOp(**** Send a FAX ****)
 same => n,Set(filename=${FAXFILE})
 same => n,Set(LOCALHEADERINFO=${FAXHEADER})
 same => n,Set(LOCALSTATIONID=${LOCALID})
 same => n,NoOp(Dial Status Result : ${DIALSTATUS})
 same => n,Set(notify=NOTIFY)
 same => n,SendFAX(${FAXFILE})


 exten => h,1,NoOp(FAX Pages : ${FAXPAGES})
 same => n,NoOp(FAX Bit Rate : ${FAXBITRATE})
 same => n,NoOp(Remote ID Station: ${REMOTESTATIONID})
 same => n,NoOp(FAXOPT Resolution : ${FAXRESOLUTION})
 same => n,NoOp(FAX Status : ${FAXSTATUS})
 same => n,NoOp(FAX Error : ${FAXERROR})
 same => n,Set(CDR(fax_status)=${FAXSTATUS})
 same => n,Set(CDR(fax_error)=${FAXERROR})
 same => n,Set(CDR(fax_pages)=${FAXPAGES})
 same => n,Set(CDR(image_id)=${Image_ID})
 same => n,Set(CDR(calling_num)=${LOCALID})
 same => n,Set(CDR(called_num)=${DESTINATION})
 same => n,Set(AGISIGHUP=no)
 same => n,AGI(faxnotify.pl,
${notify},${EMAIL},${DESTINATION},${TIMESTAMP},${FAXSTATUS},${FAXPAGES},${filename},${FAXERROR})


Listing down the call file;

Channel: SIP/9437463434374334 at MasterProxy
MaxRetries: 2
RetryTime: 60
WaitTime: 60
Archive: yes
Context: fax-send
Extension: s
Priority: 1
Set: FAXFILE=/tmp/faxfolder/e0f620da-b5d1-4f99-9d3d-2fa59c4233a5.tif
Set: FAXHEADER=IQOR FAX
Set: LOCALID=6096337395
Set: DESTINATION=9437463434374334
Set: EMAIL=Ahmed.Chohan at abcd.com
Set: TIMESTAMP=2012-10-22 16:58:13
Set: Image_ID=e0f620da-b5d1-4f99-9d3d-2fa59c4233a5



Please advise at earliest.



-- 
Regards,

Ahmed Munir Chohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121022/44b0eb60/attachment.htm>


More information about the asterisk-users mailing list