Eliminates doubling the :port part of SIP Notify Message-Account headers.
authorJonathan Rose <jrose@digium.com>
Thu, 19 Jan 2012 21:55:41 +0000 (21:55 +0000)
committerJonathan Rose <jrose@digium.com>
Thu, 19 Jan 2012 21:55:41 +0000 (21:55 +0000)
commit6fd0ac9dcd8225b060c0038ee0cd5440040a57ef
treeefd171a8781c38109669281f28b114e399b39cd5
parentddf421bd5c45b94ac31c34c6699f21cf067ab3d1
Eliminates doubling the :port part of SIP Notify Message-Account headers.

This patch prevents the domain string from getting mangled during the initreqprep
step by moving the initialization to before its immediate use.  It also documents
this pitfall for the ast_sockaddr_stringify functions.

(issue ASTERISK-19057)
Reported by: Yuri
Review: https://reviewboard.asterisk.org/r/1678/
........

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

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

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