<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14766">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_sip: Clear ToHost property on peer when changing to dynamic host<br><br>The ToHost parameter was not cleared when a peer's host value was<br>changed to dynamic. This causes invites to be sent to the original host.<br><br>ASTERISK-29011 #close<br><br>Change-Id: I9678d512741f71baca8f131a65b7523020b07d5c<br>---<br>M channels/chan_sip.c<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/channels/chan_sip.c b/channels/chan_sip.c</span><br><span>index 6872dc6..78c0bb3 100644</span><br><span>--- a/channels/chan_sip.c</span><br><span>+++ b/channels/chan_sip.c</span><br><span>@@ -31903,6 +31903,7 @@</span><br><span>                                    if ((!found && !ast_test_flag(&global_flags[1], SIP_PAGE2_RTCACHEFRIENDS)) || !peer->host_dynamic) {</span><br><span>                                          /* Initialize stuff if this is a new peer, or if it used to</span><br><span>                                           * not be dynamic before the reload. */</span><br><span style="color: hsl(120, 100%, 40%);">+                                               ast_string_field_set(peer, tohost, NULL);</span><br><span>                                            ast_sockaddr_setnull(&peer->addr);</span><br><span>                                    }</span><br><span>                                    peer->host_dynamic = TRUE;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14766">change 14766</a>. To unsubscribe, or for help writing mail filters, 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/c/asterisk/+/14766"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 17 </div>
<div style="display:none"> Gerrit-Change-Id: I9678d512741f71baca8f131a65b7523020b07d5c </div>
<div style="display:none"> Gerrit-Change-Number: 14766 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Dennis <dennis.buteyn@xorcom.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>