<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 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 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 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 href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a 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 href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a> - <a href="http://www.kamailio.org" rel="noreferrer" target="_blank">http://www.kamailio.org</a><br>
<a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a> - <a 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 href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a 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>