[asterisk-commits] branch crichter/config-update - r7835
/team/crichter/config-update/channels/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Jan 6 03:05:18 CST 2006
Author: crichter
Date: Fri Jan 6 03:05:15 2006
New Revision: 7835
URL: http://svn.digium.com/view/asterisk?rev=7835&view=rev
Log:
fixed some minor tweaks
Modified:
team/crichter/config-update/channels/chan_misdn.c
team/crichter/config-update/channels/chan_misdn_config.c
Modified: team/crichter/config-update/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/team/crichter/config-update/channels/chan_misdn.c?rev=7835&r1=7834&r2=7835&view=diff
==============================================================================
--- team/crichter/config-update/channels/chan_misdn.c (original)
+++ team/crichter/config-update/channels/chan_misdn.c Fri Jan 6 03:05:15 2006
@@ -1125,6 +1125,7 @@
}
misdn_cfg_get( bc->port, MISDN_CFG_CONTEXT, ch->context, sizeof(ch->context));
+
strncpy(ast->context,ch->context,sizeof(ast->context)-1);
{
Modified: team/crichter/config-update/channels/chan_misdn_config.c
URL: http://svn.digium.com/view/asterisk/team/crichter/config-update/channels/chan_misdn_config.c?rev=7835&r1=7834&r2=7835&view=diff
==============================================================================
--- team/crichter/config-update/channels/chan_misdn_config.c (original)
+++ team/crichter/config-update/channels/chan_misdn_config.c Fri Jan 6 03:05:15 2006
@@ -279,8 +279,6 @@
} else if (port_cfg[0][place].str) {
if (!memccpy(buf, port_cfg[0][place].str, 0, bufsize))
memset(buf, 0, 1);
- else
- memset(buf, 0, 1);
}
break;
default:
@@ -346,7 +344,7 @@
misdn_cfg_lock();
for (i = 1; i <= max_ports; i++) {
- if (port_cfg[i]) {
+ if (port_cfg[i] && port_cfg[i][map[MISDN_CFG_GROUPNAME]].str ) {
if (!strcasecmp(port_cfg[i][map[MISDN_CFG_GROUPNAME]].str, group))
method = (port_cfg[i][map[MISDN_CFG_METHOD]].str ?
port_cfg[i][map[MISDN_CFG_METHOD]].str : port_cfg[0][map[MISDN_CFG_METHOD]].str);
More information about the asterisk-commits
mailing list