Don't do SIP contact/route DNS if we're not using the result.
authorWalter Doekes <walter+asterisk@wjd.nu>
Tue, 16 Oct 2012 21:38:00 +0000 (21:38 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Tue, 16 Oct 2012 21:38:00 +0000 (21:38 +0000)
commit8a65f47e88a8de9dfa5426441c06aaa63e6374a0
treee38e2fd56f07b130a428d393aa69cd1286064b34
parentb2f9542f617a5b99dc8742426fe84da919343f56
Don't do SIP contact/route DNS if we're not using the result.

In many cases (for peers behind NAT or for TCP sockets) we do not need
to look up any hostname in the Contact (or Route) when sending an
in-dialog request. This should reduce netsock2.c: getaddrinfo errors in
certain scenarios.

Review: https://reviewboard.asterisk.org/r/2156

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@375110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c