예제 #1
0
        /// <summary>
        /// This will be called when a message-summary notification received fromt the PBX.
        /// </summary>
        void MWISubscription_NotificationReceived(object sender, SIPEventNotificationArgs e)
        {
            var subscription = sender as ISIPSubscription;

            if (subscription == null)
            {
                return;
            }

            var line = subscription.Owner as IPhoneLine;

            if (line == null)
            {
                return;
            }

            line.CustomProperties.AddOrUpdate("MessageSummary", e.MessageSummary);

            OnMessageSummaryReceived(new MessageSummaryArgs(line, e.MessageSummary));
        }
        /// <summary>
        /// This will be called when a message-summary notification received fromt the PBX.
        /// </summary>
        void MWISubscription_NotificationReceived(object sender, SIPEventNotificationArgs e)
        {
            var subscription = sender as ISIPSubscription;
            if (subscription == null)
                return;

            var line = subscription.Owner as IPhoneLine;
            if (line == null)
                return;

            line.CustomProperties.AddOrUpdate("MessageSummary", e.MessageSummary);

            OnMessageSummaryReceived(new MessageSummaryArgs(line, e.MessageSummary));
        }