[asterisk-commits] mmichelson: branch group/pimp_my_sip r379380 - /team/group/pimp_my_sip/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 17 10:40:05 CST 2013


Author: mmichelson
Date: Thu Jan 17 10:40:01 2013
New Revision: 379380

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=379380
Log:
Change handle_sdp() stub to take a session. Change error response to a 488


Modified:
    team/group/pimp_my_sip/res/res_sip_session.c

Modified: team/group/pimp_my_sip/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip_session.c?view=diff&rev=379380&r1=379379&r2=379380
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_session.c (original)
+++ team/group/pimp_my_sip/res/res_sip_session.c Thu Jan 17 10:40:01 2013
@@ -135,7 +135,7 @@
 	ao2_callback_data(sdp_handlers, OBJ_KEY | OBJ_UNLINK | OBJ_NODATA, remove_handler, (void *)stream_type, handler);
 }
 
-static int handle_sdp(pjsip_rx_data *rdata)
+static int handle_sdp(struct ast_sip_session *session, pjsip_rx_data *rdata)
 {
 	/*XXX STUB
 	 * This function will need to first check if there is an SDP. If so,
@@ -505,14 +505,14 @@
 			supplement->incoming_request(session, rdata);
 		}
 	}
-	if (handle_sdp(rdata)) {
+	if (handle_sdp(session, rdata)) {
 		/* Dangit. After all that, we have to reject the call */
-		if (pjsip_inv_end_session(inv_session, 403, NULL, &tdata) == PJ_SUCCESS) {
+		if (pjsip_inv_end_session(inv_session, 488, NULL, &tdata) == PJ_SUCCESS) {
 			/*XXX Should replace this with res_sip or res_sip_session call */
 			pjsip_inv_send_msg(inv_session, tdata);
 		} else {
 			/*XXX Should replace this with res_sip or res_sip_session call */
-			pjsip_inv_terminate(inv_session, 403, PJ_FALSE);
+			pjsip_inv_terminate(inv_session, 488, PJ_FALSE);
 		}
 		return;
 	}




More information about the asterisk-commits mailing list