[OpenSIPS-Users] RLC in 200 OK after BYE
Ben Newlin
Ben.Newlin at genesys.com
Thu Oct 19 02:07:36 UTC 2023
Just to clarify, that is not a global reply route. It is a named reply route that just happens to be named “global”. This would still need to be armed by calling t_on_reply(“global”) during processing of the BYE request.
A true global onreply_route does not have a name at all. It is defined like:
onreply_route {
# do some stuff here
}
This type of reply route will be called for every reply received in the system and does not require any special arming during request processing.
Ben Newlin
From: Users <users-bounces at lists.opensips.org> on behalf of Rodrigo R Passos <rodrigopassos at gmail.com>
Date: Wednesday, October 18, 2023 at 6:28 PM
To: OpenSIPS users mailling list <users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] RLC in 200 OK after BYE
EXTERNAL EMAIL - Please use caution with links and attachments
________________________________
Ben,
Thank you. Now, we put RLC
The code:
onreply_route[global] {
if (t_check_status("200")) {
xlog("L_INFO","[$ci] - Reply Global - $fU - O: $si - D: $rr - RM: $rm - Code: $T_reply_code - RS: $rs\n");
if ($rm == "BYE") {
if ($si == "xxx.xxx.xxx.xxx") {
add_isup_part("Release complete");
}
}
}
}
SIP/2.0 200 OK
CSeq: 342021 BYE
P-RTP-Stat: PS=4611,OS=737760,PR=4618,OR=736108,PL=0
Allow: ACK, INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, INFO
Content-Length: 2
Content-Type: application/ISUP;base=itu-t92+;version=itu-t
Content-Disposition:signal;handling=optional
Em qua., 18 de out. de 2023 às 17:08, Ben Newlin <Ben.Newlin at genesys.com<mailto:Ben.Newlin at genesys.com>> escreveu:
Are you using the global onreply_route? All replies should end up there. If you are using a named reply route, you will need to “arm” the route during processing of the BYE using t_on_reply.
https://www.opensips.org/Documentation/Script-Routes-3-2#toc4<https://www.opensips.org/Documentation/Script-Routes-3-2#toc4>
https://opensips.org/docs/modules/3.2.x/tm.html#func_t_on_reply<https://opensips.org/docs/modules/3.2.x/tm.html#func_t_on_reply>
Ben Newlin
From: Users <users-bounces at lists.opensips.org<mailto:users-bounces at lists.opensips.org>> on behalf of Rodrigo R Passos <rodrigopassos at gmail.com<mailto:rodrigopassos at gmail.com>>
Date: Wednesday, October 18, 2023 at 3:56 PM
To: OpenSIPS users mailling list <users at lists.opensips.org<mailto:users at lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] RLC in 200 OK after BYE
EXTERNAL EMAIL - Please use caution with links and attachments
________________________________
Hi Karsten,
We couldn't see 200 OK after BYE in onreply_route. 😭😭
BR,
Rodrigo
Em qua., 18 de out. de 2023 às 14:41, Karsten Wemheuer <kwem at gmx.de<mailto:kwem at gmx.de>> escreveu:
Hi Rodrigo,
Am Mittwoch, dem 18.10.2023 um 13:40 -0300 schrieb Rodrigo R Passos:
> Hi,
>
> How can i capture 200 OK after BYE (REL) from Interconnection to send
> RLC on reply message?
>
> I'm trying to get the message on loose_route, but without success.
> Anyone could help me or share with us an example of a route script?
I think, You should use on_reply_route to get response to the BYE
request. Than check status and method with equal to "BYE".
HTH,
Karsten
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20231019/05afe4a1/attachment-0001.html>
More information about the Users
mailing list