public PortSipService() { mEngine = new PortSipLib(MainActivity.Instance); mEngine.SetPortSIPEventsCallback((PortSIP.IPortSIPEvents)sipevent); Console.WriteLine("PortSipService: {0} ", "Create Service"); }
public void HangupAllCalls(ref PortSipLib sipLib) { foreach (Session session in sessions) { if (session.SessionID > Session.INVALID_SESSION_ID) { sipLib.hangUp(session.SessionID); } } }
public void setConferenceVideoWindow(PortSipLib sipLib, PortSIPVideoRenderer renderer) { foreach (Session session in sessions) { if (session.state == CALL_STATE_FLAG.CONNECTED) { sipLib.setRemoteVideoWindow(session.SessionID, null); } } sipLib.setConferenceVideoWindow(renderer); }
public void AddActiveSessionToConfrence(PortSipLib sipLib) { foreach (Session session in sessions) { if (session.state == CALL_STATE_FLAG.CONNECTED) { sipLib.setRemoteVideoWindow(session.SessionID, null); sipLib.joinToConference(session.SessionID); sipLib.sendVideo(session.SessionID, true); } } }
public override void OnCreate() { base.OnCreate(); UseFrontCamera = true; Engine = new PortSipLib(this); }