Hi Guys,

Is it possible to disable using of dns in kamailio?

The thing is that not all INVITES that arrives to the proxy comes with ip 172.16.205.25/PUB_IP in the ruri. Some gateways sends a string in ruri -> @myproxysip and others sends @other.domain.com

Request-Line: INVITE sip:1111111@myproxysip:5060;user=phone SIP/2.0
Request-Line: INVITE sip:1111111@other.domain.com:5060;user=phone SIP/2.0

Sometimes, myproxysip is from a public ip and sometimes is from a private ip. So, it's difficult to know to which of kamailio's interfaces (pub or priv) is.

ERROR: <core> [resolve.c:1694]: sip_hostport2su(): could not resolve hostn
ame.

Reconfigure those gw it's not possible. There are a lot of them and a lot of people that won't like that idea.

Is possible to disable it? or What do you recommend me to do? Maybe using /etc/hosts?

Any suggestion will be very appreciated.

Diego.