See the sample configfile, also its zapata.conf not zaptel.conf, the channel=> acquires all the properties above it.....<br><br>;callerid="Green Phone"<(256) 428-6121><br>;channel => 1<br>;callerid="Black Phone"<(256) 428-6122>
<br>;channel => 2<br>;callerid="CallerID Phone" <(256) 428-6123><br>;callerid="CallerID Phone" <(630) 372-1564><br>;callerid="CallerID Phone" <(256) 704-4666><br>;channel => 3
<br>;callerid="Pac Tel Phone" <(256) 428-6124><br>;channel => 4<br>;callerid="Uniden Dead" <(256) 428-6125><br>;channel => 5<br>;callerid="Cortelco 2500" <(256) 428-6126>
<br>;channel => 6<br>;callerid="Main TA 750" <(256) 428-6127><br>;channel => 44<br>;<br>; For example, maybe we have some other channels which start out in a<br>; different context and use E & M signalling instead.
<br>;<br>;context=remote<br>;sigalling=em<br>;channel => 15<br>;channel => 16<br><br><br><br><div><span class="gmail_quote">On 11/28/06, <b class="gmail_sendername">Andrew Joakimsen</b> <<a href="mailto:joakimsen@gmail.com">
joakimsen@gmail.com</a>> 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 => 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> <<a href="mailto:damon@suburbanbroadband.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
damon@suburbanbroadband.net</a>> 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;"> </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;"> </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;"> </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;"> </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;"> </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;"> </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;"> </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;"> </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> <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>