diff options
author | Benny Prijono <bennylp@teluu.com> | 2013-03-13 04:47:19 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2013-03-13 04:47:19 +0000 |
commit | 041b868c2e4109432c177a801ed1a9366bfb7c6b (patch) | |
tree | 606d31062b30dbe411782556af87742d58818b7a | |
parent | a917bcbd271fb4a0751793317f79b17a0ae8966d (diff) |
Fixed #1642: Media transport may not be cleaned up if call is hung up quickly
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4439 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip-apps/src/pjsua/pjsua_app.c | 3 | ||||
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_call.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c index be8a96f0..58f6fa89 100644 --- a/pjsip-apps/src/pjsua/pjsua_app.c +++ b/pjsip-apps/src/pjsua/pjsua_app.c @@ -4489,7 +4489,8 @@ void console_app_main(const pj_str_t *uri_to_call) pjsua_msg_data_init(&msg_data); TEST_MULTIPART(&msg_data); - pjsua_call_make_call( current_acc, &tmp, &call_opt, NULL, &msg_data, NULL); + pjsua_call_make_call( current_acc, &tmp, &call_opt, NULL, + &msg_data, ¤t_call); break; case 'M': diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c index f0d75f5b..7f95707a 100644 --- a/pjsip/src/pjsua-lib/pjsua_call.c +++ b/pjsip/src/pjsua-lib/pjsua_call.c @@ -530,8 +530,8 @@ on_error: } if (call_id != -1) { - reset_call(call_id); pjsua_media_channel_deinit(call_id); + reset_call(call_id); } call->med_ch_cb = NULL; @@ -790,8 +790,8 @@ on_error: } if (call_id != -1) { - reset_call(call_id); pjsua_media_channel_deinit(call_id); + reset_call(call_id); } if (tmp_pool) |