See the sample configfile, also its zapata.conf not zaptel.conf, the channel=&gt; acquires all the properties above it.....<br><br>;callerid=&quot;Green Phone&quot;&lt;(256) 428-6121&gt;<br>;channel =&gt; 1<br>;callerid=&quot;Black Phone&quot;&lt;(256) 428-6122&gt;
<br>;channel =&gt; 2<br>;callerid=&quot;CallerID Phone&quot; &lt;(256) 428-6123&gt;<br>;callerid=&quot;CallerID Phone&quot; &lt;(630) 372-1564&gt;<br>;callerid=&quot;CallerID Phone&quot; &lt;(256) 704-4666&gt;<br>;channel =&gt; 3
<br>;callerid=&quot;Pac Tel Phone&quot; &lt;(256) 428-6124&gt;<br>;channel =&gt; 4<br>;callerid=&quot;Uniden Dead&quot; &lt;(256) 428-6125&gt;<br>;channel =&gt; 5<br>;callerid=&quot;Cortelco 2500&quot; &lt;(256) 428-6126&gt;
<br>;channel =&gt; 6<br>;callerid=&quot;Main TA 750&quot; &lt;(256) 428-6127&gt;<br>;channel =&gt; 44<br>;<br>; For example, maybe we have some other channels which start out in a<br>; different context and use E &amp; M signalling instead.
<br>;<br>;context=remote<br>;sigalling=em<br>;channel =&gt; 15<br>;channel =&gt; 16<br><br><br><br><div><span class="gmail_quote">On 11/28/06, <b class="gmail_sendername">Andrew Joakimsen</b> &lt;<a href="mailto:joakimsen@gmail.com">
joakimsen@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Everthing should be ABOVE the channel =&gt; line for that group of channels
<br><br><br><div><div><span class="e" id="q_10f31b7852eaa1e0_1"><span class="gmail_quote">On 11/28/06, <b class="gmail_sendername">Damon Estep</b> &lt;<a href="mailto:damon@suburbanbroadband.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

damon@suburbanbroadband.net</a>&gt; wrote:</span></span></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div><div><span class="e" id="q_10f31b7852eaa1e0_3">

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Can anyone tell me if accountcode= should appear before or
after the channels definition that you want it to apply to?</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I have several groups of channels (PRI) defined in Zapata.conf,
and wish to specify accountcode by group.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">If I put the accountcode= at the end of Zapata.conf it
applies to all channels configured, if I put it at the end of each group
section the behavior is inconsistent.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">How is accountcode parsed in Zapata.conf, does it apply to
everything before or after the setting appears? Can it change mid-file? How?</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Here is the config I am working with;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">group=2</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">musiconhold=default</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">context=pri-inbound</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">echocancel=yes</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">echocancelwhenbridged=yes</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">echotraining=yes</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">callerid=asreceived</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">useincomingcalleridonzaptransfer=yes</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">switchtype=national</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">signalling=pri_cpe</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">channel=25-47</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">accountcode=2222</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">;channels 25-47 should have accountcode=2222</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">group=3</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">musiconhold=default</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">context=pri-inbound</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">echocancel=yes</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">echocancelwhenbridged=yes</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">echotraining=yes</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">callerid=asreceived</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">useincomingcalleridonzaptransfer=yes</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">switchtype=national</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">signalling=pri_cpe</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">channel=49-71</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">accountcode=3333</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">;channels 49-71 should have accountcode 3333</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">group=4</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">musiconhold=default</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">context=pri-inbound</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">echocancel=yes</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">echocancelwhenbridged=yes</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">echotraining=yes</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">callerid=asreceived</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">useincomingcalleridonzaptransfer=yes</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">switchtype=national</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">signalling=pri_net</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">channel=73-95</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">accountcode=1714</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">;channels 73-95 should have accountcode 1714</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Thanks!</span></font></p></span></div>

</div>

</div>



<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Easynews.com</a> --<br><br>

asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br><br></blockquote></div><br>

</blockquote></div><br>