On 02/11/2011 04:13 AM, Kaloyan Kovachev wrote: > On Fri, 11 Feb 2011 11:04:49 +0100, mosbah.abdelkader at gmail.com > wrote: >> >> For the timer, the doc mentions that a DAHDI card must be used!!!! >> What to use for timer if there is no card? Or, the timer does not >> matter if no hardware is available? >> > > You may use dahdi_dummy on Ast1 to provide the timing and use the > same timing on Ast2 delivered via the TDMoE span and probably again > dahdi_dummy as a backup timing device > I'm not a TDMoE expert but I ran into an issue when using DAHDI 2.4.0 with dynamic_local spans that would probably affect you if you want to use dahdi_dummy to provide timing for TDMoE spans. The quick summary is that if you want to use dahdi_dummy with dynamic spans, please: 1) Enable dahdi_dummy in drivers/dahdi/Kbuild 2) Comment out the MODULE_ALIAS("dahdi_dummy") in drivers/dahdi/dahdi_base.c 3) Undefine ENABLE_TASKLETS in drivers/dahdi/dahdi_dynamic.c If you are going this route, hopefully this might save you some confusion. Here are the above three steps expressed in a patch: -- diff --git a/drivers/dahdi/Kbuild b/drivers/dahdi/Kbuild index 3fe2e28..c4ad534 100644 --- a/drivers/dahdi/Kbuild +++ b/drivers/dahdi/Kbuild @@ -1,5 +1,5 @@ obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI) += dahdi.o -#obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DUMMY) += dahdi_dummy.o +obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DUMMY) += dahdi_dummy.o obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC) += dahdi_dynamic.o obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC_LOC) += dahdi_dynamic_loc.o obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC_ETH) += dahdi_dynamic_eth.o diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index ffa2a59..37d8fca 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -8685,7 +8685,7 @@ MODULE_LICENSE("GPL v2"); /* DAHDI now provides timing. If anybody wants dahdi_dummy it's probably * for that. So make dahdi provide it for now. This alias may be removed * in the future, and users are encouraged not to rely on it. */ -MODULE_ALIAS("dahdi_dummy"); +/* MODULE_ALIAS("dahdi_dummy"); */ MODULE_VERSION(DAHDI_VERSION); module_param(debug, int, 0644); diff --git a/drivers/dahdi/dahdi_dynamic.c b/drivers/dahdi/dahdi_dynamic.c index 31a6c30..db542d1 100644 --- a/drivers/dahdi/dahdi_dynamic.c +++ b/drivers/dahdi/dahdi_dynamic.c @@ -43,7 +43,7 @@ * tasklets. */ -#define ENABLE_TASKLETS +#undef ENABLE_TASKLETS -- Shaun Ruffell Digium, Inc. | Linux Kernel Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: www.digium.com & www.asterisk.org