[asterisk-commits] branch oej/02-labarea r20846 - /team/oej/02-labarea/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Apr 17 01:27:22 MST 2006


Author: oej
Date: Mon Apr 17 03:27:18 2006
New Revision: 20846

URL: http://svn.digium.com/view/asterisk?rev=20846&view=rev
Log:
Hmm. disabling stuff

Modified:
    team/oej/02-labarea/channels/chan_sip.c

Modified: team/oej/02-labarea/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/oej/02-labarea/channels/chan_sip.c?rev=20846&r1=20845&r2=20846&view=diff
==============================================================================
--- team/oej/02-labarea/channels/chan_sip.c (original)
+++ team/oej/02-labarea/channels/chan_sip.c Mon Apr 17 03:27:18 2006
@@ -3419,11 +3419,17 @@
 	char *tag = "";	/* note, tag is never NULL */
 	char totag[128];
 	char fromtag[128];
+
 	req->callid = get_header(req, "Call-ID");
 	req->from = get_header(req, "From");
 	req->to = get_header(req, "To");
 	req->cseq = get_header(req, "Cseq");
 	req->via = get_header(req, "Via");
+
+	//SKREP
+	ast_log(LOG_DEBUG, "---Find_call::: Call-ID: %s\n", req->callid);
+	ast_log(LOG_DEBUG, "---Find_call::: From: %s\n", req->from);
+	ast_log(LOG_DEBUG, "---Find_call::: Cseq: %s\n", req->cseq);
 
 	if (!req->callid || !req->to || !req->from || !req->cseq)	/* Call-ID, to, from and Cseq are required by RFC 3261. (Max-forwards and via too - ignored now) */
 		return NULL;	/* Invalid packet */
@@ -4278,9 +4284,9 @@
 	copy_via_headers(p, resp, req, "Via");
 	if (msg[0] == '2')
 		copy_all_header(resp, req, "Record-Route");
-	if (!ast_strlen_zero(req->from))
-		add_header(resp, "From", req->from);
-	else
+	//if (!ast_strlen_zero(req->from))
+		//add_header(resp, "From", req->from);
+	//else
 		copy_header(resp, req, "From");
 	ot = req->to ? req->to : get_header(req, "To");
 	if (!strcasestr(ot, "tag=") && strncmp(msg, "100", 3)) {
@@ -4295,13 +4301,13 @@
 		ot = newto;
 	}
 	add_header(resp, "To", ot);
-	if (!ast_strlen_zero(req->callid))
-		add_header(resp, "Call-ID", req->callid);
-	else
+	//if (!ast_strlen_zero(req->callid))
+		//add_header(resp, "Call-ID", req->callid);
+	//else
 		copy_header(resp, req, "Call-ID");
-	if (!ast_strlen_zero(req->cseq))
-		add_header(resp, "Cseq", req->cseq);
-	else
+	//if (!ast_strlen_zero(req->cseq))
+		//add_header(resp, "Cseq", req->cseq);
+	//else
 		copy_header(resp, req, "Cseq");
 	add_header(resp, "User-Agent", global_useragent);
 	add_header(resp, "Allow", ALLOWED_METHODS);



More information about the asterisk-commits mailing list