Wont this work? 

exten =>
18,1,Set(CDR(accountcode)=${IAXVAR(ACCOUNTID)}) 

accountcode is not
read-only property so it should be writeable. 

Phibee Network Operation
Center писал 07.10.2013 21:05: 

> Hi
> 
> a new small question
;=)
> 
> We have two Asterisk, connected in IAX2.
> 
> On the first, in
dialplan, we have:
> exten =>
_XX.,1,Set(IAXVAR(ACCOUNTID)=${CDR(accountcode)})
> we sent into the
IAXVAR "ACCOUNTID" the accountcode.
> 
> On the second, in dialplan, we
have:
> exten => 18,2,AGI(Caller-ID.agi,${IAXVAR(ACCOUNTID)})
> 
>
That's work, the second server get the variable.
> 
> I want now said at
the second server that accountcode = 
> ${IAXVAR(ACCOUNTID)},
> for use
this accoundcode in CDR. On second server, in cdr_mysql.conf i have:
>

> [columns]
> alias start => calldate
> alias end => callend
> alias
clid => clid
> alias src => src
> alias dst => dst
> alias dcontext =>
dcontext
> alias channel => channel
> alias dstchannel => dstchannel
>
alias lastapp => lastapp
> alias lastdata => lastdata
> alias duration
=> duration
> alias billsec => billsec
> alias disposition =>
disposition
> alias amaflags => amaflags
> alias accountcode =>
accountcode
> alias userfield => userfield
> alias uniqueid =>
uniqueid
> 
> But where i can put into the config that for this cdr
entry accountcode 
> = ${IAXVAR(ACCOUNTID)} ?
> 
> thanks for your
help
> 
> jerome

-- 
With Best Regards
Mikhail Lischuk

 
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to