[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
Wed Aug 25 14:24:14 CDT 2010
branch "master" has been updated
via d29daf49a224c41dfa718b185667ba422b7fb327 (commit)
from d9c7905edd783fbbc5914ce01f526db985a81e00 (commit)
Summary of changes:
src/SipEndpoint.cpp | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit d29daf49a224c41dfa718b185667ba422b7fb327
Author: Joshua Colp <jcolp at digium.com>
Date: Wed Aug 25 16:36:11 2010 -0300
Store the endpoint away on the dialog mod_data so it can be used over in pjsip land.
diff --git a/src/SipEndpoint.cpp b/src/SipEndpoint.cpp
index 1b3b7d4..743f421 100644
--- a/src/SipEndpoint.cpp
+++ b/src/SipEndpoint.cpp
@@ -3,6 +3,7 @@
#include "SipEndpoint.h"
#include "SipChannelServiceDataModel.h"
+#include "PJSipManager.h"
namespace Hydra
{
@@ -34,6 +35,16 @@ public:
return false;
}
+ // Record our endpoint within the dialog so code handling pjsip events can do STUFF
+ Hydra::Core::Endpoint::V1::BaseEndpointPtr *baseendpoint = new Hydra::Core::Endpoint::V1::BaseEndpointPtr(Hydra::Core::Endpoint::V1::BaseEndpointPtr::dynamicCast(mEndpoint));
+ PJSipManager *manager = PJSipManager::getInstance();
+ pjsip_module *module = manager->getSessionModule();
+ if (module == NULL)
+ {
+ std::cerr << "[WARNING] Um, couldn't get the module from the PJSipManger??" << std::endl;
+ }
+ dialog->mod_data[module->id] = (void *)baseendpoint;
+
// Since the SDP generation requires a pool we use the dialog one, so it has to be set here
mEndpoint->setDialog(dialog);
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list