<br><br><div class="gmail_quote">2009/11/10 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 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 a<br>
> B410P board is to be "disabled".<br>
<br>
</div>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></blockquote><div><br>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.<br>
<br>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.<br><br>But I must also add it doesn't seem very important to me to have this implemented.<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>
> 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>
</div>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></blockquote><div><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><br>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.<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>
> 2. How can specify groups in /etc/dahdi/genconf_parameters ?<br>
> I would like to group SPAN/1 and SPAN/2 into group 1 and SPAN/3 into group<br>
> 2.<br>
> I was unsuccessful with :<br>
><br>
> group_lines 1<br>
> pri_termtype<br>
> SPAN/1 TE<br>
> SPAN/2 TE<br>
> group_lines 2<br>
> pri_termtype<br>
> SPAN/3 TE<br>
><br>
> 3. After a dahdi_genconf commande, generated<br>
> /etc/asterisk/dahdi-channels.conf is like this :<br>
> ; Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER) AMI/CCS<br>
> group=5,11<br>
> context=remote<br>
> switchtype = euroisdn<br>
> signalling = bri_cpe_ptmp<br>
> channel => 1-2<br>
> context = default<br>
> group = 63<br>
><br>
> I can see 2 "group=" and "context=" lines. What is the difference between<br>
> them ?<br>
> Shall I care to have them both ?<br>
<br>
</div>The second ones are not really needed. Unless you want to assume less of<br>
the configuration below.<br>
<br>
TODO: implement a [section] syntax there to care even less about such<br>
inclusion.<br>
<font color="#888888"><br>
--<br>
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>
</font><div><div></div><div class="h5"><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>