[Asterisk-code-review] pjsip_options.c: Allow immediate qualifies for new contacts. (...asterisk[13])
Benjamin Keith Ford
asteriskteam at digium.com
Tue May 7 11:14:34 CDT 2019
Benjamin Keith Ford has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/11360
Change subject: pjsip_options.c: Allow immediate qualifies for new contacts.
......................................................................
pjsip_options.c: Allow immediate qualifies for new contacts.
When multiple endpoints try to register close together using the same
AOR with qualify_frequency set, one contact would qualify immediately
while the other contacts would have to wait out the duration of the
timer before being able to qualify. Changing the conditional to check
the contact container count for a non-zero value allows all contacts to
qualify immediately.
Change-Id: I79478118ee7e0d6e76af7c354d66684220db9415
---
M res/res_pjsip/pjsip_options.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/60/11360/1
diff --git a/res/res_pjsip/pjsip_options.c b/res/res_pjsip/pjsip_options.c
index 81e8304..0a27229 100644
--- a/res/res_pjsip/pjsip_options.c
+++ b/res/res_pjsip/pjsip_options.c
@@ -2107,7 +2107,7 @@
if (task_data->aor_options->qualify_frequency) {
/* If this is the first contact we need to schedule up qualification */
- if (ao2_container_count(task_data->aor_options->contacts) == 1) {
+ if (ao2_container_count(task_data->aor_options->contacts)) {
ast_debug(3, "Starting scheduled callback on AOR '%s' for qualifying as there is now a contact on it\n",
task_data->aor_options->name);
/*
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/11360
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: I79478118ee7e0d6e76af7c354d66684220db9415
Gerrit-Change-Number: 11360
Gerrit-PatchSet: 1
Gerrit-Owner: Benjamin Keith Ford <bford at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190507/f6157a7d/attachment.html>
More information about the asterisk-code-review
mailing list