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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100224/df89d4a5/attachment.htm -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: traces.txt Url: http://lists.digium.com/pipermail/asterisk-users/attachments/20100224/df89d4a5/attachment.txt
Lawrence Na (MY-RND at Vyke) wrote:> 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?Asterisk does not 'forward' messages or requests, since it is not a proxy. In this case, it is redirecting B's media back to itself in case the dialplan contains any steps to be done with B's channel before it is destroyed. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kfleming at digium.com Check us out at www.digium.com & www.asterisk.org
Hi Kevin, Thx for your kind response. Is there any options/steps that I could trigger to skip from redirecting the media back to Asterisk? Regards, Lawrence -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100225/27069c64/attachment.htm
Lawrence Na (MY-RND at Vyke) wrote:> Thx for your kind response. Is there any options/steps that I could > trigger to skip from redirecting the media back to Asterisk?If your mail client allows, please *reply* to messages in a thread, rather than starting a new thread with the same subject. This way people who find that thread in the list archives can see all the messages in the thread. Thanks. To answer your question, though, no, there is no method available in Asterisk today to modify this behavior. Are you just curious, or do think it is actually causing a problem? -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kfleming at digium.com Check us out at www.digium.com & www.asterisk.org
Apparently Analagous Threads
- Sip profiles per customer, behind a SIP proxy. How?
- [OpenSIPS-Users] 404 When BYE initiated by external callee
- Rewriting numbers while processing dial plan?
- Invitation for OpenSIPS Summit 2020 Call for Paper
- Send INVITES and REFERs from OpenSIPS to Asterisk with multiple Contexts