]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4856 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 21 Nov 2012 15:11:04 +0000 (09:11 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 21 Nov 2012 15:11:04 +0000 (09:11 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index b4d3e894a3513163395b12108f73a4ad74ad9b50..e1aa82a37e90557b8c429c51dbfb91013dedd230 100644 (file)
@@ -2212,7 +2212,7 @@ void *SWITCH_THREAD_FUNC sofia_profile_worker_thread_run(switch_thread_t *thread
 
 
                if (!sofia_test_pflag(profile, PFLAG_STANDBY)) {
-                       if (++ireg_loops >= IREG_SECONDS) {
+                       if (++ireg_loops >= profile->ireg_seconds) {
                                time_t now = switch_epoch_time_now(NULL);
                                sofia_reg_check_expire(profile, now, 0);
                                ireg_loops = 0;