]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-374
authorBrian West <brian@freeswitch.org>
Fri, 26 Jun 2009 19:08:17 +0000 (19:08 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 26 Jun 2009 19:08:17 +0000 (19:08 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13982 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_console.c

index 58d364e9aeb979a1fb0fc9552bb6efeff60e4b71..e3cafa9ada2ecb59e255b682930f71a3a207474a 100644 (file)
@@ -432,6 +432,7 @@ char *prompt(EditLine * e)
 {
        if (*prompt_str == '\0') {
                gethostname(hostname, sizeof(hostname));
+               switch_core_set_variable("hostname", hostname);
                switch_snprintf(prompt_str, sizeof(prompt_str), "freeswitch@%s> ", hostname);
        }