- Use systemname for realm in sip, if we have no configuration for realm

- Optionally send systemname in manager (cool when you have a manager proxy)
- Use systemname in CLI prompt


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Olle Johansson
2006-05-11 13:54:00 +00:00
parent 76347c8d31
commit 5237a0e06d
6 changed files with 20 additions and 2 deletions

View File

@@ -1644,6 +1644,9 @@ static char *cli_prompt(EditLine *el)
}
break;
#endif
case 's': /* Asterisk system name (from asterisk.conf) */
strncat(p, ast_config_AST_SYSTEM_NAME, sizeof(prompt) - strlen(prompt) - 1);
break;
case 't': /* time */
memset(&tm, 0, sizeof(tm));
time(&ts);