[asterisk-commits] kpfleming: branch 1.6.0 r134087 - in /branches/1.6.0: ./ apps/ build_tools/ c...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 28 11:49:19 CDT 2008
Author: kpfleming
Date: Mon Jul 28 11:49:18 2008
New Revision: 134087
URL: http://svn.digium.com/view/asterisk?view=rev&rev=134087
Log:
Merged revisions 134086 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r134086 | kpfleming | 2008-07-28 11:42:00 -0500 (Mon, 28 Jul 2008) | 3 lines
remove remaining Zaptel references in various places
........
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/apps/app_dahdibarge.c
branches/1.6.0/apps/app_parkandannounce.c
branches/1.6.0/build_tools/cflags.xml
branches/1.6.0/channels/chan_dahdi.c
branches/1.6.0/configs/chan_dahdi.conf.sample
branches/1.6.0/contrib/scripts/autosupport
branches/1.6.0/doc/osp.txt
branches/1.6.0/doc/ss7.txt
branches/1.6.0/main/channel.c
branches/1.6.0/main/features.c
branches/1.6.0/main/file.c
branches/1.6.0/main/loader.c
branches/1.6.0/pbx/pbx_config.c
branches/1.6.0/sample.call
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/apps/app_dahdibarge.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/apps/app_dahdibarge.c?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/apps/app_dahdibarge.c (original)
+++ branches/1.6.0/apps/app_dahdibarge.c Mon Jul 28 11:49:18 2008
@@ -54,7 +54,6 @@
#include "asterisk/utils.h"
static char *app = "DAHDIBarge";
-static char *deprecated_app = "ZapBarge";
static char *synopsis = "Barge in (monitor) DAHDI channel";
@@ -288,12 +287,6 @@
return res;
}
-static int conf_exec_warn(struct ast_channel *chan, void *data)
-{
- ast_log(LOG_WARNING, "Use of the command %s is deprecated, please use %s instead.\n", deprecated_app, app);
- return conf_exec(chan, data);
-}
-
static int unload_module(void)
{
return ast_unregister_application(app);
@@ -301,7 +294,6 @@
static int load_module(void)
{
- ast_register_application(deprecated_app, conf_exec_warn, synopsis, descrip);
return ((ast_register_application(app, conf_exec, synopsis, descrip)) ? AST_MODULE_LOAD_FAILURE : AST_MODULE_LOAD_SUCCESS);
}
Modified: branches/1.6.0/apps/app_parkandannounce.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/apps/app_parkandannounce.c?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/apps/app_parkandannounce.c (original)
+++ branches/1.6.0/apps/app_parkandannounce.c Mon Jul 28 11:49:18 2008
@@ -95,7 +95,7 @@
timeout = atoi(args.timeout) * 1000;
if (ast_strlen_zero(args.dial)) {
- ast_log(LOG_WARNING, "PARK: A dial resource must be specified i.e: Console/dsp or Zap/g1/5551212\n");
+ ast_log(LOG_WARNING, "PARK: A dial resource must be specified i.e: Console/dsp or DAHDI/g1/5551212\n");
return -1;
}
Modified: branches/1.6.0/build_tools/cflags.xml
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/build_tools/cflags.xml?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/build_tools/cflags.xml (original)
+++ branches/1.6.0/build_tools/cflags.xml Mon Jul 28 11:49:18 2008
@@ -14,7 +14,7 @@
</member>
<member name="LOW_MEMORY" displayname="Optimize for Low Memory Usage">
</member>
- <member name="LOTS_OF_SPANS" displayname="More than 32 Zaptel spans">
+ <member name="LOTS_OF_SPANS" displayname="More than 32 DAHDI spans">
</member>
<member name="RADIO_RELAX" displayname="Relax DTMF for Radio Applications">
</member>
Modified: branches/1.6.0/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/channels/chan_dahdi.c?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/channels/chan_dahdi.c (original)
+++ branches/1.6.0/channels/chan_dahdi.c Mon Jul 28 11:49:18 2008
@@ -1676,15 +1676,9 @@
int res;
if (p->echocanon) {
-#if defined(HAVE_ZAPTEL_ECHOCANPARAMS)
struct dahdi_echocanparams ecp = { .tap_length = 0 };
res = ioctl(p->subs[SUB_REAL].zfd, DAHDI_ECHOCANCEL_PARAMS, &ecp);
-#else
- int x = 0;
-
- res = ioctl(p->subs[SUB_REAL].zfd, DAHDI_ECHOCANCEL, &x);
-#endif
if (res)
ast_log(LOG_WARNING, "Unable to disable echo cancellation on channel %d: %s\n", p->channel, strerror(errno));
@@ -4158,9 +4152,7 @@
{
int res;
DAHDI_SPANINFO zi;
-#if defined(HAVE_ZAPTEL_CHANALARMS)
struct dahdi_params params;
-#endif
memset(&zi, 0, sizeof(zi));
zi.spanno = p->span;
@@ -4173,11 +4165,9 @@
return 0;
}
-#if defined(HAVE_ZAPTEL_CHANALARMS)
/* No alarms on the span. Check for channel alarms. */
if ((res = ioctl(p->subs[SUB_REAL].zfd, DAHDI_GET_PARAMS, ¶ms)) >= 0)
return params.chan_alarms;
-#endif
ast_log(LOG_WARNING, "Unable to determine alarm on channel %d\n", p->channel);
@@ -11740,24 +11730,6 @@
return ( RESULT_SUCCESS == ret ) ? CLI_SUCCESS : CLI_FAILURE;
}
-static char *handle_cli_zap_destroy_channel_deprecated(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
- switch (cmd) {
- case CLI_INIT:
- e->command = "zap destroy channel";
- e->usage =
- "Usage: zap destroy channel <chan num>\n"
- " DON'T USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING. Immediately removes a given channel, whether it is in use or not\n";
- return NULL;
- case CLI_GENERATE:
- return NULL;
- case CLI_HANDLER:
- return dahdi_destroy_channel(e, cmd, a);
- }
-
- return CLI_FAILURE;
-}
-
static int setup_dahdi(int reload);
static int dahdi_restart(void)
{
@@ -11796,27 +11768,6 @@
if (dahdi_restart() != 0)
return CLI_FAILURE;
return CLI_SUCCESS;
-}
-
-static char *handle_cli_zap_restart_cmd_deprecated(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
- switch (cmd) {
- case CLI_INIT:
- e->command = "zap restart";
- e->usage =
- "Usage: zap restart\n"
- " Restarts the zap channels: destroys them all and then\n"
- " re-reads them from chan_dahdi.conf.\n"
- " Note that this will STOP any running CALL on zap channels.\n"
- "";
- return NULL;
- case CLI_GENERATE:
- return NULL;
- case CLI_HANDLER:
- return dahdi_restart_cmd(e, cmd, a);
- }
-
- return CLI_FAILURE;
}
static int action_dahdirestart(struct mansession *s, const struct message *m)
@@ -11953,25 +11904,6 @@
#undef FORMAT2
}
-static char *handle_cli_zap_show_channels_deprecated(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
- switch (cmd) {
- case CLI_INIT:
- e->command = "zap show channels [trunkgroup|group|context]";
- e->usage =
- "Usage: zap show channels [ trunkgroup <trunkgroup> | group <group> | context <context> ]\n"
- " Shows a list of available channels with optional filtering\n"
- " <group> must be a number between 0 and 63\n";
- return NULL;
- case CLI_GENERATE:
- return NULL;
- case CLI_HANDLER:
- return dahdi_show_channels(e, cmd, a);
- }
-
- return CLI_FAILURE;
-}
-
static char *dahdi_show_channel(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
int channel;
@@ -12148,24 +12080,6 @@
return CLI_FAILURE;
}
-static char *handle_cli_zap_show_channel_deprecated(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
- switch (cmd) {
- case CLI_INIT:
- e->command = "zap show channel";
- e->usage =
- "Usage: zap show channel <chan num>\n"
- " Detailed information about a given channel\n";
- return NULL;
- case CLI_GENERATE:
- return NULL;
- case CLI_HANDLER:
- return dahdi_show_channel(e, cmd, a);
- }
-
- return CLI_FAILURE;
-}
-
static char *handle_dahdi_show_cadences(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
int i, j;
@@ -12200,24 +12114,6 @@
ast_cli(a->fd,"%s\n",output);
}
return CLI_SUCCESS;
-}
-
-static char *handle_cli_zap_show_cadences_deprecated(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
- switch(cmd) {
- case CLI_INIT:
- e->command = "zap show cadences";
- e->usage =
- "Usage: zap show cadences\n"
- " Shows all cadences currently defined\n";
- return NULL;
- case CLI_GENERATE:
- return NULL;
- case CLI_HANDLER:
- return handle_dahdi_show_cadences(e, cmd, a);
- }
-
- return CLI_FAILURE;
}
/* Based on irqmiss.c */
@@ -12314,24 +12210,6 @@
#undef FORMAT2
}
-static char *handle_cli_zap_show_status_deprecated(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
- switch (cmd) {
- case CLI_INIT:
- e->command = "zap show status";
- e->usage =
- "Usage: zap show status\n"
- " Shows a list of zap cards with status\n";
- return NULL;
- case CLI_GENERATE:
- return NULL;
- case CLI_HANDLER:
- return dahdi_show_status(e, cmd, a);
- }
-
- return CLI_FAILURE;
-}
-
static char *dahdi_show_version(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
int pseudo_fd = -1;
@@ -12363,24 +12241,6 @@
close(pseudo_fd);
return CLI_SUCCESS;
-}
-
-static char *handle_cli_zap_show_version_deprecated(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
- switch (cmd) {
- case CLI_INIT:
- e->command = "zap show version";
- e->usage =
- "Usage: zap show version\n"
- " Shows the zap version in use\n";
- return NULL;
- case CLI_GENERATE:
- return NULL;
- case CLI_HANDLER:
- return dahdi_show_version(e, cmd, a);
- }
-
- return CLI_FAILURE;
}
static char *dahdi_set_hwgain(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
@@ -12452,29 +12312,6 @@
}
-static char *handle_cli_zap_set_hwgain_deprecated(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
- switch (cmd) {
- case CLI_INIT:
- e->command = "zap set hwgain";
- e->usage =
- "Usage: zap set hwgain <rx|tx> <chan#> <gain>\n"
- " Sets the hardware gain on a a given channel, overriding the\n"
- " value provided at module loadtime, whether the channel is in\n"
- " use or not. Changes take effect immediately.\n"
- " <rx|tx> which direction do you want to change (relative to our module)\n"
- " <chan num> is the channel number relative to the device\n"
- " <gain> is the gain in dB (e.g. -3.5 for -3.5dB)\n";
- return NULL;
- case CLI_GENERATE:
- return NULL;
- case CLI_HANDLER:
- return dahdi_set_hwgain(e, cmd, a);
- }
-
- return CLI_FAILURE;
-}
-
static char *dahdi_set_swgain(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
int channel;
@@ -12549,29 +12386,6 @@
}
-static char *handle_cli_zap_set_swgain_deprecated(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
- switch (cmd) {
- case CLI_INIT:
- e->command = "zap set swgain";
- e->usage =
- "Usage: zap set swgain <rx|tx> <chan#> <gain>\n"
- " Sets the software gain on a a given channel, overriding the\n"
- " value provided at module loadtime, whether the channel is in\n"
- " use or not. Changes take effect immediately.\n"
- " <rx|tx> which direction do you want to change (relative to our module)\n"
- " <chan num> is the channel number relative to the device\n"
- " <gain> is the gain in dB (e.g. -3.5 for -3.5dB)\n";
- return NULL;
- case CLI_GENERATE:
- return NULL;
- case CLI_HANDLER:
- return dahdi_set_swgain(e, cmd, a);
- }
-
- return CLI_FAILURE;
-}
-
static char *dahdi_set_dnd(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
int channel;
@@ -12629,50 +12443,17 @@
return CLI_SUCCESS;
}
-static char *handle_cli_zap_set_dnd_deprecated(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
- switch (cmd) {
- case CLI_INIT:
- e->command = "zap set dnd";
- e->usage =
- "Usage: zap set dnd <chan#> <on|off>\n"
- " Sets/resets DND (Do Not Disturb) mode on a channel.\n"
- " Changes take effect immediately.\n"
- " <chan num> is the channel number\n"
- " <on|off> Enable or disable DND mode?\n"
- ;
- return NULL;
- case CLI_GENERATE:
- return NULL;
- case CLI_HANDLER:
- return dahdi_set_dnd(e, cmd, a);
- }
-
- return CLI_FAILURE;
-}
-
-static struct ast_cli_entry cli_zap_show_cadences_deprecated = AST_CLI_DEFINE(handle_cli_zap_show_cadences_deprecated, "List cadences");
-static struct ast_cli_entry cli_zap_show_channels_deprecated = AST_CLI_DEFINE(handle_cli_zap_show_channels_deprecated, "Show active channels");
-static struct ast_cli_entry cli_zap_show_channel_deprecated = AST_CLI_DEFINE(handle_cli_zap_show_channel_deprecated, "Show information on a channel");
-static struct ast_cli_entry cli_zap_destroy_channel_deprecated = AST_CLI_DEFINE(handle_cli_zap_destroy_channel_deprecated, "Destroy a channel");
-static struct ast_cli_entry cli_zap_restart_cmd_deprecated = AST_CLI_DEFINE(handle_cli_zap_restart_cmd_deprecated, "Fully restart channels");
-static struct ast_cli_entry cli_zap_show_status_deprecated = AST_CLI_DEFINE(handle_cli_zap_show_status_deprecated, "Show all cards status");
-static struct ast_cli_entry cli_zap_show_version_deprecated = AST_CLI_DEFINE(handle_cli_zap_show_version_deprecated, "Show DAHDI version in use");
-static struct ast_cli_entry cli_zap_set_hwgain_deprecated = AST_CLI_DEFINE(handle_cli_zap_set_hwgain_deprecated, "Set hardware gain on a channel");
-static struct ast_cli_entry cli_zap_set_swgain_deprecated = AST_CLI_DEFINE(handle_cli_zap_set_swgain_deprecated, "Set software gain on a channel");
-static struct ast_cli_entry cli_zap_set_dnd_deprecated = AST_CLI_DEFINE(handle_cli_zap_set_dnd_deprecated, "Set software gain on a channel");
-
static struct ast_cli_entry dahdi_cli[] = {
- AST_CLI_DEFINE(handle_dahdi_show_cadences, "List cadences", .deprecate_cmd = &cli_zap_show_cadences_deprecated),
- AST_CLI_DEFINE(dahdi_show_channels, "Show active DAHDI channels", .deprecate_cmd = &cli_zap_show_channels_deprecated),
- AST_CLI_DEFINE(dahdi_show_channel, "Show information on a channel", .deprecate_cmd = &cli_zap_show_channel_deprecated),
- AST_CLI_DEFINE(dahdi_destroy_channel, "Destroy a channel", .deprecate_cmd = &cli_zap_destroy_channel_deprecated),
- AST_CLI_DEFINE(dahdi_restart_cmd, "Fully restart DAHDI channels", .deprecate_cmd = &cli_zap_restart_cmd_deprecated),
- AST_CLI_DEFINE(dahdi_show_status, "Show all DAHDI cards status", .deprecate_cmd = &cli_zap_show_status_deprecated),
- AST_CLI_DEFINE(dahdi_show_version, "Show the DAHDI version in use", .deprecate_cmd = &cli_zap_show_version_deprecated),
- AST_CLI_DEFINE(dahdi_set_hwgain, "Set hardware gain on a channel", .deprecate_cmd = &cli_zap_set_hwgain_deprecated),
- AST_CLI_DEFINE(dahdi_set_swgain, "Set software gain on a channel", .deprecate_cmd = &cli_zap_set_swgain_deprecated),
- AST_CLI_DEFINE(dahdi_set_dnd, "Set software gain on a channel", .deprecate_cmd = &cli_zap_set_dnd_deprecated),
+ AST_CLI_DEFINE(handle_dahdi_show_cadences, "List cadences"),
+ AST_CLI_DEFINE(dahdi_show_channels, "Show active DAHDI channels"),
+ AST_CLI_DEFINE(dahdi_show_channel, "Show information on a channel"),
+ AST_CLI_DEFINE(dahdi_destroy_channel, "Destroy a channel"),
+ AST_CLI_DEFINE(dahdi_restart_cmd, "Fully restart DAHDI channels"),
+ AST_CLI_DEFINE(dahdi_show_status, "Show all DAHDI cards status"),
+ AST_CLI_DEFINE(dahdi_show_version, "Show the DAHDI version in use"),
+ AST_CLI_DEFINE(dahdi_set_hwgain, "Set hardware gain on a channel"),
+ AST_CLI_DEFINE(dahdi_set_swgain, "Set software gain on a channel"),
+ AST_CLI_DEFINE(dahdi_set_dnd, "Set software gain on a channel"),
};
#define TRANSFER 0
Modified: branches/1.6.0/configs/chan_dahdi.conf.sample
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/configs/chan_dahdi.conf.sample?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/configs/chan_dahdi.conf.sample (original)
+++ branches/1.6.0/configs/chan_dahdi.conf.sample Mon Jul 28 11:49:18 2008
@@ -464,13 +464,12 @@
;
echocancel=yes
;
-; As of Zaptel 1.4.8, some DAHDI echo cancellers (software and hardware)
-; support adjustable parameters; these parameters can be supplied as
-; additional options to the 'echocancel' setting. Note that Asterisk
-; does not attempt to validate the parameters or their values, so if you
-; supply an invalid parameter you will not know the specific reason it
-; failed without checking the kernel message log for the error(s)
-; put there by DAHDI.
+; Some DAHDI echo cancellers (software and hardware) support adjustable
+; parameters; these parameters can be supplied as additional options to
+; the 'echocancel' setting. Note that Asterisk does not attempt to
+; validate the parameters or their values, so if you supply an invalid
+; parameter you will not know the specific reason it failed without
+; checking the kernel message log for the error(s) put there by DAHDI.
;
;echocancel=128,param1=32,param2=0,param3=14
;
Modified: branches/1.6.0/contrib/scripts/autosupport
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/contrib/scripts/autosupport?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/contrib/scripts/autosupport (original)
+++ branches/1.6.0/contrib/scripts/autosupport Mon Jul 28 11:49:18 2008
@@ -149,16 +149,15 @@
echo >> $OUTPUT;
echo >> $OUTPUT;
- #jpeeler: REVISIT
- echo "------------------" >> $OUTPUT;
- echo "ZAPTEL CONFIG" >> $OUTPUT;
- echo "------------------" >> $OUTPUT;
- grep -v '^#' /etc/dahdi.conf >> $OUTPUT;
- echo >> $OUTPUT;
- echo >> $OUTPUT;
-
- echo "------------------" >> $OUTPUT;
- echo "ZAPATA CONFIG" >> $OUTPUT;
+ echo "------------------" >> $OUTPUT;
+ echo "DAHDI CONFIG" >> $OUTPUT;
+ echo "------------------" >> $OUTPUT;
+ grep -v '^#' /etc/dahdi/system.conf >> $OUTPUT;
+ echo >> $OUTPUT;
+ echo >> $OUTPUT;
+
+ echo "------------------" >> $OUTPUT;
+ echo "CHAN_DAHDI CONFIG" >> $OUTPUT;
echo "------------------" >> $OUTPUT;
grep -v '^;' /etc/asterisk/chan_dahdi.conf >> $OUTPUT;
echo >> $OUTPUT;
Modified: branches/1.6.0/doc/osp.txt
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/doc/osp.txt?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/doc/osp.txt (original)
+++ branches/1.6.0/doc/osp.txt Mon Jul 28 11:49:18 2008
@@ -304,7 +304,7 @@
3.1.3 extensions.conf
OSP functions are implemented as dial plan functions in the extensions.conf file. To add OSP support to your Asterisk server, simply copy and paste the text box below to your extensions.conf file. These functions will enable your Asterisk server to support all OSP call scenarios. Configuration of your Asterisk server for OSP is now complete.
[globals]
-DIALOUT=Zap/1
+DIALOUT=DAHDI/1
[SrcGW] ; OSP Source Gateway
exten => _XXXX.,1,NoOp(OSPSrcGW)
Modified: branches/1.6.0/doc/ss7.txt
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/doc/ss7.txt?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/doc/ss7.txt (original)
+++ branches/1.6.0/doc/ss7.txt Mon Jul 28 11:49:18 2008
@@ -79,25 +79,25 @@
; Now we configure our Bearer channels (CICs)
-cicbeginswith = 1 ; Number to start counting the CICs from. So if Zap/1 to
- ; Zap/15 are CICs 1-15, you would set this to 1 before you
+cicbeginswith = 1 ; Number to start counting the CICs from. So if DAHDI/1 to
+ ; DAHDI/15 are CICs 1-15, you would set this to 1 before you
; declare channel=1-15
-channel=1-15 ; Use Zap/1-15 and assign them to CICs 1-15
+channel=1-15 ; Use DAHDI/1-15 and assign them to CICs 1-15
-cicbeginswith = 17 ; Now for Zap/17 to Zap/31, they are CICs 17-31 so we initialize
+cicbeginswith = 17 ; Now for DAHDI/17 to DAHDI/31, they are CICs 17-31 so we initialize
; cicbeginswith to 17 before we declare those channels
channel = 17-31 ; This assigns CICs 17-31 to channels 17-31
-sigchan = 16 ; This is where you declare which Zap channel is your signalling
- ; channel. In our case it is Zap/16. You can add redundant
+sigchan = 16 ; This is where you declare which DAHDI channel is your signalling
+ ; channel. In our case it is DAHDI/16. You can add redundant
; signalling channels by adding additional sigchan= lines.
; If we want an alternate redundant signalling channel add this
sigchan = 48 ; This would put two signalling channels in our linkset, one at
- ; Zap/16 and one at Zap/48 which both would be used to send/receive
+ ; DAHDI/16 and one at DAHDI/48 which both would be used to send/receive
; ISUP traffic.
; End of chan_dahdi.conf
Modified: branches/1.6.0/main/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/main/channel.c?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/main/channel.c (original)
+++ branches/1.6.0/main/channel.c Mon Jul 28 11:49:18 2008
@@ -3408,11 +3408,6 @@
return NULL;
}
- if (!strcasecmp(type, "Zap")) {
- type = "DAHDI";
- ast_log(LOG_NOTICE, "Zap interface translated to DAHDI.\n");
- }
-
AST_LIST_TRAVERSE(&backends, chan, list) {
if (strcasecmp(type, chan->tech->type))
continue;
Modified: branches/1.6.0/main/features.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/main/features.c?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/main/features.c (original)
+++ branches/1.6.0/main/features.c Mon Jul 28 11:49:18 2008
@@ -2193,7 +2193,7 @@
if (pu->peername[0]) {
char *peername = ast_strdupa(pu->peername);
char *cp = strrchr(peername, '-');
- char peername_flat[AST_MAX_EXTENSION]; /* using something like Zap/52 for an extension name is NOT a good idea */
+ char peername_flat[AST_MAX_EXTENSION]; /* using something like DAHDI/52 for an extension name is NOT a good idea */
int i;
if (cp)
Modified: branches/1.6.0/main/file.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/main/file.c?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/main/file.c (original)
+++ branches/1.6.0/main/file.c Mon Jul 28 11:49:18 2008
@@ -661,15 +661,15 @@
if (whennext != s->lasttimeout) {
#ifdef HAVE_DAHDI
if (s->owner->timingfd > -1) {
- int zap_timer_samples = whennext;
+ int dahdi_timer_samples = whennext;
int rate;
/* whennext is in samples, but DAHDI timers operate in 8 kHz samples. */
if ((rate = ast_format_rate(s->fmt->format)) != 8000) {
float factor;
factor = ((float) rate) / ((float) 8000.0);
- zap_timer_samples = (int) ( ((float) zap_timer_samples) / factor );
- }
- ast_settimeout(s->owner, zap_timer_samples, ast_fsread_audio, s);
+ dahdi_timer_samples = (int) ( ((float) dahdi_timer_samples) / factor );
+ }
+ ast_settimeout(s->owner, dahdi_timer_samples, ast_fsread_audio, s);
} else
#endif
s->owner->streamid = ast_sched_add(s->owner->sched,
Modified: branches/1.6.0/main/loader.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/main/loader.c?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/main/loader.c (original)
+++ branches/1.6.0/main/loader.c Mon Jul 28 11:49:18 2008
@@ -751,22 +751,6 @@
return order;
}
-static int translate_module_name(const char *oldname, char *newname)
-{
- if (!strcasecmp(oldname, "app_zapbarge.so"))
- ast_copy_string(newname, "app_dahdibarge.so", 18);
- else if(!strcasecmp(oldname, "app_zapras.so"))
- ast_copy_string(newname, "app_dahdiras.so", 16);
- else if(!strcasecmp(oldname, "app_zapscan.so"))
- ast_copy_string(newname, "app_dahdiscan.so", 17);
- else if(!strcasecmp(oldname, "codec_zap.so"))
- ast_copy_string(newname, "codec_dahdi.so", 16);
- else
- return -1; /* no use for newname, oldname is fine */
-
- return 0;
-}
-
int load_modules(unsigned int preload_only)
{
struct ast_config *cfg;
@@ -779,8 +763,6 @@
struct ast_flags config_flags = { 0 };
int modulecount = 0;
- int translate_status;
- char newname[18]; /* although this would normally be 80, max length in translate_module_name is 18 */
#ifdef LOADABLE_MODULES
struct dirent *dirent;
DIR *dir;
@@ -809,10 +791,7 @@
/* first, find all the modules we have been explicitly requested to load */
for (v = ast_variable_browse(cfg, "modules"); v; v = v->next) {
if (!strcasecmp(v->name, preload_only ? "preload" : "load")) {
- translate_status = translate_module_name(v->value, newname);
- if (!translate_status)
- ast_log(LOG_WARNING, "Use of old module name %s is deprecated, please use %s instead.\n", v->value, newname);
- add_to_load_order(translate_status ? v->value : newname, &load_order);
+ add_to_load_order(v->value, &load_order);
}
}
@@ -869,10 +848,7 @@
continue;
AST_LIST_TRAVERSE_SAFE_BEGIN(&load_order, order, entry) {
- translate_status = translate_module_name(v->value, newname);
- if (!resource_name_match(order->resource, translate_status ? v->value : newname)) {
- if (!translate_status)
- ast_log(LOG_WARNING, "Use of old module name %s is deprecated, please use %s instead.\n", v->value, newname);
+ if (!resource_name_match(order->resource, v->value)) {
AST_LIST_REMOVE_CURRENT(entry);
ast_free(order->resource);
ast_free(order);
Modified: branches/1.6.0/pbx/pbx_config.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/pbx/pbx_config.c?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/pbx/pbx_config.c (original)
+++ branches/1.6.0/pbx/pbx_config.c Mon Jul 28 11:49:18 2008
@@ -1602,16 +1602,6 @@
dahdichan = ast_variable_retrieve(cfg, cat, "dahdichan");
if (!dahdichan)
dahdichan = ast_variable_retrieve(cfg, "general", "dahdichan");
- if (!dahdichan) {
- /* no dahdichan, but look for zapchan too */
- dahdichan = ast_variable_retrieve(cfg, cat, "zapchan");
- if (!dahdichan) {
- dahdichan = ast_variable_retrieve(cfg, "general", "zapchan");
- }
- if (!ast_strlen_zero(dahdichan)) {
- ast_log(LOG_WARNING, "Use of zapchan in users.conf is deprecated. Please update configuration to use dahdichan instead.\n");
- }
- }
if (!ast_strlen_zero(dahdichan)) {
ast_copy_string(dahdicopy, dahdichan, sizeof(dahdicopy));
c = dahdicopy;
Modified: branches/1.6.0/sample.call
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/sample.call?view=diff&rev=134087&r1=134086&r2=134087
==============================================================================
--- branches/1.6.0/sample.call (original)
+++ branches/1.6.0/sample.call Mon Jul 28 11:49:18 2008
@@ -13,7 +13,7 @@
# Obviously, you MUST specify at least a channel in the same format as you
# would for the "Dial" application. Only one channel name is permitted.
#
-Channel: Zap/1
+Channel: DAHDI/1
#
# You may also specify a wait time (default is 45 seconds) for how long to
# wait for the channel to be answered, a retry time (default is 5 mins)
More information about the asterisk-commits
mailing list