Exemple #1
0
 /// <summary>
 /// Starts or stops listening procedure
 /// </summary>
 /// <param name="start">Set true to start listening, othewise set false</param>
 /// <returns>Success if signalling was enabled, otherwise appropriate return code</returns>
 public TSessionError ListenReq(bool start)
 {
     if (!CAPI_Interface.IsRegistered)
     {
         return(TSessionError.Session_NotRegistered);
     }
     ;
     if (C_ListenState.ListenActive)
     {
         return(TSessionError.Listen_ListenActive);
     }
     ;
     ListenState.start_listen = start;
     ListenState.SM_Listen(C_ListenState.Listen_Events.LISTEN_REQ);
     return(TSessionError.Success);
 }