Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

With the Asterisk Manager API (AMI) it's possible to accomplish a few operations on channels and on the conference room, but is it possible to get the statuses of all those operations at any given time?

For example, if I mute a channel, I get no result, which is ok, but since the admin can also control the channel via his/her phone, how can I get the status at any given time? I know I can get the status of who's talking using the meetme list command, but what about

  1. if the channel is locked / unlocked
  2. if a channel (user) is mute / unmute

Is it even possible?

Note : I also posted this question on SO, sorry for the duplicate

** Update **

2) one can know if a user is mute when listing users in a conference room. For example :

1!5551112222!MASKA***!SIP/Metaswitch-000xxxxx!1!!!!0!00:43:44
....
1!5551112222!MASKA***!SIP/Metaswitch-000xxxxx!1!!1!!-1!00:43:25    <-- mute

note: I still don't know what are all the fields in this response, does anybody know?

** Update **

It seems that meetme list should list all conferences, and probably return their status and all, unfortunately, Trixbox CE only support Aterisk 1.6.0.26 (so it seems) and there is a ticket describing that the last command is broken for that version. Seeing how often trixbox is updated, I don't expect a fix for that soon... we'll have to make do with what we got. Yet still, if anyone know some way around this to get the missing information, it would be much appreciated!

share|improve this question

2 Answers 2

there are AMI interface, which allow to listen to EVENTS.

so u can create listener and remember state.

also u can use

  meetme list concise conf_no

but sorry, i not remmember if it shwo muted state.

share|improve this answer
    
Thank you for your answer. yes, my last edits describe how it is possible to get mute states per users in a specified conference room. I was also considering events, however it is a PHP script that's connecting to AMI, and listening to events is not really workable without having a third party script that continually listens to the manager... So this is why having state on demand is highly if not the only preferable solution in our case at the moment. –  Yanick Rochon Jul 26 '11 at 1:47
    
i recomend use AMI. becuase "state on demand" become weird when load is hi. –  arheops Jul 26 '11 at 12:13

With a clear head this morning, I read the documentation once again. And finally tried the only command I haven't yet tried before

meetme

simply that returns all the active conferences, and

meetme concise

returns them all in a ! separated list. Problem solved!

Now, all I need to figure out is the AMI 3 seconds response delay problem...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.