[asterisk-commits] branch oej/sdpcleanup r32139 - /team/oej/sdpcleanup/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jun 4 14:14:38 MST 2006


Author: oej
Date: Sun Jun  4 16:14:38 2006
New Revision: 32139

URL: http://svn.digium.com/view/asterisk?rev=32139&view=rev
Log:
Update

Modified:
    team/oej/sdpcleanup/channels/chan_sip.c

Modified: team/oej/sdpcleanup/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/oej/sdpcleanup/channels/chan_sip.c?rev=32139&r1=32138&r2=32139&view=diff
==============================================================================
--- team/oej/sdpcleanup/channels/chan_sip.c (original)
+++ team/oej/sdpcleanup/channels/chan_sip.c Sun Jun  4 16:14:38 2006
@@ -2909,8 +2909,11 @@
 		return 0;
 	}
 	/* If the call is not UP, we need to send CANCEL instead of BYE */
-	if (ast->_state != AST_STATE_UP)
+	if (ast->_state != AST_STATE_UP) {
 		needcancel = TRUE;
+		if (option_debug > 3)
+			ast_log(LOG_DEBUG, "Hanging up channel in state %s\n", ast_state2str(ast->_state));
+	}
 
 	/* Disconnect */
 	p = ast->tech_pvt;
@@ -5164,7 +5167,7 @@
 	snprintf(s, sizeof(s), "s=session\r\n");
 	snprintf(c, sizeof(c), "c=IN IP4 %s\r\n", ast_inet_ntoa(iabuf, sizeof(iabuf), dest.sin_addr));
 	if (needvideo)
-	snprintf(t, sizeof(t), "t=0 0\r\n");
+		snprintf(t, sizeof(t), "t=0 0\r\n");
 
 	ast_build_string(&m_audio_next, &m_audio_left, "m=audio %d RTP/AVP", ntohs(dest.sin_port));
 	ast_build_string(&m_video_next, &m_video_left, "m=video %d RTP/AVP", ntohs(vdest.sin_port));
@@ -13644,8 +13647,7 @@
 		if (ext) {
 			*ext++ = '\0';
 			host = tmp;
-		}
-		else {
+		} else {
 			host = tmp;
 			ext = NULL;
 		}



More information about the asterisk-commits mailing list