Hi,
Is there a parameter to be enabled such that Kamailio will append headers in compacted form? (I'm thinking of Via: and Record-Route:)
Thanks, Stefan
On 06 Jul 2016, at 11:36, Anonim Stefan fanx07@gmail.com wrote:
Hi,
Is there a parameter to be enabled such that Kamailio will append headers in compacted form? (I'm thinking of Via: and Record-Route:)
Just curious - why would you need that?
/O
Stefan,
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.
On July 6, 2016 5:36:34 AM EDT, Anonim Stefan fanx07@gmail.com wrote:
Hi,
Is there a parameter to be enabled such that Kamailio will append headers in compacted form? (I'm thinking of Via: and Record-Route:)
Thanks, Stefan
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Alex
-- Principal, Evariste Systems LLC (www.evaristesys.com)
Sent from my Google Nexus.
On 06 Jul 2016, at 11:38, Alex Balashov abalashov@evaristesys.com wrote:
Stefan,
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.
I think the question was about the headers added by Kamailio - Via and Record-Route. Which makes the question perfectly valid :-) I can’t remember such a setting anywhere and am curious on why it’s needed. /O
Record-Route has no compact name variant, afaik -- also quickly checking the iana assignments, shows the same:
- http://www.iana.org/assignments/sip-parameters/sip-parameters.xhtml#sip-para...
If smaller size is the target, then Via makes no big difference, so it was never a goal -- the changes in code should not be big.
A quick option is to redefine MY_VIA in config.h to use the compact form.
A proper option could be introducing a core parameter, adding a new define for the short version and use the normal or short form a matter of the parameter value. The function that needs to be changed is via_builder().
Cheers, Daniel
On 06/07/16 11:40, Olle E. Johansson wrote:
On 06 Jul 2016, at 11:38, Alex Balashov abalashov@evaristesys.com wrote:
Stefan,
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.
I think the question was about the headers added by Kamailio - Via and Record-Route. Which makes the question perfectly valid :-) I can’t remember such a setting anywhere and am curious on why it’s needed. /O
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
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".
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.
Thanks, Stefan
On Wed, Jul 6, 2016 at 12:48 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Record-Route has no compact name variant, afaik -- also quickly checking the iana assignments, shows the same:
http://www.iana.org/assignments/sip-parameters/sip-parameters.xhtml#sip-para...
If smaller size is the target, then Via makes no big difference, so it was never a goal -- the changes in code should not be big.
A quick option is to redefine MY_VIA in config.h to use the compact form.
A proper option could be introducing a core parameter, adding a new define for the short version and use the normal or short form a matter of the parameter value. The function that needs to be changed is via_builder().
Cheers, Daniel
On 06/07/16 11:40, Olle E. Johansson wrote:
On 06 Jul 2016, at 11:38, Alex Balashov abalashov@evaristesys.com
wrote:
Stefan,
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.
I think the question was about the headers added by Kamailio - Via and
Record-Route. Which makes the question perfectly valid :-)
I can’t remember such a setting anywhere and am curious on why it’s
needed.
/O
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://www.asipto.com - http://www.kamailio.org http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
maybe keep_hf() can help a bit:
- https://www.kamailio.org/docs/modules/stable/modules/textopsx.html#textopsx....
Or look at topos module (with the note that was just added in 4.4 and not much tested).
Cheers, Daniel
On 06/07/16 12:02, Anonim Stefan wrote:
Hi,
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".
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.
Thanks, Stefan
On Wed, Jul 6, 2016 at 12:48 PM, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com> wrote:
Record-Route has no compact name variant, afaik -- also quickly checking the iana assignments, shows the same: - http://www.iana.org/assignments/sip-parameters/sip-parameters.xhtml#sip-parameters-2 If smaller size is the target, then Via makes no big difference, so it was never a goal -- the changes in code should not be big. A quick option is to redefine MY_VIA in config.h to use the compact form. A proper option could be introducing a core parameter, adding a new define for the short version and use the normal or short form a matter of the parameter value. The function that needs to be changed is via_builder(). Cheers, Daniel On 06/07/16 11:40, Olle E. Johansson wrote: >> On 06 Jul 2016, at 11:38, Alex Balashov <abalashov@evaristesys.com <mailto:abalashov@evaristesys.com>> wrote: >> >> Stefan, >> >> 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. > I think the question was about the headers added by Kamailio - Via and Record-Route. Which makes the question perfectly valid :-) > I can’t remember such a setting anywhere and am curious on why it’s needed. > /O > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://www.asipto.com - http://www.kamailio.org http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Stefan,
Sorry for answering the wrong question. :-)
Take a look at this blog post:
http://blog.csrpswitch.com/sip-udp-fragmentation-and-kamailio-the-sip-header...
On July 6, 2016 6:02:26 AM EDT, Anonim Stefan fanx07@gmail.com wrote:
Hi,
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".
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.
Thanks, Stefan
On Wed, Jul 6, 2016 at 12:48 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Record-Route has no compact name variant, afaik -- also quickly
checking
the iana assignments, shows the same:
http://www.iana.org/assignments/sip-parameters/sip-parameters.xhtml#sip-para...
If smaller size is the target, then Via makes no big difference, so
it
was never a goal -- the changes in code should not be big.
A quick option is to redefine MY_VIA in config.h to use the compact
form.
A proper option could be introducing a core parameter, adding a new define for the short version and use the normal or short form a
matter
of the parameter value. The function that needs to be changed is via_builder().
Cheers, Daniel
On 06/07/16 11:40, Olle E. Johansson wrote:
On 06 Jul 2016, at 11:38, Alex Balashov
wrote:
Stefan,
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.
I think the question was about the headers added by Kamailio - Via
and
Record-Route. Which makes the question perfectly valid :-)
I can’t remember such a setting anywhere and am curious on why it’s
needed.
/O
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
list
sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://www.asipto.com - http://www.kamailio.org http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
list
sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Alex
-- Principal, Evariste Systems LLC (www.evaristesys.com)
Sent from my Google Nexus.
On Wed, Jul 06, 2016 at 01:02:26PM +0300, Anonim Stefan wrote:
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.
Maybe you could take a look at the topos module (since 4.4.x): http://kamailio.org/docs/modules/4.4.x/modules/topos.html
"DM" == Daniel-Constantin Mierla miconda@gmail.com writes:
DM> A proper option could be introducing a core parameter, adding a new DM> define for the short version and use the normal or short form a matter DM> of the parameter value. The function that needs to be changed is DM> via_builder().
If anyone works on that, they also should make that option generate compat headers for packets kamailio creates, such as the REGISTER related packets created by uacreg.
-JimC