<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6215">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_messaging: IPv6 receive address needs brackets<br><br>When handling an incoming SIP MESSAGE, PJSIP<br>attaches the IP address that the message was<br>received from to the message in the variable<br>PJSIP_RECVADDR. When the IP address is IPv6<br>the :PORT appended results in an unparseable<br>mess. By using an additional bit flag on the<br>pj_sockaddr_print call, the conventional use<br>of brackets around the address is achieved.<br><br>ASTERISK-27193 #close<br><br>Change-Id: I12342521f2ce87a5b6e4883d480a3fd957aa9fd9<br>---<br>M res/res_pjsip_messaging.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip_messaging.c b/res/res_pjsip_messaging.c<br>index 5c41a70..d31e101 100644<br>--- a/res/res_pjsip_messaging.c<br>+++ b/res/res_pjsip_messaging.c<br>@@ -512,7 +512,7 @@<br> buf[size] = '\0';<br> res |= ast_msg_set_from(msg, "%s", buf);<br> <br>- field = pj_sockaddr_print(&rdata->pkt_info.src_addr, buf, sizeof(buf) - 1, 1);<br>+ field = pj_sockaddr_print(&rdata->pkt_info.src_addr, buf, sizeof(buf) - 1, 3);<br> res |= ast_msg_set_var(msg, "PJSIP_RECVADDR", field);<br> <br> switch (rdata->tp_info.transport->key.type) {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6215">change 6215</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6215"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I12342521f2ce87a5b6e4883d480a3fd957aa9fd9 </div>
<div style="display:none"> Gerrit-Change-Number: 6215 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Scott Griepentrog <sgriepentrog@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>