diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-03-21 13:46:08 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-03-21 13:46:08 +0000 |
commit | 34dadcac285d6637b69f9415690e6f7b44c30f01 (patch) | |
tree | 8ccffb431a5e3d2042ab9083a8ba64a3f960cd32 /pjsip-apps/src/pjsua | |
parent | b8bdcbeb3a8260a6a55847d45c7e4b5609634477 (diff) |
Enlarge the buffer for printing call media statistic in pjsua (sometimes the RTT line is cut)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1886 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/pjsua')
-rw-r--r-- | pjsip-apps/src/pjsua/pjsua_app.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c index 880f98d8..1041fae0 100644 --- a/pjsip-apps/src/pjsua/pjsua_app.c +++ b/pjsip-apps/src/pjsua/pjsua_app.c @@ -93,6 +93,8 @@ static struct app_config static pjsua_call_id current_call = PJSUA_INVALID_ID; static pj_str_t uri_arg; +static char some_buf[2048]; + #ifdef STEREO_DEMO static void stereo_demo(); #endif @@ -1671,12 +1673,11 @@ static void on_call_state(pjsua_call_id call_id, pjsip_event *e) /* Dump media state upon disconnected */ if (1) { - char buf[1024]; - pjsua_call_dump(call_id, PJ_TRUE, buf, - sizeof(buf), " "); + pjsua_call_dump(call_id, PJ_TRUE, some_buf, + sizeof(some_buf), " "); PJ_LOG(5,(THIS_FILE, "Call %d disconnected, dumping media stats\n%s", - call_id, buf)); + call_id, some_buf)); } } else { @@ -3353,10 +3354,9 @@ void console_app_main(const pj_str_t *uri_to_call) } 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)); + pjsua_call_dump(current_call, PJ_TRUE, some_buf, + sizeof(some_buf), " "); + PJ_LOG(3,(THIS_FILE, "\n%s", some_buf)); } else { PJ_LOG(3,(THIS_FILE, "No current call")); } |