<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi Ben</tt><tt>,</tt><tt><br>
</tt><tt><br>
</tt><tt>The OpenSIPS 2.1 has the compression module that is able to
do that for you automatically:<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.1.x/compression.html#id249617">http://www.opensips.org/html/docs/modules/2.1.x/compression.html#id249617</a><br>
</tt><tt></tt><tt><br>
</tt><tt>Regards,</tt><br>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 27.07.2015 19:06, Newlin, Ben wrote:<br>
</div>
<blockquote cite="mid:345FEB47-E14A-41D2-BDEF-81E5BFBA32C6@inin.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div>
<div>Does anyone have any ideas about this?</div>
<div><br>
</div>
<div>The only thing I found was the txtops module. I tried using
it to simply do a text replacement of the compact headers for
the full headers:</div>
<div><br>
</div>
<div>replace("^c: ", "Content-Type: “);</div>
<div><br>
</div>
<div>But this doesn’t work when there are headers that OpenSIPS
will replace like Via. When the message is sent, the text
replacements end up in the wrong places as the new Via headers
are not inserted in the same place the old ones were.</div>
<div><br>
</div>
<div>Would I have to actually remove the header (remove_hf),
copy the content, and then replace it (append_hf)? What would
be the best way to do that for any given header?</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE">
<div><br>
</div>
<div>Ben Newlin</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt;
text-align:left; color:black; BORDER-BOTTOM: medium none;
BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>"Newlin, Ben"<br>
<span style="font-weight:bold">Date: </span>Friday, July 10,
2015 at 5:54 PM<br>
<span style="font-weight:bold">To: </span>"<a
moz-do-not-send="true"
href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>"<br>
<span style="font-weight:bold">Subject: </span>Compact/Full
Headers<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space; color: rgb(0, 0, 0);
font-size: 14px; font-family: Calibri, sans-serif;">
<div>Is there a simple way to convert Compact headers to
their full form and vice versa while processing a message?
I haven’t found much mention of compact headers except
that they are supported. I also saw the new compression
module in 2.1, but we are using 1.11.</div>
<div>
<div id="">
<div style="margin: 0px; padding: 0px; color: rgb(102,
102, 102); font-family: Arial, Helvetica, sans-serif;
font-size: 12px; line-height: 16.8pt;
background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="margin: 0px; padding: 0px; color: rgb(102,
102, 102); font-family: Arial, Helvetica, sans-serif;
font-size: 12px; line-height: 16.8pt;">
<span style="background-color: rgb(255, 254, 254);">Ben
Newlin</span></div>
<div style="margin: 0px; padding: 0px; color: rgb(102,
102, 102); font-family: Arial, Helvetica, sans-serif;
font-size: 12px; line-height: 20pt; background-color:
rgb(255, 255, 255);">
<span style="margin: 0px; padding: 0px; font-size:
10pt; font-family: arial, sans-serif; color: rgb(5,
133, 167);"></span></div>
</div>
</div>
</div>
</div>
</span>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>