- Timestamp:
- Sep 5, 2013 4:16:19 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m
r4497 r4590 152 152 153 153 - (void)keepAlive { 154 int i , timeout = KEEP_ALIVE_INTERVAL;154 int i; 155 155 156 156 if (!pj_thread_is_registered()) … … 159 159 } 160 160 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 */ 161 165 for (i = 0; i < (int)pjsua_acc_get_count(); ++i) { 162 166 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); 174 168 } 175 169 }
Note: See TracChangeset
for help on using the changeset viewer.