[FS-5814] Support gzip encoding with mod_sofia Created: 21/Sep/13  Updated: 19/Mar/14  Resolved: 05/Mar/14

Status: Closed
Project: FreeSWITCH
Component/s: mod_sofia
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Kristian Kielhofner Assignee: Anthony Minessale II
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

CPU Architecture:
x86
Kernel:
Linux
Userland:
GNU/Linux
Compiler:
gcc
FreeSWITCH GIT Revision: All
GIT Master Revision hash:: Yes

 Description   
Kamailio now supports the gzip compression of SIP message bodies (akin to HTTP compression) using the "Content-Encoding: gzip" header:

http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bd716593efb83d4124c0c0cb824bf158d547ca0d

I'll be working with Daniel to further this functionality but I'd like to see more support for it in the open source SIP ecosystem.

I'm sponsoring the development (bounty!) for FreeSWITCH mod_sofia compatibility with Kamailio and any other potential implementations.

 Comments   
Comment by James Cloos [ 23/Sep/13 ]
A later post mentions that the patch for kamailio now uses the deflate encoding tag rather than the gzip tag.

That change is an improvement.

FreeSWITCH probably should support both, but it is likely that deflate is more important.

Comment by Kristian Kielhofner [ 23/Sep/13 ]
Agreed.
Comment by Brian West [ 02/Oct/13 ]
nua_session.c 48% L2140
Comment by Brian West [ 02/Oct/13 ]
msg_extract_payload
Comment by Brian West [ 19/Feb/14 ]
If you have patches for this issue that need to be updated for use with MASTER please do so ASAP, If this is an issue where the problem persists please response and provide additional details after you test again on Stable and/or Master. If your issue is a feature request please follow up and express interest in the features that aren't complete being done via a bounty or possibly a community member.

Provide additional details or guidance for moving your issues forward.

Feel free to ping me via email if you have questions directly brian@freeswitch.org

Thanks,
--
Brian West
brian@freeswitch.org
FreeSWITCH Solutions, LLC
PO BOX 2531
Brookfield, WI 53008-2531
Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST
iNUM: +883 5100 1420 9001
ISN: 410*543
Skype:briankwest
PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)


Comment by Kristian Kielhofner [ 03/Mar/14 ]
Any updates on this?
Comment by Brian West [ 03/Mar/14 ]
I can send deflate facing sofia from Kamailio, Tony has it decompressing it. We have some mechanics to work out. My opensips/kamailio skills are very rusty.

/b
Comment by Kristian Kielhofner [ 03/Mar/14 ]
If you need some help with Kamailio let me know
Comment by Brian West [ 03/Mar/14 ]
http://bkw.org/kamailio.cfg

I have it sending deflate to FreeSWITC via this, The response doesn't come back as deflate yet, (will probably first thing in the morning), Issue is the 200OK comes back to Kamailio promptly gets compressed and sent to Bria, Which has a fit over it. I would like to have a way to say the response going back to Bria doesn't need to XCOMPRESS done to it. I'm not fluent enough in Kamailio yet, I'm getting there fast.

/b
Comment by Brian West [ 03/Mar/14 ]
Also you can add me via IM if you like brian.west@gmail.com, I'm trying to get this done tonight so Tony can hit the ground running again tomorrow morning.

/b
Comment by Git [ 05/Mar/14 ]
Repository: freeswitch
Branch: refs/heads/master
Commit: 7cb9146 http://fisheye.freeswitch.org/changelog/freeswitch/?cs=7cb9146
Closed By: anthm@freeswitch.org

Comment:
FS-5814 --resolve


FreeSWITCH Support Contracts and Consulting Services available!

Contact us:
Email: consulting@freeswitch.org
Web: http://www.freeswitch.org
Phone: +1-918-420-9266
Tollfree: +1-877-742-2583
Fax: +1-918-420-9267
iNum: +883 5100 1420 9266


Come To ClueCon in August to learn more about FreeSWITCH and Internet Telephony!
http://www.cluecon.com

Comment by Git [ 05/Mar/14 ]
Repository: freeswitch
Branch: refs/heads/master
Commit: fe2a4bf http://fisheye.freeswitch.org/changelog/freeswitch/?cs=fe2a4bf
Updated By: anthm@freeswitch.org

Comment:
FS-5814


FreeSWITCH Support Contracts and Consulting Services available!

Contact us:
Email: consulting@freeswitch.org
Web: http://www.freeswitch.org
Phone: +1-918-420-9266
Tollfree: +1-877-742-2583
Fax: +1-918-420-9267
iNum: +883 5100 1420 9266


Come To ClueCon in August to learn more about FreeSWITCH and Internet Telephony!
http://www.cluecon.com

Comment by Git [ 05/Mar/14 ]
Repository: freeswitch
Branch: refs/heads/master
Commit: 4cf14bc http://fisheye.freeswitch.org/changelog/freeswitch/?cs=4cf14bc
Updated By: anthm@freeswitch.org

Comment:
FS-5814


FreeSWITCH Support Contracts and Consulting Services available!

Contact us:
Email: consulting@freeswitch.org
Web: http://www.freeswitch.org
Phone: +1-918-420-9266
Tollfree: +1-877-742-2583
Fax: +1-918-420-9267
iNum: +883 5100 1420 9266


Come To ClueCon in August to learn more about FreeSWITCH and Internet Telephony!
http://www.cluecon.com

Comment by Auto Admin [ 18/Mar/14 ]
Due to a long period of inactivity (13 or more days), this issue is due to be automatically close within 24 hours.
If this issue is not actually resolved, please reopen it and add appropriate comments to help developers fix the issue.

Thanks,
  Jira Admin
Comment by Auto Admin [ 19/Mar/14 ]
Since there has been no change to the status of this issue, it is being closed for inactivity

Thanks,
  Jira Admin
Generated at Sun Jul 23 09:50:01 CDT 2017 using JIRA 7.3.3#73014-sha1:d5be8da522213be2ca9ad7b043c51da6e4cc9754.