public PortSipService()
        {
            mEngine = new PortSipLib(MainActivity.Instance);
            mEngine.SetPortSIPEventsCallback((PortSIP.IPortSIPEvents)sipevent);

            Console.WriteLine("PortSipService: {0} ", "Create Service");
        }
Example #2
0
 public void HangupAllCalls(ref PortSipLib sipLib)
 {
     foreach (Session session in sessions)
     {
         if (session.SessionID > Session.INVALID_SESSION_ID)
         {
             sipLib.hangUp(session.SessionID);
         }
     }
 }
Example #3
0
 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);
 }
Example #4
0
 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);
         }
     }
 }
Example #5
0
 public override void OnCreate()
 {
     base.OnCreate();
     UseFrontCamera = true;
     Engine         = new PortSipLib(this);
 }