[asterisk-users] accountcode= placement in zapata.conf

Andrew Joakimsen joakimsen at gmail.com
Tue Nov 28 20:19:47 MST 2006


See the sample configfile, also its zapata.conf not zaptel.conf, the
channel=> acquires all the properties above it.....

;callerid="Green Phone"<(256) 428-6121>
;channel => 1
;callerid="Black Phone"<(256) 428-6122>
;channel => 2
;callerid="CallerID Phone" <(256) 428-6123>
;callerid="CallerID Phone" <(630) 372-1564>
;callerid="CallerID Phone" <(256) 704-4666>
;channel => 3
;callerid="Pac Tel Phone" <(256) 428-6124>
;channel => 4
;callerid="Uniden Dead" <(256) 428-6125>
;channel => 5
;callerid="Cortelco 2500" <(256) 428-6126>
;channel => 6
;callerid="Main TA 750" <(256) 428-6127>
;channel => 44
;
; For example, maybe we have some other channels which start out in a
; different context and use E & M signalling instead.
;
;context=remote
;sigalling=em
;channel => 15
;channel => 16



On 11/28/06, Andrew Joakimsen <joakimsen at gmail.com> wrote:
>
> Everthing should be ABOVE the channel => line for that group of channels
>
>
> On 11/28/06, Damon Estep < damon at suburbanbroadband.net> wrote:
>
> >  Can anyone tell me if accountcode= should appear before or after the
> > channels definition that you want it to apply to?
> >
> >
> >
> > I have several groups of channels (PRI) defined in Zapata.conf, and wish
> > to specify accountcode by group.
> >
> >
> >
> > 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.
> >
> >
> >
> > How is accountcode parsed in Zapata.conf, does it apply to everything
> > before or after the setting appears? Can it change mid-file? How?
> >
> >
> >
> > Here is the config I am working with;
> >
> >
> >
> > group=2
> >
> > musiconhold=default
> >
> > context=pri-inbound
> >
> > echocancel=yes
> >
> > echocancelwhenbridged=yes
> >
> > echotraining=yes
> >
> > callerid=asreceived
> >
> > useincomingcalleridonzaptransfer=yes
> >
> > switchtype=national
> >
> > signalling=pri_cpe
> >
> > channel=25-47
> >
> > accountcode=2222
> >
> > ;channels 25-47 should have accountcode=2222
> >
> >
> >
> > group=3
> >
> > musiconhold=default
> >
> > context=pri-inbound
> >
> > echocancel=yes
> >
> > echocancelwhenbridged=yes
> >
> > echotraining=yes
> >
> > callerid=asreceived
> >
> > useincomingcalleridonzaptransfer=yes
> >
> > switchtype=national
> >
> > signalling=pri_cpe
> >
> > channel=49-71
> >
> > accountcode=3333
> >
> > ;channels 49-71 should have accountcode 3333
> >
> >
> >
> > group=4
> >
> > musiconhold=default
> >
> > context=pri-inbound
> >
> > echocancel=yes
> >
> > echocancelwhenbridged=yes
> >
> > echotraining=yes
> >
> > callerid=asreceived
> >
> > useincomingcalleridonzaptransfer=yes
> >
> > switchtype=national
> >
> > signalling=pri_net
> >
> > channel=73-95
> >
> > accountcode=1714
> >
> > ;channels 73-95 should have accountcode 1714
> >
> >
> >
> > Thanks!
> >
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061128/1ea31ba1/attachment.htm


More information about the asterisk-users mailing list