[asterisk-scf-commits] asterisk-scf/integration/slice.git branch "dtmf" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Mon Aug 8 17:06:43 CDT 2011


branch "dtmf" has been updated
       via  e449cfaa1657a1299e3312a6ad5a5a4e2b6e1b0f (commit)
       via  8c7018ca46f1c84877a451dacadcb8c3fee5ec01 (commit)
      from  5be6e80e1297b54417fbe4e397c6e1a001dff0f7 (commit)

Summary of changes:
 .../Formats/{AudioFormats.ice => OtherFormats.ice} |   35 +---
 slice/AsteriskSCF/Media/MediaIf.ice                |    8 +
 .../SessionCommunicationsIf.ice                    |  186 --------------------
 .../SessionCommunications/TelephonyEventsIf.ice    |   17 ++-
 4 files changed, 34 insertions(+), 212 deletions(-)
 copy slice/AsteriskSCF/Media/Formats/{AudioFormats.ice => OtherFormats.ice} (56%)


- Log -----------------------------------------------------------------
commit e449cfaa1657a1299e3312a6ad5a5a4e2b6e1b0f
Author: Mark Michelson <mmichelson at digium.com>
Date:   Mon Aug 8 17:07:22 2011 -0500

    Add DTMF continuation event.

diff --git a/slice/AsteriskSCF/SessionCommunications/TelephonyEventsIf.ice b/slice/AsteriskSCF/SessionCommunications/TelephonyEventsIf.ice
index 11acb78..ee7bc68 100644
--- a/slice/AsteriskSCF/SessionCommunications/TelephonyEventsIf.ice
+++ b/slice/AsteriskSCF/SessionCommunications/TelephonyEventsIf.ice
@@ -40,6 +40,21 @@ module V1
     };
 
     /**
+     * Indicates the continuation of a DTMF press.
+     */
+    unsliceable class ContinueDTMFEvent extends TelephonyEvent
+    {
+        /**
+         * The ASCII value of the DTMF that is being pressed.
+         */
+        byte signal;
+        /**
+         * The cumulative duration of the DTMF press in milliseconds.
+         */
+        int duration;
+    };
+
+    /**
      * Indicates the end of a DTMF press.
      *
      * With certain methods of conveying DTMF, such as SIP INFO,
@@ -53,7 +68,7 @@ module V1
          */
         byte signal;
         /**
-         * The duration of the key press in milliseconds.
+         * The total duration of the key press in milliseconds.
          */
         int duration;
     };

commit 8c7018ca46f1c84877a451dacadcb8c3fee5ec01
Author: Mark Michelson <mmichelson at digium.com>
Date:   Fri Aug 5 09:33:17 2011 -0500

    Add an RFC 4733 format.

diff --git a/slice/AsteriskSCF/Media/Formats/OtherFormats.ice b/slice/AsteriskSCF/Media/Formats/OtherFormats.ice
new file mode 100644
index 0000000..bc10658
--- /dev/null
+++ b/slice/AsteriskSCF/Media/Formats/OtherFormats.ice
@@ -0,0 +1,52 @@
+/*
+ * Asterisk SCF -- An open-source communications framework.
+ *
+ * Copyright (C) 2011, Digium, Inc.
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk SCF project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE.txt file
+ * at the top of the source tree.
+ */
+
+#include <AsteriskSCF/Media/MediaIf.ice>
+
+module AsteriskSCF
+{
+
+module Media
+{
+
+module Formats
+{
+
+module Other
+{
+
+["suppress"]
+module V1
+{
+
+/**
+ * RFC 4733 telephone event audio format
+ */
+unsliceable class RFC4733 extends AsteriskSCF::Media::V1::TelephoneEventFormat
+{
+    //XXX Are there any parameters we'd want to put here? Like the events
+    //we support?
+};
+
+}; /*  end module V1 */
+
+}; /*  end module Other */
+
+}; /*  end module Formats */
+
+}; /*  end module Media */
+
+}; /*  end module AsteriskSCF */
diff --git a/slice/AsteriskSCF/Media/MediaIf.ice b/slice/AsteriskSCF/Media/MediaIf.ice
index f9bb522..8acc4dc 100644
--- a/slice/AsteriskSCF/Media/MediaIf.ice
+++ b/slice/AsteriskSCF/Media/MediaIf.ice
@@ -464,6 +464,14 @@ module V1
         int maximumBitrate;
     };
 
+    /**
+     * An additional format class which is provided for telephone events
+     */
+    class TelephoneEventFormat extends Format
+    {
+        //XXX Anything we need to define for this??
+    };
+
 }; /*  end module V1 */
 
 }; /*  end module Media */
diff --git a/slice/AsteriskSCF/SessionCommunications/SessionCommunicationsIf.ice b/slice/AsteriskSCF/SessionCommunications/SessionCommunicationsIf.ice
index 07f2ead..1f16f64 100644
--- a/slice/AsteriskSCF/SessionCommunications/SessionCommunicationsIf.ice
+++ b/slice/AsteriskSCF/SessionCommunications/SessionCommunicationsIf.ice
@@ -567,192 +567,6 @@ module V1
      */
     interface TelephonySession extends Session
     {
-        TelephonyEventsSourceSeq getSources();
-        TelephonyEventsSinkSeq getSinks();
-    };
-
-    unsliceable class TelephonyEvent
-    {
-    };
-
-    unsliceable class BeginDTMFEvent extends TelephonyEvent
-    {
-        byte digit;
-    };
-
-    unsliceable class EndDTMFEvent extends TelephonyEvent
-    {
-        byte digit;
-        int duration;
-    };
-
-    interface TelephonyEventSink;
-    sequence<TelephonyEventSink> TelephonyEventSinkSeq;
-
-    /**
-     * A source for telephony events
-     */
-    interface TelephonyEventSource
-    {
-        /**
-         * Add a new sink to send telephony events to
-         */
-        idempotent void addSink(TelephonyEventSink* sink);
-        /**
-         * Get a list of the sinks to which this source sends events
-         */
-        idempotent TelephonyEventSinkSeq getSinks();
-    };
-
-    sequence<TelephonyEventSource> TelephonyEventSourceSeq;
-
-    /**
-     * A place to send telephony events
-     */
-    interface TelephonyEventSink
-    {
-        /**
-         * Send a telephony event to this sink
-         */
-        void write(TelephonyEvent event);
-        /**
-         * Set the source for this sink
-         */
-        idempotent void setSource(TelephonyEventSource* source);
-        /**
-         * Get the source for this sink
-         */
-        idempotent TelephonyEventSource* getSource();
-    };
-
-    /**
-     * A telephony session is a session that is with a telephone or telephone
-     * network. It has events associated with it that do not occur with other types
-     * of sessions.
-     */
-    interface TelephonySession extends Session
-    {
-        TelephonyEventSourceSeq getSources();
-        TelephonyEventSinkSeq getSinks();
-    };
-
-    unsliceable class TelephonyEvent
-    {
-    };
-
-    unsliceable class BeginDTMFEvent extends TelephonyEvent
-    {
-        byte digit;
-    };
-
-    unsliceable class EndDTMFEvent extends TelephonyEvent
-    {
-        byte digit;
-        int duration;
-    };
-
-    interface TelephonyEventsSource
-    {
-        idempotent void addSink(TelephonyEventsSink* sink);
-        idempotent TelephonyEventSink* getSinks();
-    };
-
-    interface TelephonyEventsSink
-    {
-        void write(TelephonyEvent event);
-        idempotent void setSource(TelephonyEventsSource* source);
-        idempotent TelephonyEventsSource* getSource();
-    };
-
-    /**
-     * A telephony session is a session that is with a telephone or telephone
-     * network. It has events associated with it that do not occur with other types
-     * of sessions.
-     */
-    interface TelephonySession extends Session
-    {
-        /**
-         * Get a sequence of the telephony event sources for this session
-         */
-        ["amd"] TelephonyEventSourceSeq getSources();
-        /**
-         * Get a sequence of the telephony event sinks for this session
-         */
-        ["amd"] TelephonyEventSinkSeq getSinks();
-    };
-
-    unsliceable class TelephonyEvent
-    {
-    };
-
-    unsliceable class BeginDTMFEvent extends TelephonyEvent
-    {
-        byte digit;
-    };
-
-    unsliceable class EndDTMFEvent extends TelephonyEvent
-    {
-        byte digit;
-        int duration;
-    };
-
-    interface TelephonyEventSink;
-    sequence<TelephonyEventSink> TelephonyEventSinkSeq;
-
-    /**
-     * A source for telephony events
-     */
-    interface TelephonyEventSource
-    {
-        /**
-         * Add a new sink to send telephony events to
-         */
-        idempotent void addSink(TelephonyEventSink* sink);
-        /**
-         * Get a list of the sinks to which this source sends events
-         */
-        idempotent TelephonyEventSinkSeq getSinks();
-    };
-
-    sequence<TelephonyEventSource> TelephonyEventSourceSeq;
-
-    /**
-     * A place to send telephony events
-     */
-    interface TelephonyEventSink
-    {
-        /**
-         * Send a telephony event to this sink
-         */
-        void write(TelephonyEvent event);
-        /**
-         * Set the source for this sink
-         */
-        idempotent void setSource(TelephonyEventSource* source);
-        /**
-         * Get the source for this sink
-         */
-        idempotent TelephonyEventSource* getSource();
-    };
-
-    /**
-     * A telephony session is a session that is with a telephone or telephone
-     * network. It has events associated with it that do not occur with other types
-     * of sessions.
-     */
-    interface TelephonySession extends Session
-    {
-        TelephonyEventSourceSeq getSources();
-        TelephonyEventSinkSeq getSinks();
-    };
-
-    /**
-     * A telephony session is a session that is with a telephone or telephone
-     * network. It has events associated with it that do not occur with other types
-     * of sessions.
-     */
-    interface TelephonySession extends Session
-    {
         /**
          * Get a sequence of the telephony event sources for this session
          */

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/slice.git



More information about the asterisk-scf-commits mailing list