Quantcast
Channel: General Help - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 12605

Hints and Call Flow Control toggles via AMI

$
0
0

@zirophyz wrote:

Hi guys,

Apologies if this is a little off-topic but I'd like to get input from people here regards something I am working on, whether I am going in the right direction or whether there are better ways of going about this.

I'd like to put together a portal of sorts, and starting with something simple - seeing extension state and call flow control toggle states, and toggling that CFC state.

Starting with the CFC toggle, which I'd ultimately like to be able to toggle via a web page. First, I am trying to find out a method of toggling and checking state from an external program (probably python to begin with, but that's completely off-topic and I don't need to cover that here).

I am looking at the Asterisk Manager Interface to achieve this - and this is where I get a little stuck.

  1. There doesn't seem to be a way to check dialplan hints from the AMI interface? Unless, this is the correct way of doing it;
    Action: Command
    Command: core show hint *280
    This will give me a result that could be parsed with some Regex.
  2. How about toggling the CFC state? Getting stuck here. Was mucking around with Action: SetVar but I don't think this is right? When I watch a handset toggle the code in AMI, then yeah, this is where I saw the VarSet Event, leading me to investigate SetVar Action as a method.
  3. And finally - am I just going about this wrong? Ideally, when I've worked out the method for the above, then I will start writing something to do said method, and language of choice will be Python currently. I believe there are modules/libraries that will ease all of this (StarPy) - but if there is something completely different then maybe I should be on that path.

Apologies if this was vague or doesn't make sense. I am by no means any sort of developer so there is a bit of a learning curve involved for me...

Thanks for any help!

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 12605

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>