<div dir="ltr">Gerald,<div><br></div><div>Thank you for the explanation. Glad I asked...</div><div><br clear="all"><div dir="ltr">Alex Saavedra</div><br><div class="gmail_quote">On Wed, Dec 22, 2010 at 12:40 PM, Gerald A <span dir="ltr"><<a href="mailto:geraldablists@gmail.com">geraldablists@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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" target="_blank">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>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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></blockquote></div><br></div></div>