summaryrefslogtreecommitdiff
path: root/pjsip-apps
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-09-24 00:07:11 +0000
committerBenny Prijono <bennylp@teluu.com>2006-09-24 00:07:11 +0000
commite3f862fca94af0cb4812796055b18d2ba107b613 (patch)
tree1a49b7381865830cebba5a2b62a905d60c7f0483 /pjsip-apps
parent6ff54be10fd9c0ceff14e10f83a1d1af82ede83f (diff)
Fixed several bugs in PJSUA-API:
- in some condition, when outgoing call fails, call count incorrectly decremented to -1 - introduce account priority in pjsua_acc_config, and improve the account searching for incoming calls - pjsua will hangup call after sending transfer/REFER request. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@737 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps')
-rw-r--r--pjsip-apps/src/pjsua/pjsua_app.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c
index be4cc418..1b354915 100644
--- a/pjsip-apps/src/pjsua/pjsua_app.c
+++ b/pjsip-apps/src/pjsua/pjsua_app.c
@@ -2138,6 +2138,9 @@ void console_app_main(const pj_str_t *uri_to_call)
tmp = pj_str(result.uri_result);
pjsua_call_xfer( current_call, &tmp, &msg_data);
}
+
+ /* Hangup call regardless of xfer status */
+ pjsua_call_hangup(current_call, PJSIP_SC_GONE, NULL, NULL);
}
break;