[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 30 14:02:44 CDT 2010


branch "master" has been updated
       via  193e143f766302a60c649d19a8d8ee8dcba71ff1 (commit)
      from  52fb14fd606c015060c80dc7a5d54f6c125728d3 (commit)

Summary of changes:
 src/PJSipSessionModule.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit 193e143f766302a60c649d19a8d8ee8dcba71ff1
Author: Joshua Colp <jcolp at digium.com>
Date:   Thu Sep 30 16:05:16 2010 -0300

    Fill in callback which populates an answer SDP when presented with an offer. This is required for hold to function. Note: The prepared SDP is not quite proper, yet. But it works!

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 726cb69..a89ccab 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -728,7 +728,8 @@ static void invOnTransactionStateChanged(pjsip_inv_session *inv, pjsip_transacti
 
 static void invOnReceiveOffer(pjsip_inv_session *inv, const pjmedia_sdp_session *offer)
 {
-	//stub
+   PJSipSessionModInfo *session_mod_info = (PJSipSessionModInfo*)inv->mod_data[SipChannelServiceDataModel::getInstance().getPJSipManager()->getSessionModule()->id];
+   pjsip_inv_set_sdp_answer(inv, session_mod_info->getSessionPtr()->createSDPOffer());
 }
 
 static void invOnCreateOffer(pjsip_inv_session *inv, pjmedia_sdp_session **p_offer)

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list