From: Brian West Date: Fri, 26 Jun 2009 19:08:17 +0000 (+0000) Subject: FSCORE-374 X-Git-Tag: v1.0.4~319 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=292c7fd6b653f1e2cae6714eea532c08ed75faff;p=thirdparty%2Ffreeswitch.git FSCORE-374 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13982 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_console.c b/src/switch_console.c index 58d364e9ae..e3cafa9ada 100644 --- a/src/switch_console.c +++ b/src/switch_console.c @@ -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); }