Search code examples
node.jsexpressasteriskvoipfreepbx

Getting "Mute State" in ARI


Been fiddling around with ARI, node.js all that good stuff, but in my front end web application am having an issue with a visual bug every me I refresh the page all buttons go back to mute, so in order to set this right I had an Idea.

Simply pull out the mute state (if possible) to set the value in the front end, problem being is I don't know if its possible to get a mute state.

Anyone any guidance on this, been trying in the CLI and searching for commands which would help me and getting detail about the channel never states if a channel is muted or not.

Is it even possible to do this without using developed applications like fop/fop2 and just use the CLI/ARI to do this? Am still relatively new to ARI and asterisk.

EDIT: Tried various CLI Commands and it only gives state "Up" "down" when showing channels or channel.


Solution

  • Please check already developed projects like fop/fop2.

    Use core "show channels"&'sip show peers"/"iax2 show peers" to get current state.