[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
Tue Aug 24 12:51:11 CDT 2010
branch "master" has been updated
via cc8b5223d7d4e1078bdd60e362f9b452cb951151 (commit)
from 24aeed2a0f96bc63db249280eaee7ac999d3fc78 (commit)
Summary of changes:
src/SipEndpoint.cpp | 10 ++++++++++
src/SipEndpoint.h | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit cc8b5223d7d4e1078bdd60e362f9b452cb951151
Author: Joshua Colp <jcolp at digium.com>
Date: Tue Aug 24 15:02:58 2010 -0300
Store some PJsip information in the endpoint since that is the common glue area between PJsip and our component.
diff --git a/src/SipEndpoint.cpp b/src/SipEndpoint.cpp
index 1c0cc53..c5fbd20 100644
--- a/src/SipEndpoint.cpp
+++ b/src/SipEndpoint.cpp
@@ -15,6 +15,16 @@ public:
bool call(const Core::Endpoint::V1::EndpointIdPtr& caller, const Core::Endpoint::V1::EndpointIdPtr& destination, const Hydra::Session::V1::SignalCallbackPtr& callback, const Ice::Current&)
{
+ // Create a UAC dialog for the outgoing call
+
+ // Produce SDP to attach to the outgoing INVITE
+
+ // Create an INVITE session
+
+ // Create the actual INVITE packet
+
+ // Boom! Houston, we have transmission.
+
//stub
//I'm not sure what this callback is supposed to do. Am
//I supposed to make an outgoing call? If so, what am
diff --git a/src/SipEndpoint.h b/src/SipEndpoint.h
index eb153bf..10148b0 100644
--- a/src/SipEndpoint.h
+++ b/src/SipEndpoint.h
@@ -7,6 +7,13 @@
#include <Session/SessionIf.h>
#include <Media/MediaIf.h>
+#include <pjsip.h>
+#include <pjmedia.h>
+#include <pjsip_ua.h>
+#include <pjsip_simple.h>
+#include <pjlib-util.h>
+#include <pjlib.h>
+
#include "SipEndpointFactory.h"
namespace Hydra
@@ -25,6 +32,26 @@ public:
void destroy();
+ /**
+ * Internal function which sets the PJsip dialog.
+ */
+ void setDialog(pjsip_dialog *dialog) { mDialog = dialog; };
+
+ /**
+ * Internal function which gets the PJsip dialog.
+ */
+ pjsip_dialog *getDialog() { return mDialog; };
+
+ /**
+ * Internal function which sets the PJsip INVITE session.
+ */
+ void setInviteSession(pjsip_inv_session *session) { mInviteSession = session; };
+
+ /**
+ * Internal function which gets the PJsip INVITE session.
+ */
+ pjsip_inv_session *getInviteSession() { return mInviteSession; };
+
private:
/**
* An instance of signal commands.
@@ -50,6 +77,16 @@ private:
* The endpoint factory that created us.
*/
boost::shared_ptr<SipEndpointFactory> mEndpointFactory;
+
+ /**
+ * PJsip dialog for this endpoint.
+ */
+ pjsip_dialog *mDialog;
+
+ /**
+ * PJsip INVITE session for this endpoint.
+ */
+ pjsip_inv_session *mInviteSession;
};
}; //End namespace SipChannelService
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list