[AsteriskBrasil] pegar CallDate da chamada em extensão [Resolvido]

Moisés Paes Sena moises em oriontec.com.br
Quinta Abril 1 10:51:49 BRT 2010


Em 31 de março de 2010 22:48, Sylvio Jollenbeck <sylvio.sdr em gmail.com>escreveu:

>
> CDR Variables
> ------------------------------
>
> If the channel has a cdr, that cdr record has it's own set of variables
> which
> can be accessed just like channel variables. The following builtin
> variables
> are available and, unless specified, read-only.
>
> ${CDR(clid)} Caller ID
> ${CDR(src)} Source
> ${CDR(dst)} Destination
> ${CDR(dcontext)} Destination context
> ${CDR(channel)} Channel name
> ${CDR(dstchannel)} Destination channel
> ${CDR(lastapp)} Last app executed
> ${CDR(lastdata)} Last app's arguments
> ${CDR(start)} Time the call started.
> ${CDR(answer)} Time the call was answered.
> ${CDR(end)} Time the call ended.
> ${CDR(duration)} Duration of the call.
> ${CDR(billsec)} Duration of the call once it was answered.
> ${CDR(disposition)} ANSWERED, NO ANSWER, BUSY
> ${CDR(amaflags)} DOCUMENTATION, BILL, IGNORE etc
> ${CDR(accountcode)} The channel's account code (read-write).
> ${CDR(uniqueid)} The channel's unique id.
> ${CDR(userfield)} The channels uses specified field (read-write).
>
>
> In addition, you can set your own extra variables with a traditional
> Set(CDR(var)=val) to anything you want.
>
> *NOTE* Some CDR values (eg: duration & billsec) can't be accessed until
> the call has terminated. As of 91617<http://svn.digium.com/view/asterisk?view=rev&revision=91617>,
> 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.
>
>
Obrigado.
Era isto mesmo que estava querendo, havia tentado ${CDR(calldate)} mas não
deu em nada.


> _______________________________________________
> KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk.
> - Hardware com alta disponibilidade de recursos e qualidade KHOMP
> - Suporte técnico local qualificado e gratuito
> Conheça a linha completa de produtos KHOMP em www.khomp.com.br
> _______________________________________________
> Lista de discussões AsteriskBrasil.org
> AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>



-- 
Moisés Paes Sena <moises em oriontec.com.br>
(Desenvolvedor WEB)
Oriontec Automação Comercial
http://www.oriontec.com.br
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20100401/fb319b0d/attachment.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil