Ejemplo n.º 1
0
        void OnCallStatusChange(Call call, CallInfoChangeNotificationSource source)
        {
            try
            {
                if (CallStatusChange != null && !call.Ghost)
                {
                    CallStatusChange(Codec, new CodecCallInfoChangeEventArgs(call, source));
                }
            }
            catch (Exception e)
            {
                ErrorLog.Exception("Error calling event at OnCallStatusChange", e);
            }

#if DEBUG
            string statusInfo = string.Format("Call ID {0} Status Updated from {3}, Name: {1} Status: {2}",
                                              call.ID, call.DisplayName, call.Status, source);
            CrestronConsole.PrintLine(statusInfo);
            ErrorLog.Notice(statusInfo);
#endif

            this.Codec.FusionUpdate();
        }
Ejemplo n.º 2
0
 internal CodecCallInfoChangeEventArgs(Call call, CallInfoChangeNotificationSource source)
 {
     this.Call = call;
     this.NotificationSource = source;
 }