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 <[email protected]>
*Verzonden:* Tuesday, April 7, 2020 12:34:29 PM
*Aan:* OpenSIPS users mailling list <[email protected]>; johan <[email protected]>
*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
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to