Hi,<br><br><div class="gmail_quote">On Wed, Dec 22, 2010 at 9:49 AM, Alex Saavedra <span dir="ltr"><<a href="mailto:alex@masterline-logistics.com">alex@masterline-logistics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><br><div>I have noticed thar our dahdi-channels.conf has some repeating directives, for instance for channel 2 (FXO) we have these settings:</div><blockquote style="margin: 0pt 0pt 0pt 40px; border: medium none; padding: 0px;">
<div><div>;;; line="2 WCTDM/0/1 FXSKS"</div></div><div><div>signalling=fxs_ks</div></div><div><div>callerid=asreceived</div></div><div><div>group=0</div></div><div><div>context=from-pstn</div></div><div><div>channel => 2</div>
</div><div><div>callerid=</div></div><div><div>group=</div></div><div><div>context=default</div></div></blockquote><div><div><br></div><div>As you can see, a few directives are repeated (callerid, group, context). This was generated by DAHDI tools, and since it's working I didn't want to change it. Is it safe to remove them? <br>
</div></div></div></blockquote><div><br>Short Answer: NO!!<br><br>Longer Answer: The settings all apply to channels, which are defined by the "channel => 2" directive. If I'm remembering correctly, the channel is "set"<br>
at the end of the Stanza, not at the beginning. So, your blank callerid and group would apply to your next channel directive (3?). Now, I remember reading there<br>is a way to flip the channel definition bit ("channel => XX") to the top of the stanza, but can't recall. Now, if in between two channel definitions you have repetition, it might be ok to trim things up, as long as it has the right information -- the last setting is the effective one. And the bit that starts ";;;" is a comment, which is<br>
actually ignored by asterisk.<br><br>Hope this helps,<br>Gerald.<br></div></div>