[asterisk-bugs] [DAHDI-linux 0007613]: [patch][post 1.4] automatic configuration for analog channels

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Nov 21 09:25:27 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=7613 
====================================================================== 
Reported By:                tzafrir
Assigned To:                tzafrir
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   7613
Category:                   zaptel (the module)
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2006-07-28 20:45 CDT
Last Modified:              2008-11-21 09:25 CST
====================================================================== 
Summary:                    [patch][post 1.4] automatic configuration for analog
channels
Description: 
All zaptel channels and spans have to be configured from userspace after
they were registered before they could be used. However for analog spans,
there are simple and sane defults that would probably Just Work in most of
the cases.

In the attached patch:
1. the action of the ioctl ZT_CHANCONFIG was moved to a separate function
(zt_chanconfig) . 

2. if the module parameter do_ztcfg is set to a value other than 1, it
will configure "simple" channels: channels that support either fxsks or
fxoks signalling , but not both. This should work for wcfxo, wcusb, xpp
(both fxs and fxo) and probably wctdm/wctdm24xxp as well, if sigcap is
properly set for each channel.

Open issues:

A. The patch is not yet tested

B. Would anybody comment on the strange error handling in the ioctl? What
exactly should and shouldn't be don't in case of failure? 

I basically moved the code as-is with minimal rewriting. The only
significant change is that in case of failure the copy to userspace is not
done before the hangup.

C. Any ideas regarding the validity of the hueristic I use in (2)?
====================================================================== 

---------------------------------------------------------------------- 
 (0095257) blitzrage (administrator) - 2008-11-21 09:25
 http://bugs.digium.com/view.php?id=7613#c95257 
---------------------------------------------------------------------- 
I'd like to ping this issue again as per murf to see what is necessary to
move this bug to closing. Even if meneault can't move this issue forward,
perhaps someone who was part of this discussion can chime in and layout
what needs to be done to get this issue resolved. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-21 09:25 blitzrage      Note Added: 0095257                          
======================================================================




More information about the asterisk-bugs mailing list