mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Merged revisions 58849-58850,59062-59063 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r58849 | crichter | 2007-03-13 12:58:16 +0100 (Di, 13 Mär 2007) | 1 line added method standard_dec for dialing out on groups, to avoid conflicts, which caused issues with some ISDN providers ........ r58850 | crichter | 2007-03-13 13:58:32 +0100 (Di, 13 Mär 2007) | 1 line fixed the crypt_keys stuff ........ r59062 | crichter | 2007-03-20 10:18:06 +0100 (Di, 20 Mär 2007) | 1 line avoid sending a disconnect when we already received one. ........ r59063 | crichter | 2007-03-20 10:23:22 +0100 (Di, 20 Mär 2007) | 1 line modified a loglevel ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -651,9 +651,12 @@ int misdn_cfg_is_port_valid (int port)
|
||||
int misdn_cfg_is_group_method (char *group, enum misdn_cfg_method meth)
|
||||
{
|
||||
int i, re = 0;
|
||||
char *method = NULL;
|
||||
char *method ;
|
||||
|
||||
misdn_cfg_lock();
|
||||
|
||||
method = port_cfg[0][map[MISDN_CFG_METHOD]].str;
|
||||
|
||||
for (i = 1; i <= max_ports; i++) {
|
||||
if (port_cfg[i] && port_cfg[i][map[MISDN_CFG_GROUPNAME]].str) {
|
||||
if (!strcasecmp(port_cfg[i][map[MISDN_CFG_GROUPNAME]].str, group))
|
||||
@@ -661,12 +664,15 @@ int misdn_cfg_is_group_method (char *group, enum misdn_cfg_method meth)
|
||||
port_cfg[i][map[MISDN_CFG_METHOD]].str : port_cfg[0][map[MISDN_CFG_METHOD]].str);
|
||||
}
|
||||
}
|
||||
|
||||
if (method) {
|
||||
switch (meth) {
|
||||
case METHOD_STANDARD: re = !strcasecmp(method, "standard");
|
||||
break;
|
||||
case METHOD_ROUND_ROBIN: re = !strcasecmp(method, "round_robin");
|
||||
break;
|
||||
case METHOD_STANDARD_DEC: re = !strcasecmp(method, "standard_dec");
|
||||
break;
|
||||
}
|
||||
}
|
||||
misdn_cfg_unlock();
|
||||
|
Reference in New Issue
Block a user