Olivier
2009-Nov-10 17:06 UTC
[asterisk-users] Questions about Dahdi's /etc/dahdi/genconf_parameters
Hello, 1. How can specify in /etc/dahdi/genconf_parameters file that a port from a B410P board is to be "disabled". 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 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 ? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091110/847bbeae/attachment.htm
Tzafrir Cohen
2009-Nov-10 20:53 UTC
[asterisk-users] Questions about Dahdi's /etc/dahdi/genconf_parameters
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?> 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 TECurrently 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.> > 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 +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir