Example #1
0
        private void _connectionsManager_OnCommandRecieved(object sender, RemoteUserCommandEventArgs e)
        {
            switch (e.Command.Name)
            {
            case CommandName.Register:
                HandleRegistration(e.RemoteUser, e.Command);
                break;

            case CommandName.Authentication:
                HandleAuthentication(e.RemoteUser, e.Command);
                break;
            }
        }
Example #2
0
        private void _connectionsManager_OnCommandRecieved(object sender, RemoteUserCommandEventArgs e)
        {
            switch (e.Command.Name)
            {
            case CommandName.Dial:
                HandleDial(e.Command, e.RemoteUser);
                break;

            case CommandName.VoicePacket:
                HandleVoicePacket(e.Command, e.RemoteUser);
                break;

            case CommandName.EndCall:
                HandleEndCall(e.Command, e.RemoteUser);
                break;
            }
        }