Re: [OpenSIPS-Users] Compact/Full Headers

2015-08-04 Thread Bogdan-Andrei Iancu
Unfortunately there is no way to do it on 1.11 . Changing the headers is 
much to complex (when comes to names) to be done from script.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 04.08.2015 19:44, Newlin, Ben wrote:

Bogdan,

Thank you. I have looked at that module, but we are using 1.11. Is 
there no similar functionality in 1.11?


Unfortunately, removing and replacing the headers did not work when 
also using topology_hiding and uac_replace functions because they do 
not seem to be aware of the changed/expanded headers.


Ben Newlin

From: Bogdan-Andrei Iancu
Date: Tuesday, August 4, 2015 at 12:25 PM
To: OpenSIPS users mailling list, "Newlin, Ben"
Subject: Re: [OpenSIPS-Users] Compact/Full Headers

Hi Ben,

The OpenSIPS 2.1 has the compression module that is able to do that 
for you automatically:

http://www.opensips.org/html/docs/modules/2.1.x/compression.html#id249617

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 27.07.2015 19:06, Newlin, Ben wrote:

Does anyone have any ideas about this?

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:


replace("^c: ", "Content-Type: “);

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.


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?


Ben Newlin

From: "Newlin, Ben"
Date: Friday, July 10, 2015 at 5:54 PM
To: "users@lists.opensips.org <mailto:users@lists.opensips.org>"
Subject: Compact/Full Headers

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.


Ben Newlin


___
Users mailing list
Users@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Compact/Full Headers

2015-08-04 Thread Newlin, Ben
Bogdan,

Thank you. I have looked at that module, but we are using 1.11. Is there no 
similar functionality in 1.11?

Unfortunately, removing and replacing the headers did not work when also using 
topology_hiding and uac_replace functions because they do not seem to be aware 
of the changed/expanded headers.

Ben Newlin

From: Bogdan-Andrei Iancu
Date: Tuesday, August 4, 2015 at 12:25 PM
To: OpenSIPS users mailling list, "Newlin, Ben"
Subject: Re: [OpenSIPS-Users] Compact/Full Headers

Hi Ben,

The OpenSIPS 2.1 has the compression module that is able to do that for you 
automatically:
http://www.opensips.org/html/docs/modules/2.1.x/compression.html#id249617

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 27.07.2015 19:06, Newlin, Ben wrote:
Does anyone have any ideas about this?

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:

replace("^c: ", "Content-Type: “);

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.

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?

Ben Newlin

From: "Newlin, Ben"
Date: Friday, July 10, 2015 at 5:54 PM
To: "users@lists.opensips.org<mailto:users@lists.opensips.org>"
Subject: Compact/Full Headers

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.

Ben Newlin



___
Users mailing list
Users@lists.opensips.org<mailto:Users@lists.opensips.org>http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Compact/Full Headers

2015-08-04 Thread Bogdan-Andrei Iancu

Hi Ben,

The OpenSIPS 2.1 has the compression module that is able to do that for 
you automatically:

http://www.opensips.org/html/docs/modules/2.1.x/compression.html#id249617

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 27.07.2015 19:06, Newlin, Ben wrote:

Does anyone have any ideas about this?

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:


replace("^c: ", "Content-Type: “);

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.


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?


Ben Newlin

From: "Newlin, Ben"
Date: Friday, July 10, 2015 at 5:54 PM
To: "users@lists.opensips.org "
Subject: Compact/Full Headers

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.


Ben Newlin


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Compact/Full Headers

2015-07-27 Thread Newlin, Ben
Does anyone have any ideas about this?

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:

replace("^c: ", "Content-Type: “);

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.

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?

Ben Newlin

From: "Newlin, Ben"
Date: Friday, July 10, 2015 at 5:54 PM
To: "users@lists.opensips.org"
Subject: Compact/Full Headers

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.

Ben Newlin
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Compact/Full Headers

2015-07-10 Thread Newlin, Ben
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.

Ben Newlin
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users