[OpenSIPS-Users] Response handling for Re-INVITE and BYE

Newlin, Ben Ben.Newlin at inin.com
Mon Jul 25 19:32:02 CEST 2016

Failure routes, reply routes, and branch routes are all transaction specific and will only be triggered for the specific transaction for which they have been armed; in this case, the initial INVITE. If you want replies to sequential requests to also hit the reply route, you must add


in all places where you process sequential requests as well. And if you want replies to BYEs then you must include that in the method check.

Ben Newlin

From: <users-bounces at lists.opensips.org> on behalf of "Ramachandran, Agalya (Contractor)" <Agalya_Ramachandran at comcast.com>
Reply-To: OpenSIPS users mailling list <users at lists.opensips.org>
Date: Monday, July 25, 2016 at 1:25 PM
To: OpenSIPS users mailling list <users at lists.opensips.org>
Subject: [OpenSIPS-Users] Response handling for Re-INVITE and BYE

Hi team,

I have a query regarding response handling for Re-Invite and Bye request.
In route relay, I have the following snippet in my config file.
route[relay] {
        # for INVITEs enable some additional helper routes
        if (is_method("INVITE")) {
                xlog("INFO:opensips:route[relay]:Initializing Handlers");
onreply_route[handle_nat] {
xlog("INFO: incoming reply : reason is $rr; status  is $rs [from=$fu;to=$tu;rUri=$ru;callId=$ci]\n");

And I could able to see all the incoming response for INVITE message in onreply_route. (100,180,200OK)
But am not seeing response logged in for 200 OK for Re-INVITE and for response for BYE.
I hope all responses will hit “onreply_route” routine even after call is established.
How can I log those information? I have enabled record_route (), so till BYE for all request and responses opensips sits in between end points.
Please let me know if am missing something.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160725/ee37e546/attachment-0001.htm>

More information about the Users mailing list