diff options
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_core.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c index 086dabf7..16dda48a 100644 --- a/pjsip/src/pjsua-lib/pjsua_core.c +++ b/pjsip/src/pjsua-lib/pjsua_core.c @@ -701,6 +701,15 @@ PJ_DEF(pj_status_t) pjsua_init( const pjsua_config *ua_cfg, return status; } +#if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ + PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT != 0 + if (!(pj_get_sys_info()->flags & PJ_SYS_HAS_IOS_BG)) { + PJ_LOG(5, (THIS_FILE, "Device does not support " + "background mode")); + pj_activesock_enable_iphone_os_bg(PJ_FALSE); + } +#endif + /* If nameserver is configured, create DNS resolver instance and * set it to be used by SIP resolver. */ |