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@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@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
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/

-- 
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/