[asterisk-commits] mmichelson: trunk r168728 - /trunk/channels/chan_sip.c

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


Author: mmichelson
Date: Thu Jan 15 13:16:29 2009
New Revision: 168728

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168728
Log:
Fix the compactheaders option in sip.conf


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=168728&r1=168727&r2=168728
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Jan 15 13:16:29 2009
@@ -8055,11 +8055,12 @@
 		return -1;
 	}
 
+	if (sip_cfg.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 (sip_cfg.compactheaders)
-		var = find_alias(var, var);
 	req->len += strlen(req->header[req->headers]);
 	req->headers++;
 




More information about the asterisk-commits mailing list