Re: [asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

2020-06-16 Thread Bruce Ferrell
On 6/14/20 4:52 PM, Antony Stone wrote: On Monday 15 June 2020 at 00:41:14, Bruce Ferrell wrote: Way back in the mists of time, I built my asterisk installation with SNMP support. Heh... I never even knew that was possible :) That said, I actually prefer ARA/ARI to flat file configuration

Re: [asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

2020-06-14 Thread Antony Stone
On Monday 15 June 2020 at 00:41:14, Bruce Ferrell wrote: > Way back in the mists of time, I built my asterisk installation with SNMP > support. Heh... I never even knew that was possible :) > That said, I actually prefer ARA/ARI to flat file configuration of endpoints > and dialplans. Changes

Re: [asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

2020-06-14 Thread Bruce Ferrell
. *From:*asterisk-users [mailto:asterisk-users-boun...@lists.digium.com] *On Behalf Of *Jonathan H *Sent:* Sunday, June 14, 2020 5:45 PM *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* Re: [asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

Re: [asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

2020-06-14 Thread Telium Technical Support
List - Non-Commercial Discussion Subject: Re: [asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"? Wow! I've been *-ing for about 6 years and had literally no idea about that! I can see a way I could put it to a different use, but it seems to be a bit of a sl

Re: [asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

2020-06-14 Thread Jonathan H
Wow! I've been *-ing for about 6 years and had literally no idea about that! I can see a way I could put it to a different use, but it seems to be a bit of a sledgehammer to crack the walnut of "how many current callers" compared to one line of (albeit hacky) dialplan. That's making me sound

Re: [asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

2020-06-14 Thread Steve Edwards
On Sun, 14 Jun 2020, Jonathan H wrote: Thank you... but "just update the database" - hmm, what database? I used MySQL. Did you mean ARI? I still can't find the command! The asterisk wiki is somewhat, um... spread around! ARA as in Asterisk RealTime Architecture

Re: [asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

2020-06-14 Thread Jonathan H
Thank you... but "just update the database" - hmm, what database? Did you mean ARI? I still can't find the command! The asterisk wiki is somewhat, um... spread around! On Sat, 13 Jun 2020 at 16:56, Steve Edwards wrote: > > On Sat, 13 Jun 2020, Jonathan H wrote: > > > I need to ensure that a

Re: [asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

2020-06-13 Thread Steve Edwards
On Sat, 13 Jun 2020, Jonathan H wrote: I need to ensure that a MusicOnHold stream is only running when there's a caller on hold and listening.To do that, I need to rewrite and reload the moh.conf file when the caller hangs up IF there are no other callers (ie there's just 1 active call as the

[asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

2020-06-13 Thread Jonathan H
I'm parsing ` sudo asterisk -rx "core show calls" | grep active | head -c 1 ` as an external call from within the Asterisk dialplan then passing it to agi, but this seems really hacky and ugly. However, I cannot find any ARI/AGI/AMI function (or global variable I can get with agi) which shows me