<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Wont this work?</p>
<p><span>exten => 18,1,Set(CDR(accountcode)=</span>${IAXVAR(ACCOUNTID)})</p>
<p>accountcode is not read-only property so it should be writeable.</p>
<p> </p>
<p>Phibee Network Operation Center писал 07.10.2013 21:05:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>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
</pre>
</blockquote>
<p> </p>
<div>
<pre><span class="sig"><span style="color: #999999;">-- </span><br /><span style="color: #999999;">With Best Regards</span><br /><span style="color: #999999;"><a title="mailto:mlischuk@itx.com.ua" href="mailto:mlischuk@itx.com.ua">Mikhail Lischuk</a></span><br /></span></pre>
</div>
</body></html>