[OpenSIPS-Users] t_check_trans

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Apr 7 13:06:05 EST 2020


Yup :)

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit, Amsterdam, May 2020
   https://www.opensips.org/events/Summit-2020Amsterdam/

On 4/7/20 2:43 PM, Johan De Clercq wrote:
> But where should I then check? In the reply-route?
>
> Outlook voor iOS <https://aka.ms/o0ukef> downloaden
> ------------------------------------------------------------------------
> *Van:* Bogdan-Andrei Iancu <bogdan at opensips.org>
> *Verzonden:* Tuesday, April 7, 2020 12:34:29 PM
> *Aan:* OpenSIPS users mailling list <users at lists.opensips.org>; johan 
> <johan at democon.be>
> *Onderwerp:* Re: [OpenSIPS-Users] t_check_trans
> The t_check_trans() is performing a matching of the current request
> against the known transaction. Such matching, for relies, doesn't make
> too much of a sense as:
>
>      1) if you use an onreply_route[], it means your reply already
> matched the transaction
>
>      2) for replies, there is no special handling for retransmissions,
> they are handled in the same way as the first reply. (unlikely for the
> requests)
>
> If you want to "catch" the 200 OK retransmission, simply use a bflag -
> set it on first 200OK and test it for the next 200 OKs :)
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
> https://www.opensips-solutions.com
>
>
> On 4/6/20 6:56 PM, johan wrote:
> > Is there a specific reason why t_check_trans can't be called in a
> > reply route ?
> >
> > To me this seems handy to see if a 200 OK is a retransmission.
> >
> >
> > BR,
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200407/a2f071fc/attachment-0001.html>


More information about the Users mailing list