updated pjsip stack
There is still a bug on incoming calls when buiding for android
diff --git a/jni/pjproject-android/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m b/jni/pjproject-android/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m
index 739d88a..5bcf240 100644
--- a/jni/pjproject-android/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m
+++ b/jni/pjproject-android/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m
@@ -151,26 +151,20 @@
}
- (void)keepAlive {
- int i, timeout = KEEP_ALIVE_INTERVAL;
+ int i;
if (!pj_thread_is_registered())
{
pj_thread_register("ipjsua", a_thread_desc, &a_thread);
}
+ /* Since iOS requires that the minimum keep alive interval is 600s,
+ * application needs to make sure that the account's registration
+ * timeout is long enough.
+ */
for (i = 0; i < (int)pjsua_acc_get_count(); ++i) {
if (pjsua_acc_is_valid(i)) {
- pjsua_acc_config acc_cfg;
-
- pjsua_acc_get_config(i, &acc_cfg);
- if (!acc_cfg.reg_uri.slen)
- continue;
- if (acc_cfg.reg_timeout < timeout) {
- acc_cfg.reg_timeout = timeout;
- pjsua_acc_modify(i, &acc_cfg);
- } else {
- pjsua_acc_set_registration(i, PJ_TRUE);
- }
+ pjsua_acc_set_registration(i, PJ_TRUE);
}
}
}