Skip to content
Snippets Groups Projects
Commit 0cba439c authored by Kinsey Moore's avatar Kinsey Moore
Browse files

PJSIP: Fix assert on initial mass qualify

This fixes the MWI test regressions caused by r429127 and ensures that
contacts have non-zero qualify_frequency before attempting scheduling.
........

Merged revisions 429245 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 429246 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@429247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 8fe45f0f
No related branches found
No related tags found
No related merge requests found
......@@ -960,7 +960,9 @@ static int qualify_and_schedule_cb(void *obj, void *arg, int flags)
initial_interval = contact->qualify_frequency * 1000;
initial_interval = (int)(initial_interval * ast_random_double());
schedule_qualify(contact, initial_interval);
if (contact->qualify_frequency) {
schedule_qualify(contact, initial_interval);
}
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment