[asterisk-dev] dynamic span only

Kaloyan Kovachev kkovachev at varna.net
Thu Jan 12 11:38:09 CST 2012


On Thu, 12 Jan 2012 10:26:04 -0600, "Kevin P. Fleming"
<kpfleming at digium.com> wrote:
> On 01/12/2012 10:10 AM, Kaloyan Kovachev wrote:
>> The version is trunk ("In dahdi_linux trunk" below). I will try with
2.6
>>
>> in system.conf i have added:
>> dynamic=eth,eth0/00:03:0d:08:d4:74,6,0
>> dchan=6
>> bchan=1-5
>> alaw=1-5
>>
>> modprobe dahdi_dynamic_eth - loads fine dahdi_dynamic and dahdi
>> dahdi_cfg -tvvv output:
>> DAHDI Tools Version - SVN-trunk-r10368
>>
>> DAHDI Version: SVN-trunk-r10397
>> Echo Canceller(s): HWEC
>> Configuration
>> ======================
>>
>> Dynamic span 1: driver eth, addr eth0/00:03:0d:08:d4:74, channels 6,
>> timing 0
>>
>> Channel map:
>>
>> Channel 01: Clear channel (A-law) (Echo Canceler: none) (Slaves: 01)
>> Channel 02: Clear channel (A-law) (Echo Canceler: none) (Slaves: 02)
>> Channel 03: Clear channel (A-law) (Echo Canceler: none) (Slaves: 03)
>> Channel 04: Clear channel (A-law) (Echo Canceler: none) (Slaves: 04)
>> Channel 05: Clear channel (A-law) (Echo Canceler: none) (Slaves: 05)
>> Channel 06: D-channel (Default) (Echo Canceler: none) (Slaves: 06)
>>
>> 6 channels to configure.
>>
>> without the -t flag it shows the same, but is then killed:
>> BUG: unable to handle kernel NULL pointer dereference at
0000000000000050
>> IP: [<ffffffffa03067d1>] dahdi_sysfs_add_device+0x21/0x60 [dahdi]
>>
>> at this point module usage shows all 3 as used
> 
> Then you've found a bug; you can report it on the issue tracker if you 
> like, or you can try tracking it down and post here what you find for 
> others to help you.
> 

to debug the problem (which is with 2.6 and probably 2.5 too) i have added
in dahdi_base.c function dahdi_register_device the following code:

	if (!ddev) {
		module_printk(KERN_WARNING, "No ddev\n");
		return -EINVAL;
	}

	if (!parent) {
		module_printk(KERN_WARNING, "No parent\n");
		return -EINVAL;
	}

	if (!parent->bus) {
		module_printk(KERN_WARNING, "No parent->bus\n");
		return -EINVAL;
	}

	if (!parent->bus->name) {
		module_printk(KERN_WARNING, "No parent->bus->name\n");
		return -EINVAL;
	}

executing dahdi_cfg -vvv then exits with "DAHDI dynamic span creation
failed: Invalid argument"

dmesg shows "dahdi: No parent" for both TDMoE and TDMoL configurations - i
will create an issue for the bug tomorrow

is it possible to use dahdi 2.4 or older which contains dahdi_dynamic with
asterisk trunk?

> -- 
> Kevin P. Fleming
> Digium, Inc. | Director of Software Technologies
> Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype:
kpfleming
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> Check us out at www.digium.com & www.asterisk.org
> 
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list