Changeset 4464
- Timestamp:
- Apr 12, 2013 8:05:12 AM (12 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/pjsua
- Files:
-
- 19 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r4461 r4464 19 19 */ 20 20 #include "pjsua_common.h" 21 #include "gui.h" 21 22 #define USE_GUI 22 23 23 24 #define THIS_FILE "pjsua_app.c" … … 79 80 * Configuration manipulation 80 81 */ 81 82 #if (defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \83 PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0) || \84 defined(__IPHONE_4_0)85 void keepAliveFunction(int timeout)86 {87 int i;88 for (i=0; i<(int)pjsua_acc_get_count(); ++i) {89 if (!pjsua_acc_is_valid(i))90 continue;91 92 if (app_config.acc_cfg[i].reg_timeout < timeout) {93 pjsua_acc_get_config(i, &app_config.acc_cfg[i]);94 app_config.acc_cfg[i].reg_timeout = timeout;95 pjsua_acc_modify(i, &app_config.acc_cfg[i]);96 } else {97 pjsua_acc_set_registration(i, PJ_TRUE);98 }99 }100 }101 #endif102 82 103 83 /***************************************************************************** … … 2036 2016 } 2037 2017 2018 pj_cli_telnet_on_started on_started_cb = &cli_telnet_started; 2019 pj_cli_on_quit on_quit_cb = &cli_on_quit; 2020 pj_cli_on_destroy on_destroy_cb = &cli_on_destroy; 2021 pj_cli_on_restart_pjsua on_restart_pjsua_cb = &cli_on_restart_pjsua; 2022 2038 2023 /** ======================= **/ 2039 2024 … … 2051 2036 do { 2052 2037 if (app_restart) { 2053 status = app_init( cli_telnet_started, cli_on_quit,2054 cli_on_destroy, cli_on_restart_pjsua);2038 status = app_init(on_started_cb, on_quit_cb, 2039 on_destroy_cb, on_restart_pjsua_cb); 2055 2040 if (status != PJ_SUCCESS) 2056 2041 return 1;
Note: See TracChangeset
for help on using the changeset viewer.