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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 18 10:39:43 CDT 2009


The following issue has been set as RELATED TO issue 0015082. 
====================================================================== 
https://issues.asterisk.org/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:                     feedback
====================================================================== 
Date Submitted:             2006-07-28 20:45 CDT
Last Modified:              2009-05-18 10:39 CDT
====================================================================== 
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)?
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015082 [patch] Specify default signaling for F...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-18 10:39 tzafrir        Relationship added       related to 0015082  
======================================================================




More information about the asterisk-bugs mailing list