[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 Aug 26 09:22:43 CDT 2010


branch "master" has been updated
       via  3c4289a94f197f6cdc69f43e58b0bc0eac05596b (commit)
      from  d49283c4f8a5366fe30a2a5a33900d7e69742967 (commit)

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


- Log -----------------------------------------------------------------
commit 3c4289a94f197f6cdc69f43e58b0bc0eac05596b
Author: Joshua Colp <jcolp at digium.com>
Date:   Thu Aug 26 11:34:44 2010 -0300

    Add handlers for 180 and 200.

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index c93bcb0..4a0e052 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -241,6 +241,7 @@ static void handle_invite_response(pjsip_rx_data *rdata, pjsip_dialog *dlg)
 		//We'll need to get the caller endpoint and call his
 		//signalcallback's ring()
 		std::cout << "[DEBUG] Got 180 response" << std::endl;
+		(*endpoint)->getSignalCallback()->ring((*endpoint)->getSessionEndpoint()->id);
 	}
 	else if (respCode == 183)
 	{
@@ -253,6 +254,7 @@ static void handle_invite_response(pjsip_rx_data *rdata, pjsip_dialog *dlg)
 		//We'll need to get the caller endpoint and call his
 		//signalcallback's connected()
 		std::cout << "[DEBUG] Got 200 response" << std::endl;
+		(*endpoint)->getSignalCallback()->connected((*endpoint)->getSessionEndpoint()->id);
 	}
 	else if (respCode >= 400)
 	{

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list