Search in sources :

Example 1 with IServiceCapableConnection

use of org.red5.server.api.service.IServiceCapableConnection in project bigbluebutton by bigbluebutton.

the class SipPhoneApplication method appJoin.

@Override
public boolean appJoin(IClient client, IScope scope) {
    loginfo("Red5SIP Client joined app " + client.getId());
    IConnection conn = Red5.getConnectionLocal();
    IServiceCapableConnection service = (IServiceCapableConnection) conn;
    return true;
}
Also used : IServiceCapableConnection(org.red5.server.api.service.IServiceCapableConnection) IConnection(org.red5.server.api.IConnection)

Example 2 with IServiceCapableConnection

use of org.red5.server.api.service.IServiceCapableConnection in project bigbluebutton by bigbluebutton.

the class VoiceConferenceApplication method appConnect.

@Override
public boolean appConnect(IConnection conn, Object[] params) {
    IServiceCapableConnection service = (IServiceCapableConnection) conn;
    log.debug("VoiceConferenceApplication appConnect[" + conn.getClient().getId() + "," + service + "]");
    return true;
}
Also used : IServiceCapableConnection(org.red5.server.api.service.IServiceCapableConnection)

Example 3 with IServiceCapableConnection

use of org.red5.server.api.service.IServiceCapableConnection in project bigbluebutton by bigbluebutton.

the class SipPhoneApplication method appConnect.

@Override
public boolean appConnect(IConnection conn, Object[] params) {
    IServiceCapableConnection service = (IServiceCapableConnection) conn;
    loginfo("Red5SIP Client connected " + conn.getClient().getId() + " service " + service);
    return true;
}
Also used : IServiceCapableConnection(org.red5.server.api.service.IServiceCapableConnection)

Example 4 with IServiceCapableConnection

use of org.red5.server.api.service.IServiceCapableConnection in project bigbluebutton by bigbluebutton.

the class VoiceConferenceApplication method login.

private void login(String obproxy, String uid, String phone, String username, String password, String realm, String proxy, int sipport, int rtpport) {
    System.out.println("Red5SIP login " + uid);
    IConnection conn = Red5.getConnectionLocal();
    IServiceCapableConnection service = (IServiceCapableConnection) conn;
    ConnectionClientMethodInvoker rtmpConnection = new ConnectionClientMethodInvoker(service, conn.getScope());
    String userid = getSipUserId();
    sipManager.createSipUser(userid, rtmpConnection, sipport, rtpport);
    sipManager.login(userid, obproxy, phone, username, password, realm, proxy);
}
Also used : ConnectionClientMethodInvoker(org.red5.app.sip.ConnectionClientMethodInvoker) IServiceCapableConnection(org.red5.server.api.service.IServiceCapableConnection) IConnection(org.red5.server.api.IConnection)

Aggregations

IServiceCapableConnection (org.red5.server.api.service.IServiceCapableConnection)4 IConnection (org.red5.server.api.IConnection)2 ConnectionClientMethodInvoker (org.red5.app.sip.ConnectionClientMethodInvoker)1