<br><br><div class="gmail_quote">2009/11/11 Tzafrir Cohen <span dir="ltr"><<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, Nov 11, 2009 at 08:24:53PM +0100, Olivier wrote:<br>
> 2009/11/10 Tzafrir Cohen <<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>><br>
><br>
> > On Tue, Nov 10, 2009 at 06:06:12PM +0100, Olivier wrote:<br>
> > > Hello,<br>
> > ><br>
> > > 1. How can specify in /etc/dahdi/genconf_parameters file that a port from<br>
> > a<br>
> > > B410P board is to be "disabled".<br>
> ><br>
> > There's currently no way to do that.<br>
> ><br>
> > It should be trivial to implment. The more difficult part of it would be<br>
> > how to define exactly what spans / channels to disable.<br>
> ><br>
> > But why do you need that?<br>
> ><br>
><br>
> I don't really know why I thought I needed that feature but as some gateways<br>
> implement this feature (the ability to enable or disable each port), I must<br>
> have told myself I may have missed here.<br>
><br>
> On a general point of view, as most Dahdi cards have a light showing nearby<br>
> port status, it should ideally possible, to turn this light off when a port<br>
> is disabled.<br>
><br>
> But I must also add it doesn't seem very important to me to have this<br>
> implemented.<br>
<br>
</div>dahdi_genconf is an optional tool. Ideally it should need no<br>
configuration at all and generate configuration that Just Works (though<br>
the fact that it can do that indicates that the current defaults are<br>
broken).<br>
<br>
It should not be another configuration layer. If the configuration it<br>
has generated is not good enough, you can also manually edit it.<br>
<div class="im"><br>
><br>
><br>
> > > Playing with comments (see bellow) doesn't help : file<br>
> > > /etc/asterisk/dahdi-channels.conf is filled with 4 ports data.<br>
> > ><br>
> > > pri_termtype<br>
> > > SPAN/1 TE<br>
> > > SPAN/2 TE<br>
> > > SPAN/3 TE<br>
> > > # SPAN/4 TE<br>
> ><br>
> > Currently pri_termtype is the only directive in dahdi_genconf that uses<br>
> > this "list" syntax. I'm not very happy with it.<br>
> ><br>
> > I'm not exactly sure if there should be some sort of generic way of<br>
> > adding per-span (span? channel? how do you define a span?) definitions.<br>
> > Think of ssh_config.<br>
> ><br>
><br>
><br>
> What about adding per-span section headers like Asterisk .conf files ?<br>
> [span1]<br>
> group_lines 1<br>
> pri_termtype<br>
> SPAN/1 TE<br>
> SPAN/2 TE<br>
><br>
> [span2]<br>
> group_lines 2<br>
> pri_termtype<br>
> SPAN/2 TE<br>
<br>
</div>This implies you will know span numbers in advance. I would like better<br>
ways to specify configuration.<br></blockquote><div><br>Really ?<br>I used this [span1] header as an example. Using any other string would be fine for me as what matters, if I'm not mistaken, is the group_lines number :<br>
<br>[foo]<br>
group_lines 1<br>
pri_termtype<br>
SPAN/1 TE<br>
SPAN/2 TE<br><br>[bar]<br>
group_lines 2<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
><br>
><br>
> I don't think we need to define any further what a span is, beside that<br>
> rules that applied to the whole genconf_parameters ("no more than 1<br>
> group_lines statement") should apply to each section.<br>
<br>
</div>--<br>
<div><div></div><div class="h5"> Tzafrir Cohen<br>
icq#16849755 <a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>
+972-50-7952406 mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br>
<a href="http://www.xorcom.com" target="_blank">http://www.xorcom.com</a> <a href="http://iax:guest@local.xorcom.com/tzafrir" target="_blank">iax:guest@local.xorcom.com/tzafrir</a><br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>