[SR-Users] Kamailio -can we change 478 to 503 when dns fails?

José Seabra joseseabra4 at gmail.com
Wed Mar 1 15:47:23 CET 2017


Hello Daniel,

Thank you for your help.

Best Regards
José

2017-03-01 14:25 GMT+00:00 Daniel-Constantin Mierla <miconda at gmail.com>:

> Hello,
>
> so it seems that the error happens before the transaction is created, as I
> see SL in the response...
>
> Can you try with:
>
> https://www.kamailio.org/docs/modules/stable/modules/tm.
> html#tm.f.t_set_disable_internal_reply
>
> before t_relay() and then catch the failure execution with if(!t_relay())
> and send there response you want there.
>
> Cheers,
> Daniel
>
> On 01/03/2017 15:11, José Seabra wrote:
>
> Hi Daniel,
> I'm using t_relay().
>
> Regards
> José
>
> 2017-03-01 14:09 GMT+00:00 Daniel-Constantin Mierla <miconda at gmail.com>:
>
>> Hello,
>>
>> are you using forward() or t_relay() to send out?
>>
>> Cheers,
>> Daniel
>>
>> On 28/02/2017 12:32, José Seabra wrote:
>>
>> Hello there,
>> Some times dns server fails and my kamailio server start replying
>> "Unresolvable destination (478/SL)".
>>
>> The propose of my email is to know if is there any possibility to change
>> this reply (478) to for example one of 5XX replies.
>>
>> I have modparam("sl", "default_code", 503) but in situations where dns
>> fails, kamailio doesn't reply 503.
>>
>>
>> Thank you for your support
>>
>> Regards
>> José Seabra
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>> --
>> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
>> Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
>> Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
>>
>> _______________________________________________ SIP Express Router (SER)
>> and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org http://lists.sip-router.org/cg
>> i-bin/mailman/listinfo/sr-users
>
> --
> Cumprimentos
> José Seabra
>
> --
> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
> Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
>
>


-- 
Cumprimentos
José Seabra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170301/6157c9a8/attachment.html>


More information about the sr-users mailing list