[asterisk-commits] file: branch group/pimp_my_sip r386345 - /team/group/pimp_my_sip/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 23 10:37:10 CDT 2013


Author: file
Date: Tue Apr 23 10:37:06 2013
New Revision: 386345

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=386345
Log:
If incoming SDP can not be handled send a 488, not a 500.

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

Modified: team/group/pimp_my_sip/res/res_sip_sdp_rtp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip_sdp_rtp.c?view=diff&rev=386345&r1=386344&r2=386345
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_sdp_rtp.c (original)
+++ team/group/pimp_my_sip/res/res_sip_sdp_rtp.c Tue Apr 23 10:37:06 2013
@@ -206,9 +206,6 @@
 		char usbuf[64], thembuf[64];
 
 		ast_rtp_codecs_payloads_destroy(&codecs);
-		if (session->channel) {
-			ast_channel_hangupcause_set(session->channel, AST_CAUSE_BEARERCAPABILITY_NOTAVAIL);
-		}
 
 		ast_getformatname_multiple(usbuf, sizeof(usbuf), caps);
 		ast_getformatname_multiple(thembuf, sizeof(thembuf), peer);

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=386345&r1=386344&r2=386345
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_session.c (original)
+++ team/group/pimp_my_sip/res/res_sip_session.c Tue Apr 23 10:37:06 2013
@@ -1171,10 +1171,10 @@
 
 	if ((sdp_info = pjsip_rdata_get_sdp_info(rdata)) && (sdp_info->sdp_err == PJ_SUCCESS) && sdp_info->sdp) {
 		if (handle_incoming_sdp(session, sdp_info->sdp)) {
-			if (pjsip_inv_initial_answer(inv_session, rdata, 500, NULL, NULL, &tdata) == PJ_SUCCESS) {
+			if (pjsip_inv_initial_answer(inv_session, rdata, 488, NULL, NULL, &tdata) == PJ_SUCCESS) {
 				ast_sip_session_send_response(session, tdata);
 			} else  {
-				pjsip_inv_terminate(inv_session, 500, PJ_TRUE);
+				pjsip_inv_terminate(inv_session, 488, PJ_TRUE);
 			}
 			return;
 		}




More information about the asterisk-commits mailing list