]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_messaging: IPv6 receive address needs brackets
authorScott Griepentrog <scott@griepentrog.com>
Thu, 10 Aug 2017 14:09:29 +0000 (09:09 -0500)
committerScott Griepentrog <sgriepentrog@digium.com>
Thu, 10 Aug 2017 14:23:25 +0000 (09:23 -0500)
commit9d2844fd24ace635b2d5ee011d40d0f418df519a
tree6a09c28f20a2a1ceb33755fa4c3e0300b0f5f4cf
parentca1807ed0ad2471c10156fd175a8f1045e28a368
res_pjsip_messaging: IPv6 receive address needs brackets

When handling an incoming SIP MESSAGE, PJSIP
attaches the IP address that the message was
received from to the message in the variable
PJSIP_RECVADDR.  When the IP address is IPv6
the :PORT appended results in an unparseable
mess. By using an additional bit flag on the
pj_sockaddr_print call, the conventional use
of brackets around the address is achieved.

ASTERISK-27193 #close

Change-Id: I12342521f2ce87a5b6e4883d480a3fd957aa9fd9
res/res_pjsip_messaging.c