[SR-Users] DNS Failover try next destination on receiving code other than 503

Daniel-Constantin Mierla miconda at gmail.com
Mon May 30 13:05:23 CEST 2022


On 30.05.22 12:45, Patrick Karton wrote:
> Thanks for Feedback.
> I will create PR.

It would be appreciated.

Just in case it helps, as a hint, maybe you can leverage (reuse or
inspire from) the C code done for dispatcher modparam ds_ping_reply_codes:

-
https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.p.ds_ping_reply_codes

It allows specifying more response codes or classes.

Cheers,
Daniel

>
> Le 30 mai 2022 11:28, Daniel-Constantin Mierla <miconda at gmail.com> a
> écrit :
>
>     Hello,
>
>
>     probably you have to extend the C code to support this feature, if
>     there is no module parameter in tm module that allows
>     customization at this moment.
>
>
>     Cheers,
>     Daniel
>
>
>     On 23.05.22 16:48, Patrick Karton wrote:
>
>         Hello, 
>
>         im using DNS Failover and everything works well except i would
>         like to try other resolved ips when i receive a 408 from the
>         previous ones
>
>         As far as i know only a received 503 will trigger next
>         destinations and there is no config parameters in tm module to
>         handle that behaviour.
>
>         so how can i implement it ?
>
>         set a failure route before relay and just call t_relay() after
>         again ? 
>
>         also is there a way in failure route to know how many
>         destinations are left to exit failure route.
>
>         Thanks for help.
>
>         __________________________________________________________
>         Kamailio - Users Mailing List - Non Commercial Discussions
>           * sr-users at lists.kamailio.org
>         Important: keep the mailing list in the recipients, do not reply only to the sender!
>         Edit mailing list options or unsubscribe:
>           * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>     -- 
>     Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com>
>     www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
>     Kamailio Advanced Training - Online: June 20-23, 2022
>       * https://www.asipto.com/sw/kamailio-advanced-training-online/
>
>
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online: June 20-23, 2022
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220530/2a351799/attachment.htm>


More information about the sr-users mailing list