Don't allow transport=tcp when tcpenable=no.
authorWalter Doekes <walter+asterisk@wjd.nu>
Tue, 6 Dec 2011 19:44:27 +0000 (19:44 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Tue, 6 Dec 2011 19:44:27 +0000 (19:44 +0000)
commite14f5721329e0ce00fb31d68bb9abff68083effd
treedade5f426c4bec75677c0766396c7cbe17517cb2
parent7bdaa31d2500a720849ee93636e9e6ecb36e642f
Don't allow transport=tcp when tcpenable=no.

When tcpenable=no, sending to transport=tcp hosts was still allowed.
Resolving the source address wasn't possible and yielded the string
"(null)" in SIP messages. Fixed that and a couple of not-so-correct
log messages.

(closes issue ASTERISK-18837)
Reported by: Andreas Topp

Review: https://reviewboard.asterisk.org/r/1585
Reviewed by: Matt Jordan
........

Merged revisions 347166 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 347167 from http://svn.asterisk.org/svn/asterisk/branches/10

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