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