dect
/
asterisk
Archived
13
0
Fork 0

added some minor changes from bug 6046 thanks ppyy

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8049 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
mogorman 2006-01-13 06:43:27 +00:00
parent f931a23477
commit d52d4a92ea
1 changed files with 2 additions and 2 deletions

View File

@ -1047,6 +1047,8 @@ static int read_agent_config(void)
persistent_agents = ast_true(general_val);
if (ast_false(ast_variable_retrieve(cfg, "general", "multiplelogin") ) )
multiplelogin=0;
if (ast_true(ast_variable_retrieve(cfg, "general", "multiplelogin") ) )
multiplelogin=1;
/* Read in the [agents] section */
v = ast_variable_browse(cfg, "agents");
@ -1266,8 +1268,6 @@ static int allow_multiple_login(char *chan,char *context)
return 1;
if(!chan)
return 0;
if(!context)
context="default";
snprintf(loginchan, sizeof(loginchan), "%s@%s", chan, !ast_strlen_zero(context) ? context : "default");