diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-06-22 22:29:51 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-06-22 22:29:51 +0000 |
commit | 79e892ee8bced558ae329b4ba70b777427af212f (patch) | |
tree | 8b1a8a7c4f54fb37d17b7e18c152863240b4bbc4 /pjsip-apps | |
parent | 7b85925507853606e5b2a47fd47bd7c24f8a26ac (diff) |
Added dq command in pjsua to dump current call quality
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@544 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps')
-rw-r--r-- | pjsip-apps/src/pjsua/pjsua_app.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c index b2413adf..caf6f8b7 100644 --- a/pjsip-apps/src/pjsua/pjsua_app.c +++ b/pjsip-apps/src/pjsua/pjsua_app.c @@ -1277,7 +1277,7 @@ static void keystroke_help(void) puts("| [ Select previous dialog +--------------------------+-------------------+"); puts("| x Xfer call | Media Commands: | Status & Config: |"); puts("| # Send DTMF string | | |"); - puts("| | cl List ports | d Dump status |"); + puts("| dq Dump curr. call quality | cl List ports | d Dump status |"); puts("| | cc Connect port | dd Dump detailed |"); puts("| | cd Disconnect port | dc Dump config |"); puts("| | | f Save config |"); @@ -1975,6 +1975,18 @@ void console_app_main(const pj_str_t *uri_to_call) PJ_LOG(3,(THIS_FILE, "Dumping configuration (%d bytes):\n%s\n", len, settings)); + + } else if (menuin[1] == 'q') { + + if (current_call != PJSUA_INVALID_ID) { + char buf[1024]; + pjsua_call_dump(current_call, PJ_TRUE, buf, + sizeof(buf), " "); + PJ_LOG(3,(THIS_FILE, "\n%s", buf)); + } else { + PJ_LOG(3,(THIS_FILE, "No current call")); + } + } else { app_dump(menuin[1]=='d'); } |