[asterisk-users] IAX and Variables
    Mikhail Lischuk 
    mlischuk at itx.com.ua
       
    Mon Oct  7 17:08:22 CDT 2013
    
    
  
 
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
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20131008/e2f2e773/attachment.html>
    
    
More information about the asterisk-users
mailing list