[SIPForum-discussion] X-Asterisk-HangupCauseCode: 16

Jon Farmer jonfarmer at enta.net
Wed Feb 17 17:23:09 UTC 2010


http://www.voip-info.org/wiki/view/Asterisk+variable+hangupcause

Jon Farmer
Voice Technical Lead
Entanet International Ltd


On 17/02/2010 09:54, Nalini Velidi wrote:
> 
> H i All,
> 
> When I try making a call from my Java client, the client is getting
> registered and a call is getting established. However, the  call is
> getting terminated in <10 seconds automatically. When I tried debugging
> , I found that a BYE message is generated from the server (Asterisk)
> side with following messages and the call is getting disconnected.
> 
> X-Asterisk-HangupCause: Normal Clearing
> 
> X-Asterisk-HangupCauseCode: 16
> 
> Content-Length: 0
> 
> 
> The console messages are as follows:
> 
> <message
> 
> from="10.0.0.232:6167" 
> 
> to="10.0.0.226:5060" 
> 
> time="1266316662826" 
> 
> isSender="true" 
> 
> transactionId="z9hg4bk75049efc" 
> 
> callId="0d5a1eee78e139746b2489f1096a410e at 10.0.0.226" 
> 
> firstLine="SIP/2.0 180 Ringing" 
> 
> debugLine="0" 
> 
>>
> 
> <![CDATA[SIP/2.0 180 Ringing
> 
> Via: SIP/2.0/UDP 10.0.0.226:5060;branch=z9hG4bK75049efc;rport
> 
> From: "Agent 3" <sip:3003 at 10.0.0.226>;tag=as7c826178
> 
> To: <sip:agent1 at 10.0.0.232:6167;transport=udp>
> 
> Call-ID: 0d5a1eee78e139746b2489f1096a410e at 10.0.0.226
> 
> CSeq: 102 INVITE
> 
> Max-Forwards: 70
> 
> Content-Length: 0
> 
> 
> ]]>
> 
> </message>
> 
> 
> Audio Call created :
> 0d5a1eee78e139746b2489f1096a410e at 10.0.0.226:agent1 at 10.0.0.232:6167:3003 at 10.0.0.226:as7c826178
> 
> A UDIO CALL ADDED WITH URI: sip:3003 at 10.0.0.226
> 
> CALL STATUS: Incoming call
> 
> CLIENT CONNECTED.
> 
> REQUEST FROM CLIENT: AcceptCall|3003 at 10.0.0.226|
> 
> CALLEE 1sip:3003 at 10.0.0.226
> 
> CALLEE 2sip:3003 at 10.0.0.226
> 
> -------------------
> 
> the other end invite us to sdp
> 
> Local listening audio port : 5628
> 
> Remote listening audio port : 16186
> 
> Negotiated audio codec 0 on Port 5628
> 
> No Negotiated video codec,so no video media descriptions will be added
> to the sdp body
> 
> CALLEE 1sip:3003 at 10.0.0.226
> 
> CALLEE 2sip:3003 at 10.0.0.226
> 
> -------------------
> 
> <message
> 
> from="10.0.0.232:6167" 
> 
> to="10.0.0.226:5060" 
> 
> time="1266316666164" 
> 
> isSender="true" 
> 
> transactionId="z9hg4bk75049efc" 
> 
> callId="0d5a1eee78e139746b2489f1096a410e at 10.0.0.226" 
> 
> firstLine="SIP/2.0 200 OK" 
> 
> debugLine="0" 
> 
>>
> 
> <![CDATA[SIP/2.0 200 OK
> 
> Via: SIP/2.0/UDP 10.0.0.226:5060;branch=z9hG4bK75049efc;rport
> 
> From: "Agent 3" <sip:3003 at 10.0.0.226>;tag=as7c826178
> 
> To: <sip:agent1 at 10.0.0.232:6167;transport=udp>;tag=3286
> 
> Call-ID: 0d5a1eee78e139746b2489f1096a410e at 10.0.0.226
> 
> CSeq: 102 INVITE
> 
> Max-Forwards: 70
> 
> Contact: <sip:agent1 at 10.0.0.232:6167;transport=udp>
> 
> Content-Type: application/sdp
> 
> Content-Length: 111
> 
> 
> ]]>
> 
> </message>
> 
> 
> <message
> 
> from="10.0.0.226:5060" 
> 
> to="10.0.0.232:6167" 
> 
> time="1266316666167" 
> 
> isSender="false" 
> 
> transactionId="z9hg4bk726fa3ef" 
> 
> callId="0d5a1eee78e139746b2489f1096a410e at 10.0.0.226" 
> 
> firstLine="BYE sip:agent1 at 10.0.0.232:6167;transport=udp SIP/2.0" 
> 
> debugLine="0" 
> 
>>
> 
> <![CDATA[BYE sip:agent1 at 10.0.0.232:6167;transport=udp SIP/2.0
> 
> Via: SIP/2.0/UDP 10.0.0.226:5060;branch=z9hG4bK726fa3ef;rport
> 
> From: "Agent 3" <sip:3003 at 10.0.0.226>;tag=as7c826178
> 
> To: <sip:agent1 at 10.0.0.232:6167;transport=udp>;tag=3286
> 
> Call-ID: 0d5a1eee78e139746b2489f1096a410e at 10.0.0.226
> 
> CSeq: 103 BYE
> 
> User-Agent: Asterisk PBX
> 
> Max-Forwards: 70
> 
> X-Asterisk-HangupCause: Normal Clearing
> 
> X-Asterisk-HangupCauseCode: 16
> 
> Content-Length: 0
> 
> 
> ]]>
> 
> </message>
> 
> 
> ----------------
> 
> <message
> 
> from="10.0.0.226:5060" 
> 
> to="10.0.0.232:6167" 
> 
> time="1266316666167" 
> 
> isSender="false" 
> 
> transactionId="z9hg4bk022637ec" 
> 
> callId="0d5a1eee78e139746b2489f1096a410e at 10.0.0.226" 
> 
> firstLine="ACK sip:agent1 at 10.0.0.232:6167;transport=udp SIP/2.0" 
> 
> debugLine="0" 
> 
>>
> 
> <![CDATA[ACK sip:agent1 at 10.0.0.232:6167;transport=udp SIP/2.0
> 
> Via: SIP/2.0/UDP 10.0.0.226:5060;branch=z9hG4bK022637ec;rport
> 
> From: "Agent 3" <sip:3003 at 10.0.0.226>;tag=as7c826178
> 
> To: <sip:agent1 at 10.0.0.232:6167;transport=udp>;tag=3286
> 
> Contact: <sip:3003 at 10.0.0.226>
> 
> Call-ID: 0d5a1eee78e139746b2489f1096a410e at 10.0.0.226
> 
> CSeq: 102 ACK
> 
> User-Agent: Asterisk PBX
> 
> Max-Forwards: 70
> 
> Content-Length: 0
> 
> 
> ]]>
> 
> </message>
> 
> 
> RECEIVED REQUEST: BYE sip:agent1 at 10.0.0.232:6167;transport=udp SIP/2.0
> 
> Via: SIP/2.0/UDP 10.0.0.226:5060;branch=z9hG4bK726fa3ef;rport
> 
> From: "Agent 3" <sip:3003 at 10.0.0.226>;tag=as7c826178
> 
> To: <sip:agent1 at 10.0.0.232:6167;transport=udp>;tag=3286
> 
> Call-ID: 0d5a1eee78e139746b2489f1096a410e at 10.0.0.226
> 
> CSeq: 103 BYE
> 
> User-Agent: Asterisk PBX
> 
> Max-Forwards: 70
> 
> X-Asterisk-HangupCause: Normal Clearing
> 
> X-Asterisk-HangupCauseCode: 16
> 
> Content-Length: 0
> 
> 
> 
> ----------------
> 
> CALLEE::::: sip:3003 at 10.0.0.226
> 
> <message
> 
> from="10.0.0.232:6167" 
> 
> to="10.0.0.226:5060" 
> 
> time="1266316666174" 
> 
> isSender="true" 
> 
> transactionId="z9hg4bk726fa3ef" 
> 
> callId="0d5a1eee78e139746b2489f1096a410e at 10.0.0.226" 
> 
> firstLine="SIP/2.0 200 OK" 
> 
> debugLine="0" 
> 
>>
> 
> <![CDATA[SIP/2.0 200 OK
> 
> Via: SIP/2.0/UDP 10.0.0.226:5060;branch=z9hG4bK726fa3ef;rport
> 
> From: "Agent 3" <sip:3003 at 10.0.0.226>;tag=as7c826178
> 
> To: <sip:agent1 at 10.0.0.232:6167;transport=udp>;tag=3286
> 
> Call-ID: 0d5a1eee78e139746b2489f1096a410e at 10.0.0.226
> 
> CSeq: 103 BYE
> 
> Max-Forwards: 70
> 
> Content-Length: 0
> 
> 
> ]]>
> 
> </message>
> 
> 
> CALL STATUS: Not in a call
> 
> Audio Call removed :
> 0d5a1eee78e139746b2489f1096a410e at 10.0.0.226:agent1 at 10.0.0.232:6167:3286:3003 at 10.0.0.226:as7c826178
> 
> ----------------
> 
> RECEIVED REQUEST: ACK sip:agent1 at 10.0.0.232:6167;transport=udp SIP/2.0
> 
> Via: SIP/2.0/UDP 10.0.0.226:5060;branch=z9hG4bK022637ec;rport
> 
> From: "Agent 3" <sip:3003 at 10.0.0.226>;tag=as7c826178
> 
> To: <sip:agent1 at 10.0.0.232:6167;transport=udp>;tag=3286
> 
> Contact: <sip:3003 at 10.0.0.226>
> 
> Call-ID: 0d5a1eee78e139746b2489f1096a410e at 10.0.0.226
> 
> CSeq: 102 ACK
> 
> User-Agent: Asterisk PBX
> 
> Max-Forwards: 70
> 
> Content-Length: 0
> 
> 
> 
> ----------------
> 
> <message
> 
> from="10.0.0.226:5060" 
> 
> to="10.0.0.232:6167" 
> 
> time="1266316698165" 
> 
> isSender="false" 
> 
> transactionId="z9hg4bk508a6879" 
> 
> callId="0d5a1eee78e139746b2489f1096a410e at 10.0.0.226" 
> 
> firstLine="BYE sip:agent1 at 10.0.0.232:6167;transport=udp SIP/2.0" 
> 
> debugLine="0" 
> 
>>
> 
> <![CDATA[BYE sip:agent1 at 10.0.0.232:6167;transport=udp SIP/2.0
> 
> Via: SIP/2.0/UDP 10.0.0.226:5060;branch=z9hG4bK508a6879;rport
> 
> From: "Agent 3" <sip:3003 at 10.0.0.226>;tag=as7c826178
> 
> To: <sip:agent1 at 10.0.0.232:6167;transport=udp>;tag=3286
> 
> Call-ID: 0d5a1eee78e139746b2489f1096a410e at 10.0.0.226
> 
> CSeq: 104 BYE
> 
> User-Agent: Asterisk PBX
> 
> Max-Forwards: 70
> 
> Content-Length: 0
> 
> 
> ]]>
> 
> </message>
> 
> 
> ----------------
> 
> RECEIVED REQUEST: BYE sip:agent1 at 10.0.0.232:6167;transport=udp SIP/2.0
> 
> Via: SIP/2.0/UDP 10.0.0.226:5060;branch=z9hG4bK508a6879;rport
> 
> From: "Agent 3" <sip:3003 at 10.0.0.226>;tag=as7c826178
> 
> To: <sip:agent1 at 10.0.0.232:6167;transport=udp>;tag=3286
> 
> Call-ID: 0d5a1eee78e139746b2489f1096a410e at 10.0.0.226
> 
> CSeq: 104 BYE
> 
> User-Agent: Asterisk PBX
> 
> Max-Forwards: 70
> 
> Content-Length: 0
> 
> 
> No idea why call is terminated abruptly and what to conclude from 
> X-Asterisk-HangupCauseCode: 16.
> 
> Can someone help me on this.
> 
> Thanks and Regards,
> Nalini Velidi
> 
> 
> 
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain 
> confidential or privileged information. If you are 
> not the intended recipient, any dissemination, use, 
> review, distribution, printing or copying of the 
> information contained in this e-mail message 
> and/or attachments to it are strictly prohibited. If 
> you have received this communication in error, 
> please notify us by reply e-mail or telephone and 
> immediately and permanently delete the message 
> and any attachments. Thank you
> 
> 
> 
> 
> 
> _______________________________________________
> This is the SIP Forum discussion mailing list
> TO UNSUBSCRIBE, or edit your delivery options, please visit http://sipforum.org/mailman/listinfo/discussion
> Post to the list at discussion at sipforum.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://sipforum.org/pipermail/discussion/attachments/20100217/1812594a/attachment.sig>


More information about the discussion mailing list