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

Ramachandran, Agalya (Contractor) Agalya_Ramachandran at comcast.com
Mon Jul 25 20:29:47 CEST 2016


Thank you Ben. I got it.

Regards,
Agalya

From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Newlin, Ben
Sent: Monday, July 25, 2016 1:32 PM
To: OpenSIPS users mailling list <users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] Response handling for Re-INVITE and BYE

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

t_on_reply(“handle_nat”)

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<mailto:users-bounces at lists.opensips.org>> on behalf of "Ramachandran, Agalya (Contractor)" <Agalya_Ramachandran at comcast.com<mailto:Agalya_Ramachandran at comcast.com>>
Reply-To: OpenSIPS users mailling list <users at lists.opensips.org<mailto:users at lists.opensips.org>>
Date: Monday, July 25, 2016 at 1:25 PM
To: OpenSIPS users mailling list <users at lists.opensips.org<mailto: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")) {
                t_on_branch("per_branch_ops");
                t_on_reply("handle_nat");
                t_on_failure("missed_call");
                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.

Regards,
Agalya

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


More information about the Users mailing list