<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7827">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">[patch] chan_ooh323: Limit outgoinglimit to positive values as intended.<br><br>ASTERISK-27552<br><br>Change-Id: Ifbf9d51e7374ca2e8b27ec568f6770050fc1a854<br>---<br>M addons/chan_ooh323.c<br>1 file changed, 5 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/27/7827/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c<br>index c25c130..1fa721c 100644<br>--- a/addons/chan_ooh323.c<br>+++ b/addons/chan_ooh323.c<br>@@ -2604,9 +2604,12 @@<br> }<br> <br> } else if (!strcasecmp(v->name, "outgoinglimit")) {<br>- peer->outgoinglimit = atoi(v->value);<br>- if (peer->outgoinglimit < 0)<br>+ int val = atoi(v->value);<br>+ if (val < 0) {<br> peer->outgoinglimit = 0;<br>+ } else {<br>+ peer->outgoinglimit = val;<br>+ }<br> } else if (!strcasecmp(v->name, "accountcode")) {<br> ast_copy_string(peer->accountcode, v->value, sizeof(peer->accountcode));<br> } else if (!strcasecmp(v->name, "faststart")) {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7827">change 7827</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/7827"/><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: Ifbf9d51e7374ca2e8b27ec568f6770050fc1a854 </div>
<div style="display:none"> Gerrit-Change-Number: 7827 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>