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;
}
Aggregations