Hi gurus, In need of a little help here. I¹m trying to do the Asterisk media release by using canreinvite=yes. But I found weird behaviour when comes to BYE. Below are my current setup:
Client A is registered to Opensips Client B is registered to Asterisk A Opensips Asterisk B On hangup below are the SIP flow which I¹ve notice from the Asterisk server itself: 1. Opensips forward the BYE to Asterisk 2. Asterisk response with 200 OK 3. Asterisk send INVITE to B 4. B response with 200 OK with SDP 5. Asterisk reply with ACK 6. Asterisk send BYE to B 7. B response with 200 OK Shouldn¹t Asterisk forward the BYE to B instead of issuing a re-INVITE then BYE? P.s: I¹ve also attached the traces. Regards, Lawrence
sip:[email protected] SIP/2.0 Record-Route: <sip:211.24.134.121;lr;ftag=a0a48613> Via: SIP/2.0/UDP 211.24.134.121;branch=z9hG4bKe46a.7367b334.0 Via: SIP/2.0/UDP 211.24.134.122:5062;received=211.24.134.122;branch=z9hG4bK-d8754z-917805ee170c25a5-1---d8754z-;rport=5062 Max-Forwards: 69 Contact: <sip:[email protected]:5062;transport=UDP> To: <sip:[email protected];transport=UDP>;tag=as4483b7b3 From: "60122223333"<sip:[email protected];transport=UDP>;tag=a0a48613 Call-ID: OWFkNDhlOTBkMDg2NDkxNzEwZTc1M2JlYjNmYmI5Yzk. CSeq: 2 BYE User-Agent: Zoiper rev.5528 Content-Length: 0 SIP/2.0 200 OK Via: SIP/2.0/UDP 211.24.134.121;branch=z9hG4bKe46a.7367b334.0;received=211.24.134.121 Via: SIP/2.0/UDP 211.24.134.122:5062;received=211.24.134.122;branch=z9hG4bK-d8754z-917805ee170c25a5-1---d8754z-;rport=5062 Record-Route: <sip:211.24.134.121;lr;ftag=a0a48613> From: "60122223333"<sip:[email protected];transport=UDP>;tag=a0a48613 To: <sip:[email protected];transport=UDP>;tag=as4483b7b3 Call-ID: OWFkNDhlOTBkMDg2NDkxNzEwZTc1M2JlYjNmYmI5Yzk. CSeq: 2 BYE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces Content-Length: 0 INVITE sip:[email protected]:1187;rinstance=f878778da25aff09;transport=UDP SIP/2.0 Via: SIP/2.0/UDP 211.24.134.120:5060;branch=z9hG4bK23e035f3;rport From: "60122223333" <sip:[email protected]>;tag=as307ae54b To: <sip:[email protected]:1187;rinstance=f878778da25aff09;transport=UDP>;tag=38208e1d Contact: <sip:[email protected]> Call-ID: [email protected] CSeq: 104 INVITE User-Agent: Asterisk PBX Max-Forwards: 70 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces Content-Type: application/sdp Content-Length: 244 v=0 o=root 11515 11517 IN IP4 211.24.134.120 s=session c=IN IP4 211.24.134.120 t=0 0 m=audio 10036 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=silenceSupp:off - - - - a=ptime:20 a=sendrecv SIP/2.0 200 OK Via: SIP/2.0/UDP 211.24.134.123:1187;branch=z9hG4bK23e035f3;rport=5060 Contact: <sip:[email protected]:1187;rinstance=f878778da25aff09;transport=UDP> To: <sip:[email protected]:1187;rinstance=f878778da25aff09;transport=UDP>;tag=38208e1d From: "60122223333"<sip:[email protected]:5060>;tag=as307ae54b Call-ID: [email protected] CSeq: 104 INVITE Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE Content-Type: application/sdp User-Agent: Zoiper rev.5324 Content-Length: 254 v=0 o=Zoiper_user 0 0 IN IP4 211.24.134.123 s=Zoiper_user c=IN IP4 211.24.134.123 t=0 0 m=audio 8000 RTP/AVP 8 3 0 101 a=rtpmap:8 PCMA/8000 a=rtpmap:3 GSM/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=sendrecv ACK sip:[email protected]:1187;rinstance=f878778da25aff09;transport=UDP SIP/2.0 Via: SIP/2.0/UDP 211.24.134.120:5060;branch=z9hG4bK57b4af45;rport From: "60122223333" <sip:[email protected]>;tag=as307ae54b To: <sip:[email protected]:1187;rinstance=f878778da25aff09;transport=UDP>;tag=38208e1d Contact: <sip:[email protected]> Call-ID: [email protected] CSeq: 104 ACK User-Agent: Asterisk PBX Max-Forwards: 70 Content-Length: 0 BYE sip:[email protected]:1187;rinstance=f878778da25aff09;transport=UDP SIP/2.0 Via: SIP/2.0/UDP 211.24.134.120:5060;branch=z9hG4bK5756d79d;rport From: "60122223333" <sip:[email protected]>;tag=as307ae54b To: <sip:[email protected]:1187;rinstance=f878778da25aff09;transport=UDP>;tag=38208e1d Call-ID: [email protected] CSeq: 105 BYE User-Agent: Asterisk PBX Max-Forwards: 70 X-Asterisk-HangupCause: Normal Clearing X-Asterisk-HangupCauseCode: 16 Content-Length: 0 SIP/2.0 200 OK Via: SIP/2.0/UDP 211.24.134.123:1187;branch=z9hG4bK5756d79d;rport=5060 Contact: <sip:[email protected]:1187;rinstance=f878778da25aff09;transport=UDP> To: <sip:[email protected]:1187;rinstance=f878778da25aff09;transport=UDP>;tag=38208e1d From: "60122223333"<sip:[email protected]:5060>;tag=as307ae54b Call-ID: [email protected] CSeq: 105 BYE User-Agent: Zoiper rev.5324 Content-Length: 0
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
