[asterisk-users] Questions about Dahdi's /etc/dahdi/genconf_parameters

Olivier oza-4h07 at myamail.com
Wed Nov 11 13:24:53 CST 2009


2009/11/10 Tzafrir Cohen <tzafrir.cohen at xorcom.com>

> On Tue, Nov 10, 2009 at 06:06:12PM +0100, Olivier wrote:
> > Hello,
> >
> > 1. How can specify in /etc/dahdi/genconf_parameters file that a port from
> a
> > B410P board is to be "disabled".
>
> There's currently no way to do that.
>
> It should be trivial to implment. The more difficult part of it would be
> how to define exactly what spans / channels to disable.
>
> But why do you need that?
>

I don't really know why I thought I needed that feature but as some gateways
implement this feature (the ability to enable or disable each port), I must
have told myself I may have missed here.

On a general point of view, as most Dahdi cards have a light showing nearby
port status, it should ideally possible, to turn this light off when a port
is disabled.

But I must also add it doesn't seem very important to me to have this
implemented.


> > Playing with comments (see bellow) doesn't help : file
> > /etc/asterisk/dahdi-channels.conf is filled with 4 ports data.
> >
> > pri_termtype
> >         SPAN/1          TE
> >         SPAN/2          TE
> >         SPAN/3          TE
> > #       SPAN/4          TE
>
> Currently pri_termtype is the only directive in dahdi_genconf that uses
> this "list" syntax. I'm not very happy with it.
>
> I'm not exactly sure if there should be some sort of generic way of
> adding per-span (span? channel? how do you define a span?) definitions.
> Think of ssh_config.
>


What about adding per-span section headers like Asterisk .conf files ?
[span1]
group_lines             1
pri_termtype
        SPAN/1          TE
        SPAN/2          TE

[span2]
group_lines             2
pri_termtype
        SPAN/2          TE


I don't think we need to define any further what a span is, beside that
rules that applied to the whole genconf_parameters ("no more than 1
group_lines statement") should apply to each section.


> >
> > 2. How can specify groups in /etc/dahdi/genconf_parameters ?
> > I would like to group SPAN/1 and SPAN/2 into group 1 and SPAN/3 into
> group
> > 2.
> > I was unsuccessful with :
> >
> > group_lines             1
> > pri_termtype
> >         SPAN/1          TE
> >         SPAN/2          TE
> > group_lines             2
> > pri_termtype
> >         SPAN/3          TE
> >
> > 3. After a dahdi_genconf commande, generated
> > /etc/asterisk/dahdi-channels.conf is like this :
> > ; Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER) AMI/CCS
> > group=5,11
> > context=remote
> > switchtype = euroisdn
> > signalling = bri_cpe_ptmp
> > channel => 1-2
> > context = default
> > group = 63
> >
> > I can see 2 "group=" and "context=" lines. What is the difference between
> > them ?
> > Shall I care to have them both ?
>
> The second ones are not really needed. Unless you want to assume less of
> the configuration below.
>
> TODO: implement a [section] syntax there to care even less about such
> inclusion.
>
> --
>               Tzafrir Cohen
> icq#16849755              jabber:tzafrir.cohen at xorcom.com<jabber%3Atzafrir.cohen at xorcom.com>
> +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091111/5a20d0a4/attachment.htm 


More information about the asterisk-users mailing list