Ignore:
Timestamp:
Apr 2, 2007 11:22:49 AM (17 years ago)
Author:
bennylp
Message:

Added PJSUA API to create request using account config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjsip-apps/src/pjsua/pjsua_app.c

    r1043 r1122  
    20822082    pjsip_method method; 
    20832083    pjsip_tx_data *tdata; 
    2084     pjsua_acc_info acc_info; 
    20852084    pjsip_endpoint *endpt; 
    20862085    pj_status_t status; 
     
    20912090    pjsip_method_init_np(&method, &str_method); 
    20922091 
    2093     pjsua_acc_get_info(current_acc, &acc_info); 
    2094  
    2095     status = pjsip_endpt_create_request(endpt, &method, dst_uri,  
    2096                                         &acc_info.acc_uri, dst_uri, 
    2097                                         NULL, NULL, -1, NULL, &tdata); 
    2098     if (status != PJ_SUCCESS) { 
    2099         pjsua_perror(THIS_FILE, "Unable to create request", status); 
    2100         return; 
    2101     } 
     2092    status = pjsua_acc_create_request(current_acc, &method, dst_uri, &tdata); 
    21022093 
    21032094    status = pjsip_endpt_send_request(endpt, tdata, -1, NULL, NULL); 
Note: See TracChangeset for help on using the changeset viewer.