<p>Joshua Colp has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8301">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_sip: Emit a second ringing event to ensure channel is found.<br><br>When constructing a dialog-info+xml NOTIFY message a ringing channel<br>is found if the state is ringing and further information is placed into<br>the message. Due to the migration to the Stasis message bus this did<br>not always work as expected.<br><br>This change raises a second ringing event in such a way to guarantee<br>that the event is received by chan_sip and another lookup is done to<br>find the ringing channel.<br><br>ASTERISK-24488<br><br>Change-Id: I547a458fc59721c918cb48be060cbfc3c88bcf9c<br>---<br>M channels/chan_sip.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/01/8301/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/channels/chan_sip.c b/channels/chan_sip.c<br>index acf5a14..8570163 100644<br>--- a/channels/chan_sip.c<br>+++ b/channels/chan_sip.c<br>@@ -23984,6 +23984,9 @@<br>                   ast_queue_control(p->owner, AST_CONTROL_RINGING);<br>                  if (ast_channel_state(p->owner) != AST_STATE_UP) {<br>                                 ast_setstate(p->owner, AST_STATE_RINGING);<br>+                                if (p->relatedpeer) {<br>+                                     ast_devstate_changed(AST_DEVICE_UNKNOWN, AST_DEVSTATE_NOT_CACHABLE, "SIP/%s", p->relatedpeer->name);<br>+                         }<br>                     }<br>             }<br>             if (find_sdp(req)) {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8301">change 8301</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/8301"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I547a458fc59721c918cb48be060cbfc3c88bcf9c </div>
<div style="display:none"> Gerrit-Change-Number: 8301 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>