[asterisk-users] Counting calls in progress from AMI

Julian Lyndon-Smith asterisk at dotr.com
Thu Oct 18 10:31:25 CDT 2012


core show calls

works for me on asterisk-11

I know it's a poll, but it's a very simple call ;)

On 18 October 2012 16:28, Mitul Limbani <mitul at enterux.in> wrote:
> I guess you are looking for event handler, which can be polled
> programatically n not via manual command entry?
>
> Mitul
>
> On Oct 18, 2012 8:53 PM, "Danny Nicholas" <danny at debsinc.com> wrote:
>>
>> The AMI Command function issues CLI commands, but carry on.
>>
>>
>>
>> From: asterisk-users-bounces at lists.digium.com
>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Michelle
>> Dupuis
>> Sent: Thursday, October 18, 2012 10:20 AM
>> To: Asterisk Users List
>> Subject: Re: [asterisk-users] Counting calls in progress from AMI
>>
>>
>>
>> I need to do this from the AMI (not the CLI)...I don't *think* a
>> comparable command exists from the AMI.
>>
>>
>>
>> As well, I don't want to poll the system for calls so I'm hoping to trap a
>> call bridged,unbridged type event.
>>
>>
>>
>> ________________________________
>>
>> From: asterisk-users-bounces at lists.digium.com
>> [asterisk-users-bounces at lists.digium.com] On Behalf Of Danny Nicholas
>> [danny at debsinc.com]
>> Sent: Thursday, October 18, 2012 10:59 AM
>> To: Asterisk Users List
>> Subject: Re: [asterisk-users] Counting calls in progress from AMI
>>
>> The simplest way to accurately do this would be to issue command “core
>> show channels verbose”
>>
>>
>>
>> From: asterisk-users-bounces at lists.digium.com
>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Michelle
>> Dupuis
>> Sent: Thursday, October 18, 2012 9:58 AM
>> To: Asterisk Users List
>> Subject: [asterisk-users] Counting calls in progress from AMI
>>
>>
>>
>> I want to track the number of calls up at any given time, through the AMI.
>> I found the Link and Unlink commands as the most likely candidates - is that
>> the right way?
>>
>>
>>
>> Also, a comment on the wiki suggests that Link may be called several times
>> for a single bridge if transcoding is required.  That blows up accuracy of
>> my count of course...
>>
>>
>>
>> Ideas?
>>
>>
>> --
>> _____________________________________________________________________
>> -- 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



-- 
Julian Lyndon-Smith
IT Director, Dot R Limited

"I don’t care if it works on your machine!  We are not shipping your machine!”

The kangaroo dances: http://www.youtube.com/watch?v=MAWl5iYOaUg



More information about the asterisk-users mailing list