[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Sep 9 19:22:38 CDT 2010


branch "master" has been updated
       via  01b9798bd21ef0d8a6d08f61ec22b4566144553d (commit)
      from  c19285f87a3adf7bc919a02d3616d1ebde78206e (commit)

Summary of changes:
 local-slice/SipStateReplicationIf.ice |   48 +++++++++++++++++++++++++++-----
 1 files changed, 40 insertions(+), 8 deletions(-)


- Log -----------------------------------------------------------------
commit 01b9798bd21ef0d8a6d08f61ec22b4566144553d
Author: Mark Michelson <mmichelson at digium.com>
Date:   Thu Sep 9 19:23:40 2010 -0500

    Additional changes including adding semicolons and filling out TransactionState enum.

diff --git a/local-slice/SipStateReplicationIf.ice b/local-slice/SipStateReplicationIf.ice
index 7d9b970..01dd0a4 100644
--- a/local-slice/SipStateReplicationIf.ice
+++ b/local-slice/SipStateReplicationIf.ice
@@ -8,7 +8,21 @@ module SIP
 module V1
 {
 
-   class SipDialogDataItem
+   interface SipStateReplicator
+   {
+      void addListener(SipStateReplicatorListener);
+	  idempotent void removeListener(SipStateReplicatorListener);
+	  void setDataItems(SipStateItemSeq);
+	  idempotent void removeDataItems(SipStateItemSeq);
+	  SipStateItemSeq getDataItems(Ice::StringSeq);
+	  SipStateItemSeq getAllDataItems();
+   };
+
+   class SipStateItem
+   {
+   };
+
+   class SipDialogStateItem extends SipStateItem
    {
       string mCallId;
 	  bool mIsDialogEstablished;
@@ -21,14 +35,32 @@ module V1
 	  string mRemoteUri;
 	  Ice::StringSeq mRouteSet;
 	  string mTransport;
-   }
+   };
 
    enum TransactionState
    {
-      //Fill this in later
-   }
+      //This enumeration is based on the pjsip_tsx_state_e
+
+	  //Before any messages are sent. We'll likely not ever
+	  //have a transaction in this state, tbh.
+	  TRANSACTION_STATE_NULL,
+	  //As UAC, we have sent a request
+	  TRANSACTION_STATE_CALLING,
+	  //As UAS, We have received a request
+	  TRANSACTION_STATE_TRYING,
+	  //We have sent or received a provisional response
+	  TRANSACTION_STATE_PROCEEDING,
+	  //We have sent or received a final response
+	  TRANSACTION_STATE_COMPLETED,
+	  //As UAS, we have received an ACK
+	  TRANSACTION_STATE_CONFIRMED,
+	  //As UAS or UAC, before the transaction is destroyed
+	  TRANSACTION_STATE_TERMINATED,
+	  //As UAS or UAC, transaction has been destroyed
+	  TRANSACTION_STATE_DESTROYED,
+   };
 
-   class TransactionDataItem
+   class TransactionStateItem extends SipStateItem
    {
       string mBranch;
 	  TransactionState mCurrentState;
@@ -38,9 +70,9 @@ module V1
 	  //can be used to determine if we are awaiting a
 	  //message or are supposed to be sending one.
 	  bool mIsClient;
-   }
+   };
 
-   class SessionDataItem
+   class SessionStateItem extends SipStateItem
    {
       //XXX There probably needs to be a lot more specified
 	  //here, but frankly I have no clue.
@@ -48,7 +80,7 @@ module V1
       AsteriskSCF::Media::V1::StreamSinkSeq mSinks;
       AsteriskSCF::Media::V1::Session mMediaSession;
 	  AsteriskSCF::SessionCommunications::V1::SessionListenerSeq mListeners;
-   }
+   };
 
 }; //module V1
 }; //module SIP

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list