jonas kellens
2009-May-18 17:44 UTC
[asterisk-users] ${HANGUPCAUSE} is not printed when call ends or is interrupted
Today I get the remark that a call got disconnected after 10 minutes. This what my VERBOSE-logfile tells me : [May 18 15:36:30] VERBOSE[3940] logger.c: -- Executing [00493516426 at intern:1] NoOp("SIP/51-b76023b8", "Gesprek naar GSM-nummer via Telenet") in new stack [May 18 15:36:30] VERBOSE[3940] logger.c: -- Executing [00493516426 at intern:2] Dial("SIP/51-b76023b8", "DAHDI/g1/0493516426") in new stack [May 18 15:36:30] DEBUG[3940] dsp.c: dsp busy pattern set to 0,0 [May 18 15:36:30] DEBUG[3940] chan_dahdi.c: Dialing '0493516426' [May 18 15:36:30] DEBUG[3940] chan_dahdi.c: Deferring dialing... [May 18 15:36:30] VERBOSE[3940] logger.c: -- Called g1/0493516426 [May 18 15:36:31] DEBUG[3940] chan_dahdi.c: Sent deferred digit string: T0493516426w [May 18 15:36:33] VERBOSE[3940] logger.c: -- DAHDI/1-1 answered SIP/51-b76023b8 [May 18 15:49:35] VERBOSE[3940] logger.c: -- Hungup 'DAHDI/1-1' [May 18 15:49:35] VERBOSE[3940] logger.c: == Spawn extension (intern, 00493516426, 2) exited non-zero on 'SIP/51-b76023b8' Nothing abnormal I think ?! By the way : is there a way to see which end of the conversation ended the call ?? If the call is disconnected, I have the following in my dialplan to debug the cause of an interrupted call : exten => _00ZXXXXXXX,1,NoOp(national conversation via DAHDI group 1 (Telenet)) exten => _00ZXXXXXXX,n,Dial(${TELENET}/${EXTEN:1}) exten => _00ZXXXXXXX,n,NoOp(DIALSTATUS is now ${DIALSTATUS}) exten => _00ZXXXXXXX,n,GoToIf($["${DIALSTATUS}" "ANSWER"]?free:occupied) exten => _00ZXXXXXXX,n(free),NoOp(national conversation : dialstatus free) exten => _00ZXXXXXXX,n,NoOp(hangup-cause = ${HANGUPCAUSE}) exten => _00ZXXXXXXX,n,Hangup() exten => _00ZXXXXXXX,n(occupied),NoOp(Telenetlijn occupied) exten => _00ZXXXXXXX,n,Playtones(busy) exten => _00ZXXXXXXX,n,Congestion(10) exten => _00ZXXXXXXX,n,NoOp(hangup-cause = ${HANGUPCAUSE}) exten => _00ZXXXXXXX,n,Hangup() exten => _00ZXXXXXXX,n,NoOp(hangup-oorzaak = ${HANGUPCAUSE}) I absolutely want to know how the call ended... but I don't seem to capture the info I want. So 2 questions : 1) if indeed the call ended abruptly, do you see something abnormal ? 2) How can I debug the way a call ended ? Be it in a normal way, or be it by a sudden breakup. Thank you very much, Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090518/0fadd33c/attachment.htm