<p>Richard Mudgett has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6269">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_pjsip.c: Fix topology refresh response code accuracy.<br><br>There are other 1xx and 2xx codes than 100 and 200 respectively.<br><br>Change-Id: I680db0997343256add1478714f5bf5b5569aee17<br>---<br>M channels/chan_pjsip.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/69/6269/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c<br>index 4a24fa6..677dfd3 100644<br>--- a/channels/chan_pjsip.c<br>+++ b/channels/chan_pjsip.c<br>@@ -1484,14 +1484,14 @@<br> <br> static int on_topology_change_response(struct ast_sip_session *session, pjsip_rx_data *rdata)<br> {<br>-        if (rdata->msg_info.msg->line.status.code == 200) {<br>+    if (PJSIP_IS_STATUS_IN_CLASS(rdata->msg_info.msg->line.status.code, 200)) {<br>             /* The topology was changed to something new so give notice to what requested<br>                  * it so it queries the channel and updates accordingly.<br>               */<br>           if (session->channel) {<br>                    ast_queue_control(session->channel, AST_CONTROL_STREAM_TOPOLOGY_CHANGED);<br>          }<br>-    } else if (rdata->msg_info.msg->line.status.code != 100) {<br>+     } else if (300 <= rdata->msg_info.msg->line.status.code) {<br>           /* The topology change failed, so drop the current pending media state */<br>             ast_sip_session_media_state_reset(session->pending_media_state);<br>   }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6269">change 6269</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/6269"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I680db0997343256add1478714f5bf5b5569aee17 </div>
<div style="display:none"> Gerrit-Change-Number: 6269 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>