diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-04-02 11:22:49 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-04-02 11:22:49 +0000 |
commit | e452e50a2e87683f5a28e08263aeda9fbc567817 (patch) | |
tree | cedc96a6e81e0594805f8e856f70dae10b2844b9 /pjsip-apps | |
parent | c9af503006232e2232e3173d1ec4f62b80cc213e (diff) |
Added PJSUA API to create request using account config
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/pjproject-0.5-stable@1122 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps')
-rw-r--r-- | pjsip-apps/src/pjsua/pjsua_app.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c index 50efe7fb..8b93f8ca 100644 --- a/pjsip-apps/src/pjsua/pjsua_app.c +++ b/pjsip-apps/src/pjsua/pjsua_app.c @@ -2081,7 +2081,6 @@ static void send_request(char *cstr_method, const pj_str_t *dst_uri) pj_str_t str_method; pjsip_method method; pjsip_tx_data *tdata; - pjsua_acc_info acc_info; pjsip_endpoint *endpt; pj_status_t status; @@ -2090,15 +2089,7 @@ static void send_request(char *cstr_method, const pj_str_t *dst_uri) str_method = pj_str(cstr_method); pjsip_method_init_np(&method, &str_method); - pjsua_acc_get_info(current_acc, &acc_info); - - status = pjsip_endpt_create_request(endpt, &method, dst_uri, - &acc_info.acc_uri, dst_uri, - NULL, NULL, -1, NULL, &tdata); - if (status != PJ_SUCCESS) { - pjsua_perror(THIS_FILE, "Unable to create request", status); - return; - } + status = pjsua_acc_create_request(current_acc, &method, dst_uri, &tdata); status = pjsip_endpt_send_request(endpt, tdata, -1, NULL, NULL); if (status != PJ_SUCCESS) { |