<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>maybe keep_hf() can help a bit:</p>
<p> -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/textopsx.html#textopsx.f.keep_hf">https://www.kamailio.org/docs/modules/stable/modules/textopsx.html#textopsx.f.keep_hf</a></p>
<p>Or look at topos module (with the note that was just added in 4.4
and not much tested).</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 06/07/16 12:02, Anonim Stefan wrote:<br>
</div>
<blockquote
cite="mid:CAO7wsJskkbB1MNcy3P+sXxoDUzM5CxcX7DPEYALYrazhJqTKmw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>Hi,<br>
<br>
True, I was thinking only about the "Via" and "Record-Route"
added by Kamailio. Didn't know Record-Route had no short
form (I was thinking of something like "rr" due to rr module
I guess). In this case I suppose there is not much to gain,
only from "Via".<br>
<br>
I'm facing some fragmentation issues. My goal is to make the
SIP packet as small as possible while removing as less SIP
headers as I can. I'd still like to use UDP.<br>
<br>
</div>
Thanks,<br>
</div>
Stefan<br>
<div>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jul 6, 2016 at 12:48 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Record-Route
has no compact name variant, afaik -- also quickly checking<br>
the iana assignments, shows the same:<br>
<br>
-<br>
<a moz-do-not-send="true"
href="http://www.iana.org/assignments/sip-parameters/sip-parameters.xhtml#sip-parameters-2"
rel="noreferrer" target="_blank">http://www.iana.org/assignments/sip-parameters/sip-parameters.xhtml#sip-parameters-2</a><br>
<br>
If smaller size is the target, then Via makes no big
difference, so it<br>
was never a goal -- the changes in code should not be big.<br>
<br>
A quick option is to redefine MY_VIA in config.h to use the
compact form.<br>
<br>
A proper option could be introducing a core parameter,
adding a new<br>
define for the short version and use the normal or short
form a matter<br>
of the parameter value. The function that needs to be
changed is<br>
via_builder().<br>
<br>
Cheers,<br>
Daniel<br>
<div class="HOEnZb">
<div class="h5"><br>
<br>
On 06/07/16 11:40, Olle E. Johansson wrote:<br>
>> On 06 Jul 2016, at 11:38, Alex Balashov <<a
moz-do-not-send="true"
href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>>
wrote:<br>
>><br>
>> Stefan,<br>
>><br>
>> The construction of headers is generally the
province of the UAs/endpoints of the call. Kamailio
understands compact headers, as all compliant SIP stacks
do, but it can't singlehandedly reformat them.<br>
> I think the question was about the headers added by
Kamailio - Via and Record-Route. Which makes the
question perfectly valid :-)<br>
> I can’t remember such a setting anywhere and am
curious on why it’s needed.<br>
> /O<br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) -
sr-users mailing list<br>
> <a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</div>
</div>
<span class="HOEnZb"><font color="#888888">--<br>
Daniel-Constantin Mierla<br>
<a moz-do-not-send="true" href="http://www.asipto.com"
rel="noreferrer" target="_blank">http://www.asipto.com</a>
- <a moz-do-not-send="true"
href="http://www.kamailio.org" rel="noreferrer"
target="_blank">http://www.kamailio.org</a><br>
<a moz-do-not-send="true"
href="http://twitter.com/#%21/miconda"
rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a>
- <a moz-do-not-send="true"
href="http://www.linkedin.com/in/miconda"
rel="noreferrer" target="_blank">http://www.linkedin.com/in/miconda</a><br>
</font></span>
<div class="HOEnZb">
<div class="h5"><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) -
sr-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>