QueueStatusAction (Asterisk-Java 1.0.0.CI-SNAPSHOT API)

I am using this library with asterisk, i want to get the QueueStatusAction but some how it isnt wotking. ''I am using this library with GRAILS"

/*
start of the code
*/
import java.io.IOException;
import org.asteriskjava.live.internal.AsteriskServerImpl
import org.asteriskjava.manager.ManagerConnection
import org.asteriskjava.manager.ManagerConnectionFactory
import org.asteriskjava.manager.ManagerEventListener
import org.asteriskjava.manager.action.GetVarAction
import org.asteriskjava.manager.action.HangupAction
import org.asteriskjava.manager.action.OriginateAction
import org.asteriskjava.manager.action.QueueAddAction
import org.asteriskjava.manager.action.QueuePauseAction
import org.asteriskjava.manager.action.QueueRemoveAction
import org.asteriskjava.manager.action.QueueStatusAction
import org.asteriskjava.manager.event.ManagerEvent
import org.asteriskjava.manager.event.VarSetEvent
import org.asteriskjava.manager.response.ManagerResponse



def
queueStatus(String queueNumber, String channel){

try{
//QueueAddAction queueAddAction;
QueueStatusAction queueStatusAction;
ManagerResponse originateResponse;

queueStatusAction = new QueueStatusAction()
queueStatusAction.setQueue(queueNumber)
queueStatusAction.setInterface("SIP/" + channel)
queueStatusAction.setPaused(false)
queueStatusAction.setPenalty(0)

originateResponse = managerConnection.sendAction(queueStatusAction, 30000)

// print out whether the originate succeeded or not
println originateResponse.getMessage()

}catch(Exception e){
println e
}
}

 

1 answer

0 votes
Daniel Wester Community Champion Jul 04, 2017

If you can tell us how this is related to Atlassian software it would be useful. Otherwise you may want to look around for asterix forums?

In the asterisk it said this was a forum.....???

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,137 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you