Jonathan H
2020-Jun-13 09:11 UTC
[asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?
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 this. Any ideas?!? In case it helps and you're wondering why... 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 caller hangs up), and then rewrite and reload again when there's a new caller. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20200613/ddfe212f/attachment.html>
Steve Edwards
2020-Jun-13 15:55 UTC
[asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?
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 caller hangs up), and thenĀ > rewrite and reload again when there's a new caller.How about ARA to configure MOH and then just update the database. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST https://www.linkedin.com/in/steve-edwards-4244281
Possibly Parallel Threads
- Any api (agi/ari/ami) equivalent of "core show calls"?
- Any api (agi/ari/ami) equivalent of "core show calls"?
- Any api (agi/ari/ami) equivalent of "core show calls"?
- Any api (agi/ari/ami) equivalent of "core show calls"?
- Any api (agi/ari/ami) equivalent of "core show calls"?