Changeset 683 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Aug 15, 2006 1:11:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r661 r683 65 65 66 66 67 static pjsua_acc_id current_acc; 67 //static pjsua_acc_id current_acc; 68 #define current_acc pjsua_acc_get_default() 68 69 static pjsua_call_id current_call; 69 70 static pj_str_t uri_arg; … … 1920 1921 i = my_atoi(buf); 1921 1922 if (pjsua_acc_is_valid(i)) { 1922 current_acc = i;1923 pjsua_acc_set_default(i); 1923 1924 PJ_LOG(3,(THIS_FILE, "Current account changed to %d", i)); 1924 1925 } else { … … 2378 2379 2379 2380 /* Add local account */ 2380 pjsua_acc_add_local(transport_id, PJ_TRUE, ¤t_acc);2381 pjsua_acc_add_local(transport_id, PJ_TRUE, NULL); 2381 2382 pjsua_acc_set_online_status(current_acc, PJ_TRUE); 2382 2383 … … 2393 2394 2394 2395 /* Add local account */ 2395 pjsua_acc_add_local(transport_id, PJ_TRUE, ¤t_acc);2396 pjsua_acc_add_local(transport_id, PJ_TRUE, NULL); 2396 2397 pjsua_acc_set_online_status(current_acc, PJ_TRUE); 2397 2398 } … … 2406 2407 /* Add accounts */ 2407 2408 for (i=0; i<app_config.acc_cnt; ++i) { 2408 status = pjsua_acc_add(&app_config.acc_cfg[i], PJ_TRUE, ¤t_acc);2409 status = pjsua_acc_add(&app_config.acc_cfg[i], PJ_TRUE, NULL); 2409 2410 if (status != PJ_SUCCESS) 2410 2411 goto on_error;
Note: See TracChangeset
for help on using the changeset viewer.