[asterisk-dev] [Code Review] 4289: pjsip_options: Fix duplicate qualify schedules on reload.

George Joseph reviewboard at asterisk.org
Mon Dec 22 11:10:19 CST 2014

This is an automatically generated e-mail. To reply, visit:

Review request for Asterisk Developers.

Repository: Asterisk


Every time you do a core reload, all qualifyable contacts are scheduled again without removing the existing schedule.  So, if you've reloaded 10 times, all contacts will be qualified 11 times in the specified time interval.

This patch just adds an unschedule_qualify before adding the new one.

NB: If a contact unregisters, it was already being cleaned up correctly but if a reload is done and an endpoint/aor is deleted, the contact continues to qualify.  Separate patch coming for that.


  branches/13/res/res_pjsip/pjsip_options.c 430001 

Diff: https://reviewboard.asterisk.org/r/4289/diff/


Verified with Wireshark that the correct number of OPTIONS messages are being sent after a reload.


George Joseph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20141222/1ef426c9/attachment-0001.html>

More information about the asterisk-dev mailing list