[SR-Users] Disable DNS

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 11 15:01:52 CEST 2017



On 10.04.17 17:34, Diego Nadares wrote:
> Hi Daniel,
>
> Thanks for your response. Your suggestion helped me a lot. We don't
> use domains so instead a domain I set the ip address ($Ri). 
>
> I added this to my cfg. I don't know if is the right place. Whay do
> you think?
>
> request_route {
>
>        .....
>        remove_hf("Route");
>         if (is_method("INVITE|SUBSCRIBE")) {
>                 *$rd = $Ri; *
>                 record_route();
>         }
>         ....
If you want to preserve a domain without DNS in the R-URI, but still be
able to send to a specific IP address, just update $du (known as
destination uri or outbound proxy address):

$du = "sip:x.y.z.w";

If $du is set, upon doing t_relay(), forward() or a similar function,
then it is used for routing.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170411/ae82264d/attachment.html>


More information about the sr-users mailing list