[Serusers] Re: [Serhelp] Getting t_relay_to to always do a dns lookup
Jiri Kuthan
jiri at iptel.org
Fri Jan 21 04:56:29 CET 2005
That's easy.
Instead of t_relay_to_udp("host","5060") do
rewritehostport("host:5060"); t_relay();
Resolver will then be used each time and solve your problem unless
a DNS cache tricks you out.
Please use the public forum at serusers at lists.iptel.org.
-jiri
At 09:11 AM 1/19/2005, Neville Perera wrote:
>Hello,
>
>How would I get the tm module to always do a DNS lookup for the destination (as my remote gateway is on a dynamic IP address)?
>
>At the moment I have it as follows:
>
> t_relay_to_udp("gw.domain.com", "5060");
>
>and if the remote gateway ip changes I have to restart ser to get it to work ok. I have disabled nscd from caching etc.
>
>As I am no expert any help you can give is much appreciated.
>
>Thank you.
>
>Neville
>_______________________________________________
>Serhelp mailing list
>serhelp at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serhelp
--
Jiri Kuthan http://iptel.org/~jiri/
More information about the sr-users
mailing list