Search in sources :

Example 1 with ConfbridgeListAction

use of org.asteriskjava.manager.action.ConfbridgeListAction in project openmeetings by apache.

the class SipDao method countUsers.

public Integer countUsers(String confno) {
    if (confno == null) {
        return null;
    }
    ConfbridgeListAction da = new ConfbridgeListAction(confno);
    ResponseEvents r = execEvent(da);
    if (r != null) {
        log.debug("SipDao::countUsers size == " + r.getEvents().size());
        // "- 1" here means: ListComplete event
        return r.getEvents().size() - 1;
    }
    return 0;
}
Also used : ResponseEvents(org.asteriskjava.manager.ResponseEvents) ConfbridgeListAction(org.asteriskjava.manager.action.ConfbridgeListAction)

Aggregations

ResponseEvents (org.asteriskjava.manager.ResponseEvents)1 ConfbridgeListAction (org.asteriskjava.manager.action.ConfbridgeListAction)1