Changeset 3429 for pjproject/trunk


Ignore:
Timestamp:
Mar 1, 2011 7:47:37 AM (14 years ago)
Author:
ming
Message:

Fix #1203: iPhone OS background mode detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r3423 r3429  
    702702    } 
    703703 
     704#if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 
     705    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT != 0 
     706    if (!(pj_get_sys_info()->flags & PJ_SYS_HAS_IOS_BG)) { 
     707        PJ_LOG(5, (THIS_FILE, "Device does not support " 
     708                              "background mode")); 
     709        pj_activesock_enable_iphone_os_bg(PJ_FALSE); 
     710    } 
     711#endif 
     712 
    704713    /* If nameserver is configured, create DNS resolver instance and 
    705714     * set it to be used by SIP resolver. 
Note: See TracChangeset for help on using the changeset viewer.