<br><br><div class="gmail_quote">Em 31 de março de 2010 22:48, Sylvio Jollenbeck <span dir="ltr"><<a href="mailto:sylvio.sdr@gmail.com">sylvio.sdr@gmail.com</a>></span> escreveu:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;"><div><br></div><div>CDR Variables
<br><hr>
<br>If the channel has a cdr, that cdr record has it's own set of
variables which
<br>can be accessed just like channel variables. The following builtin
variables
<br>are available and, unless specified, read-only.
<br>
<br>${CDR(clid)}                        Caller ID
<br>${CDR(src)}                        Source
<br>${CDR(dst)}                        Destination
<br>${CDR(dcontext)}                Destination context
<br>${CDR(channel)}                        Channel name
<br>${CDR(dstchannel)}                Destination channel
<br>${CDR(lastapp)}                        Last app executed
<br>${CDR(lastdata)}                Last app's arguments
<br>${CDR(start)}                        Time the call started.
<br>${CDR(answer)}                        Time the call was answered.
<br>${CDR(end)}                        Time the call ended.
<br>${CDR(duration)}                Duration of the call.
<br>${CDR(billsec)}                        Duration of the call once it was answered.
<br>${CDR(disposition)}                ANSWERED, NO ANSWER, BUSY
<br>${CDR(amaflags)}                DOCUMENTATION, BILL, IGNORE etc
<br>${CDR(accountcode)}                The channel's account code (read-write).
<br>${CDR(uniqueid)}                The channel's unique id.
<br>${CDR(userfield)}                The channels uses specified field (read-write).
<br>
<br>
<br>In addition, you can set your own extra variables with a traditional
<br>Set(CDR(var)=val) to anything you want.
<br>
<br><b>NOTE</b> Some CDR values (eg: duration & billsec)
can't be accessed until the call has terminated. As of <a href="http://svn.digium.com/view/asterisk?view=rev&revision=91617" target="_blank">91617</a>,
those values will be calculated on-demand if requested. Until that
makes it into a stable release, you can set endbeforehexten=yes in
cdr.conf, and then use the "hangup" context to wrap up your call. <br></div><div><br></div></div></blockquote><div><br>Obrigado. <br>Era isto mesmo que estava querendo, havia tentado ${CDR(calldate)} mas não deu em nada.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;"><div></div></div>_______________________________________________<br>
KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk.<br>
- Hardware com alta disponibilidade de recursos e qualidade KHOMP<br>
- Suporte técnico local qualificado e gratuito<br>
Conheça a linha completa de produtos KHOMP em <a href="http://www.khomp.com.br" target="_blank">www.khomp.com.br</a><br>
_______________________________________________<br>
Lista de discussões AsteriskBrasil.org<br>
<a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a><br>
<a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a><br></blockquote></div><br><br clear="all"><br>-- <br>Moisés Paes Sena <<a href="mailto:moises@oriontec.com.br">moises@oriontec.com.br</a>><br>
(Desenvolvedor WEB)<br>Oriontec Automação Comercial<br><a href="http://www.oriontec.com.br">http://www.oriontec.com.br</a><br>