[SR-Users] kamailio does DNS lookup of from host when using TCP

Daniel-Constantin Mierla miconda at gmail.com
Wed Nov 12 23:01:45 CET 2014


The error is while trying to relay, which uses $ru or $du as next hop
address.

Can you give exactly how t_relay_to_tcp() is used (what parameters)?

Also, add next xlog before relay function:

xlog("r-uri: $ru d-uri: $du\n");

Cheers,
Daniel

On 12/11/14 22:24, Vik Killa wrote:
> Here is requested debugger info and SIP trace:
>
>
>
> [...]
> Nov 12 16:19:59 ua01-proxy01 /usr/sbin/kamailio[4654]: ERROR: ***
> cfgtrace:request_route=[RELAY]
> c=[/usr/local/testswitch/etc/kamailio.cfg] l=194 a=24 n=t_relay_to_tcp
> Nov 12 16:19:59 ua01-proxy01 /usr/sbin/kamailio[4654]: ERROR: <core>
> [resolve.c:1726]: sip_hostport2su(): could not resolve hostname: "3.local"
> Nov 12 16:19:59 ua01-proxy01 /usr/sbin/kamailio[4654]: ERROR: tm
> [ut.h:337]: uri2dst2(): failed to resolve "3.local"
> Nov 12 16:19:59 ua01-proxy01 /usr/sbin/kamailio[4654]: ERROR: tm
> [t_fwd.c:1778]: t_forward_nonack(): ERROR: t_forward_nonack: failure
> to add branches

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Nov 24-27, Berlin - http://www.asipto.com




More information about the sr-users mailing list