<p>Benjamin Keith Ford has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11360">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pjsip_options.c: Allow immediate qualifies for new contacts.<br><br>When multiple endpoints try to register close together using the same<br>AOR with qualify_frequency set, one contact would qualify immediately<br>while the other contacts would have to wait out the duration of the<br>timer before being able to qualify. Changing the conditional to check<br>the contact container count for a non-zero value allows all contacts to<br>qualify immediately.<br><br>Change-Id: I79478118ee7e0d6e76af7c354d66684220db9415<br>---<br>M res/res_pjsip/pjsip_options.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/60/11360/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip/pjsip_options.c b/res/res_pjsip/pjsip_options.c</span><br><span>index 81e8304..0a27229 100644</span><br><span>--- a/res/res_pjsip/pjsip_options.c</span><br><span>+++ b/res/res_pjsip/pjsip_options.c</span><br><span>@@ -2107,7 +2107,7 @@</span><br><span> </span><br><span>   if (task_data->aor_options->qualify_frequency) {</span><br><span>               /* If this is the first contact we need to schedule up qualification */</span><br><span style="color: hsl(0, 100%, 40%);">-         if (ao2_container_count(task_data->aor_options->contacts) == 1) {</span><br><span style="color: hsl(120, 100%, 40%);">+               if (ao2_container_count(task_data->aor_options->contacts)) {</span><br><span>                   ast_debug(3, "Starting scheduled callback on AOR '%s' for qualifying as there is now a contact on it\n",</span><br><span>                           task_data->aor_options->name);</span><br><span>                         /*</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11360">change 11360</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/+/11360"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: I79478118ee7e0d6e76af7c354d66684220db9415 </div>
<div style="display:none"> Gerrit-Change-Number: 11360 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>