Ignore:
Timestamp:
Aug 15, 2006 1:11:22 PM (18 years ago)
Author:
bennylp
Message:

Added initial PUBLISH client support, and also default account selection in pjsua/pjsua-lib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r661 r683  
    6565 
    6666 
    67 static pjsua_acc_id     current_acc; 
     67//static pjsua_acc_id   current_acc; 
     68#define current_acc     pjsua_acc_get_default() 
    6869static pjsua_call_id    current_call; 
    6970static pj_str_t         uri_arg; 
     
    19201921            i = my_atoi(buf); 
    19211922            if (pjsua_acc_is_valid(i)) { 
    1922                 current_acc = i; 
     1923                pjsua_acc_set_default(i); 
    19231924                PJ_LOG(3,(THIS_FILE, "Current account changed to %d", i)); 
    19241925            } else { 
     
    23782379 
    23792380        /* Add local account */ 
    2380         pjsua_acc_add_local(transport_id, PJ_TRUE, &current_acc); 
     2381        pjsua_acc_add_local(transport_id, PJ_TRUE, NULL); 
    23812382        pjsua_acc_set_online_status(current_acc, PJ_TRUE); 
    23822383 
     
    23932394 
    23942395        /* Add local account */ 
    2395         pjsua_acc_add_local(transport_id, PJ_TRUE, &current_acc); 
     2396        pjsua_acc_add_local(transport_id, PJ_TRUE, NULL); 
    23962397        pjsua_acc_set_online_status(current_acc, PJ_TRUE); 
    23972398    } 
     
    24062407    /* Add accounts */ 
    24072408    for (i=0; i<app_config.acc_cnt; ++i) { 
    2408         status = pjsua_acc_add(&app_config.acc_cfg[i], PJ_TRUE, &current_acc); 
     2409        status = pjsua_acc_add(&app_config.acc_cfg[i], PJ_TRUE, NULL); 
    24092410        if (status != PJ_SUCCESS) 
    24102411            goto on_error; 
Note: See TracChangeset for help on using the changeset viewer.