diff options
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f0fb73304..2f053f735 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -10754,11 +10754,12 @@ static void sip_poke_all_peers(void) /*--- sip_send_all_registers: Send all known registrations */ static void sip_send_all_registers(void) { - int ms = (rand() >> 12) & 0x1fff; + int ms; ASTOBJ_CONTAINER_TRAVERSE(®l, 1, do { ASTOBJ_WRLOCK(iterator); if (iterator->expire > -1) ast_sched_del(sched, iterator->expire); + ms = (rand() >> 12) & 0x1fff; iterator->expire = ast_sched_add(sched, ms, sip_reregister, iterator); ASTOBJ_UNLOCK(iterator); } while (0) |