diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-06-26 22:20:11 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-06-26 22:20:11 +0000 |
commit | 3295efbbcce1ce10d02824e2b1dad5d688f2ea54 (patch) | |
tree | e13219a06d57b8b169d9fd553a0f334fa038fd13 /pjsip-apps/src/pjsua/pjsua_app.c | |
parent | aac5231515ffded8354292ba0940ca02fa03ff5d (diff) |
echo command in pjsua can be used to print any text, and this is used to better synchronize stdout in Python test apps
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2069 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/pjsua/pjsua_app.c')
-rw-r--r-- | pjsip-apps/src/pjsua/pjsua_app.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c index 1a8f50b1..264036ec 100644 --- a/pjsip-apps/src/pjsua/pjsua_app.c +++ b/pjsip-apps/src/pjsua/pjsua_app.c @@ -2492,7 +2492,7 @@ static void keystroke_help(void) puts("| | V Adjust audio Volume | f Save config |"); puts("| S Send arbitrary REQUEST | Cp Codec priorities | f Save config |"); puts("+------------------------------+--------------------------+-------------------+"); - puts("| q QUIT sleep MS echo [0|1] n: detect NAT type |"); + puts("| q QUIT sleep MS echo [0|1|txt] n: detect NAT type |"); puts("+=============================================================================+"); i = pjsua_call_get_count(); @@ -3544,7 +3544,7 @@ void console_app_main(const pj_str_t *uri_to_call) break; } - cmd_echo = pj_strtoul(&tmp); + cmd_echo = *tmp.ptr != '0' || tmp.slen!=1; } break; |