[asterisk-users] AMI and CDR(answer)
Murthy Gandikota
mgandikota at nts.net
Wed Oct 15 16:31:53 CDT 2014
I traced CDR(disposition) which was set to "NO ANSWER". Apparently AMI
works the opposite of AGI in this case.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Murthy
Gandikota
Sent: Wednesday, October 15, 2014 1:08 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] AMI and CDR(answer)
Hi Mathew
The channel was answered. I have a small AGI script that would call the
getFullVariable("${CDR(answer)}") method in Java and print a Date/Time
string. When the AMI connection was on, a sound file is being played on.
May be you can help me in a different way. My goal is to obtain the
Date/Time when the caller was answered using "answer()" in the dialplan.
More specifically, when the NewChannelEvent is generated. I know I can
create a dialplan variable with strftime. But I would rather take
advantage of the built-in readonly Asterisk variables before trying that
route.
I am grateful for your response and would appreciate additional help.
Thanks
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Matthew
Jordan
Sent: Wednesday, October 15, 2014 12:41 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] AMI and CDR(answer)
On Wed, Oct 15, 2014 at 1:44 PM, Murthy Gandikota <mgandikota at nts.net>
wrote:
> Hi All
>
>
>
> I am unable to obtain CDR(answer) in AMI.
>
>
>
> Tried the following:
>
>
>
> $ telnet 127.0.0.1 5038
>
> Trying 127.0.0.1...
>
> Connected to localhost.
>
> Escape character is '^]'.
>
> Asterisk Call Manager/1.0
>
>
>
> Action: Login
>
> ActionID: 1
>
> Username: admin
>
> Secret: secret5
>
>
>
> Action: Getvar
>
> Channel: xxx
>
> Variable: CDR(start)
>
>
>
> Response: Success
>
> Variable: CDR(start)
>
> Value: 2014-10-15 11:35:37
>
>
>
> Action: Getvar
>
> Channel: xxx
>
> Variable: CDR(answer)
>
>
>
> Response: Success
>
> Variable: CDR(answer)
>
> Value:
>
>
Are you sure the channel is answered?
--
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
--
_____________________________________________________________________
-- 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
--
_____________________________________________________________________
-- 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
More information about the asterisk-users
mailing list