Ignore:
Timestamp:
Sep 5, 2013 4:16:19 AM (9 years ago)
Author:
ming
Message:

Re #1697: Add internal compile time option to disable the use of Audio Session API (deprecated)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m

    r4497 r4590  
    152152 
    153153- (void)keepAlive { 
    154     int i, timeout = KEEP_ALIVE_INTERVAL; 
     154    int i; 
    155155     
    156156    if (!pj_thread_is_registered()) 
     
    159159    } 
    160160     
     161    /* Since iOS requires that the minimum keep alive interval is 600s, 
     162     * application needs to make sure that the account's registration 
     163     * timeout is long enough. 
     164     */ 
    161165    for (i = 0; i < (int)pjsua_acc_get_count(); ++i) { 
    162166        if (pjsua_acc_is_valid(i)) { 
    163             pjsua_acc_config acc_cfg; 
    164  
    165             pjsua_acc_get_config(i, &acc_cfg); 
    166             if (!acc_cfg.reg_uri.slen) 
    167                 continue; 
    168             if (acc_cfg.reg_timeout < timeout) { 
    169                 acc_cfg.reg_timeout = timeout; 
    170                 pjsua_acc_modify(i, &acc_cfg); 
    171             } else { 
    172                 pjsua_acc_set_registration(i, PJ_TRUE); 
    173             } 
     167            pjsua_acc_set_registration(i, PJ_TRUE); 
    174168        } 
    175169    } 
Note: See TracChangeset for help on using the changeset viewer.