Hi Miteshkumar,

To achieve failover for 408, you need to arm a failure route for your INVITE, see https://www.opensips.org/Documentation/Script-Routes-3-0#toc3

This failure route will be trigger whenever your INVITE transaction will complete with a negative reply. In the failure route you can check what was the final negative reply (with t_check_status() from  TM module) and if 408, you can set a new destination and t_relay() again.

Best regards,

Bogdan-Andrei Iancu

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

On 12/26/19 12:12 PM, Miteshkumar Thakkar via Users wrote:
Thanks for your response. I will try it. But, that cannot be done using DNS failover of TM module by any means, right?

On Thu, Dec 26, 2019 at 3:17 PM David Villasmil <[email protected] <mailto:[email protected]>> wrote:

    Have you tried using the dispatcher module? Does exactly what you
    want.

    On Thu, 26 Dec 2019 at 08:41, Miteshkumar Thakkar via Users
    <[email protected] <mailto:[email protected]>> wrote:

        Hi,

        I want to achieve failover in case of 408 - Request timeout.

        One option I can see is DNS failover of TM Module. But, it
        does failover in case of 503 as well. I do not want that.

        I do not want failover in case of 503. I just want it, in case
        of 408 - Request timeout.
        How can I achieve this?

        Any help is appreciated.

        Thank You,
        Mitesh
        _______________________________________________
        Users mailing list
        [email protected] <mailto:[email protected]>
        http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-- Regards,

    David Villasmil
    email: [email protected]
    <mailto:[email protected]>
    phone: +34669448337


_______________________________________________
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