[asterisk-commits] mmichelson: branch 1.6.1 r168729 - /branches/1.6.1/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 15 13:17:44 CST 2009


Author: mmichelson
Date: Thu Jan 15 13:17:43 2009
New Revision: 168729

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168729
Log:
Merged revisions 168728 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r168728 | mmichelson | 2009-01-15 13:16:29 -0600 (Thu, 15 Jan 2009) | 3 lines

Fix the compactheaders option in sip.conf


........

Modified:
    branches/1.6.1/channels/chan_sip.c

Modified: branches/1.6.1/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/channels/chan_sip.c?view=diff&rev=168729&r1=168728&r2=168729
==============================================================================
--- branches/1.6.1/channels/chan_sip.c (original)
+++ branches/1.6.1/channels/chan_sip.c Thu Jan 15 13:17:43 2009
@@ -7564,11 +7564,12 @@
 		return -1;
 	}
 
+	if (compactheaders)
+		var = find_alias(var, var);
+
 	ast_str_append(&req->data, 0, "%s: %s\r\n", var, value);
 	req->header[req->headers] = req->data->str + req->len;
 
-	if (compactheaders)
-		var = find_alias(var, var);
 	req->len += strlen(req->header[req->headers]);
 	req->headers++;
 




More information about the asterisk-commits mailing list