mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 10:28:32 +00:00
add a couple of variables to clarify some code (issue #6700)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12924 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5948,6 +5948,8 @@ static int load_config(void)
|
||||
char *fmt;
|
||||
char *astemail;
|
||||
char *astmailcmd = SENDMAIL;
|
||||
char *astforcename;
|
||||
char *astforcegreet;
|
||||
char *s,*q,*stringp;
|
||||
char *dialoutcxt = NULL;
|
||||
char *callbackcxt = NULL;
|
||||
@@ -6119,14 +6121,14 @@ static int load_config(void)
|
||||
}
|
||||
|
||||
/* Force new user to record name ? */
|
||||
if (!(astattach = ast_variable_retrieve(cfg, "general", "forcename")))
|
||||
astattach = "no";
|
||||
ast_set2_flag((&globalflags), ast_true(astattach), VM_FORCENAME);
|
||||
if (!(astforcename = ast_variable_retrieve(cfg, "general", "forcename")))
|
||||
astforcename = "no";
|
||||
ast_set2_flag((&globalflags), ast_true(astforcename), VM_FORCENAME);
|
||||
|
||||
/* Force new user to record greetings ? */
|
||||
if (!(astattach = ast_variable_retrieve(cfg, "general", "forcegreetings")))
|
||||
astattach = "no";
|
||||
ast_set2_flag((&globalflags), ast_true(astattach), VM_FORCEGREET);
|
||||
if (!(astforcegreet = ast_variable_retrieve(cfg, "general", "forcegreetings")))
|
||||
astforcegreet = "no";
|
||||
ast_set2_flag((&globalflags), ast_true(astforcegreet), VM_FORCEGREET);
|
||||
|
||||
if ((s = ast_variable_retrieve(cfg, "general", "cidinternalcontexts"))){
|
||||
ast_log(LOG_DEBUG,"VM_CID Internal context string: %s\n",s);
|
||||
|
||||
Reference in New Issue
Block a user