- Timestamp:
- May 26, 2010 3:04:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r3172 r3185 1481 1481 acc->reg_last_code = param->code; 1482 1482 1483 if (pjsua_var.ua_cfg.cb.on_reg_state)1484 (*pjsua_var.ua_cfg.cb.on_reg_state)(acc->index);1485 1486 1483 /* Check if we need to auto retry registration. Basically, registration 1487 1484 * failure codes triggering auto-retry are those of temporal failures … … 1498 1495 schedule_reregistration(acc); 1499 1496 } 1497 1498 if (pjsua_var.ua_cfg.cb.on_reg_state) 1499 (*pjsua_var.ua_cfg.cb.on_reg_state)(acc->index); 1500 1500 1501 1501 PJSUA_UNLOCK(); … … 2369 2369 PJSUA_LOCK(); 2370 2370 2371 if (!acc->valid || !acc->auto_rereg.active) 2371 /* Check if the reregistration timer is still valid, e.g: while waiting 2372 * timeout timer application might have deleted the account or disabled 2373 * the auto-reregistration. 2374 */ 2375 if (!acc->valid || !acc->auto_rereg.active || 2376 acc->cfg.reg_retry_interval == 0) 2377 { 2372 2378 goto on_return; 2379 } 2373 2380 2374 2381 /* Start re-registration */ … … 2391 2398 pj_time_val delay; 2392 2399 2393 pj_assert(acc && acc->valid && acc->cfg.reg_retry_interval); 2400 pj_assert(acc); 2401 2402 /* Validate the account and re-registration feature status */ 2403 if (!acc->valid || acc->cfg.reg_retry_interval == 0) { 2404 return; 2405 } 2394 2406 2395 2407 /* If configured, disconnect calls of this account after the first
Note: See TracChangeset
for help on using the changeset viewer.