[asterisk-commits] kmoore: branch 12 r429245 - /branches/12/res/res_pjsip/pjsip_options.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 10 07:14:32 CST 2014
Author: kmoore
Date: Wed Dec 10 07:14:24 2014
New Revision: 429245
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=429245
Log:
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.
Modified:
branches/12/res/res_pjsip/pjsip_options.c
Modified: branches/12/res/res_pjsip/pjsip_options.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip/pjsip_options.c?view=diff&rev=429245&r1=429244&r2=429245
==============================================================================
--- branches/12/res/res_pjsip/pjsip_options.c (original)
+++ branches/12/res/res_pjsip/pjsip_options.c Wed Dec 10 07:14:24 2014
@@ -960,7 +960,9 @@
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;
}
More information about the asterisk-commits
mailing list