[Asterisk-cvs] asterisk/channels chan_sip.c,1.732,1.733

kpfleming at lists.digium.com kpfleming at lists.digium.com
Sun May 15 00:12:13 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv1344/channels

Modified Files:
	chan_sip.c 
Log Message:
code formatting cleanup (bug #4213)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.732
retrieving revision 1.733
diff -u -d -r1.732 -r1.733
--- chan_sip.c	15 May 2005 04:11:01 -0000	1.732
+++ chan_sip.c	15 May 2005 04:17:42 -0000	1.733
@@ -155,6 +155,26 @@
 	{ SIP_PUBLISH,	 NO_RTP, "PUBLISH" }
 };
 
+/* Structure for conversion between compressed SIP and "normal" SIP */
+static struct cfalias {
+	char *fullname;
+	char *shortname;
+} aliases[] = {
+	{ "Content-Type", "c" },
+	{ "Content-Encoding", "e" },
+	{ "From", "f" },
[...1515 lines suppressed...]
-			if (!p->vad) {
-				p->vad = ast_dsp_new();
-				ast_dsp_set_features(p->vad, DSP_FEATURE_DTMF_DETECT);
-			}
-		} else {
-			if (p->vad) {
-				ast_dsp_free(p->vad);
-				p->vad = NULL;
-			}
+	} else {
+		if (p->vad) {
+			ast_dsp_free(p->vad);
+			p->vad = NULL;
 		}
-		ast_mutex_unlock(&p->lock);
 	}
+	ast_mutex_unlock(&p->lock);
 	ast_mutex_unlock(&chan->lock);
 	return 0;
 }




More information about the svn-commits mailing list