On 10.04.17 18:14, Daniel Tryba wrote:
On Mon, Apr 10, 2017 at 12:34:51PM -0300, Diego
Nadares wrote:
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).
Just took a look at the
dns options, strangely enough there is no way to
disable it apparently.
If DNS would be disabled, then how the request should be routed?
DNS query is done only when requesting to send out via t_relay(),
forward() or similar functions. It is not done for scripts operations
such as:
$rd= "invalid.domain.com";
Cheers,
Daniel
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();
}
Any place is fine, unless you forward/proxy for some specific domains.
In my default setups I set $rd to a known value just before location()
stuff.
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
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