[asterisk-dev] dynamic span only

Kaloyan Kovachev kkovachev at varna.net
Fri Jan 13 04:40:05 CST 2012


On Thu, 12 Jan 2012 12:51:15 -0600, "Kevin P. Fleming"
<kpfleming at digium.com> wrote:
> On 01/12/2012 11:41 AM, Shaun Ruffell wrote:
>> On Thu, Jan 12, 2012 at 10:26:04AM -0600, Kevin P. Fleming wrote:
>>> On 01/12/2012 10:10 AM, Kaloyan Kovachev wrote:
>>>>
>>>> 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.
>>
>> Yes, the problem is that dahdi_dynamic spans don't have a physical
>> parent device (like all the physical cards do). That is the source
>> of the NULL pointer dereference you posted above.
>>
>> In looking at DAHLIN-274 [1] "dahdi_dummy fails to compile" I am in
>> the process of allowing "parentless" dahdi_devices to be added which
>> is also needed for the dynamic_spans.  I'll reply to this thread
>> when I've updated that issue with something for you to try.
>>
>> [1] https://issues.asterisk.org/jira/browse/DAHLIN-274
> 
> In the meantime, yes, you can use DAHDI 2.4 with Asterisk trunk.
> 

unfortunately 2.4 is not an option either as i am running kernel 3.0.3
which does not provide smp_lock.h
I will be watching DAHLIN-274 for updates.
meanwhile
       if (!parent)
               dev_set_name(dev, "dyn:%d", next_dyn++);
       else
               dev_set_name(dev, "%s:%s", parent->bus->name,
dev_name(parent));

did the job and i have 2 local spans for the tests

> -- 
> 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