Everthing should be ABOVE the channel => line for that group of channels<br><br><br><div><span class="gmail_quote">On 11/28/06, <b class="gmail_sendername">Damon Estep</b> <<a href="mailto:damon@suburbanbroadband.net">
damon@suburbanbroadband.net</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;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<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>
</div>
</div>
<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>
asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br><br></blockquote></div><br>