[Freeswitch-svn] [commit] r10964 - freeswitch/trunk/libs/esl
FreeSWITCH SVN
mikej at freeswitch.org
Fri Dec 26 13:20:59 PST 2008
Author: mikej
Date: Fri Dec 26 16:20:58 2008
New Revision: 10964
Log:
better output
Modified:
freeswitch/trunk/libs/esl/fs_cli.c
Modified: freeswitch/trunk/libs/esl/fs_cli.c
==============================================================================
--- freeswitch/trunk/libs/esl/fs_cli.c (original)
+++ freeswitch/trunk/libs/esl/fs_cli.c Fri Dec 26 16:20:58 2008
@@ -391,7 +391,11 @@
esl_log(ESL_LOG_INFO, "Using profile %s [%s]\n", profile->name, profile->host);
if (argv_host) {
- snprintf(prompt_str, sizeof(prompt_str), "freeswitch@%s@%s> ", profile->host, profile->name);
+ if (argv_port && profile->port != 8021) {
+ snprintf(prompt_str, sizeof(prompt_str), "freeswitch@%s:%u@%s> ", profile->host, profile->port, profile->name);
+ } else {
+ snprintf(prompt_str, sizeof(prompt_str), "freeswitch@%s@%s> ", profile->host, profile->name);
+ }
} else {
snprintf(prompt_str, sizeof(prompt_str), "freeswitch@%s> ", profile->name);
}
More information about the Freeswitch-svn
mailing list