diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-04-02 11:44:47 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-04-02 11:44:47 +0000 |
commit | f29bc375ee021410406820f65047a2ea1026148f (patch) | |
tree | d3dd31df457a67acf17669200354e9a57abcfb0d /pjsip-apps/src/pjsua | |
parent | 1d1908a032b3d078210ca41d3d1c17d1bf90cfdd (diff) |
Ticket #205: merged proxy functionalities from stable to trunk
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1127 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/pjsua')
-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 53b96415..ab72f847 100644 --- a/pjsip-apps/src/pjsua/pjsua_app.c +++ b/pjsip-apps/src/pjsua/pjsua_app.c @@ -2056,7 +2056,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; @@ -2065,15 +2064,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) { |