Matt, Thanks for looking. I have also seen the pjsip limitation this afternoon. I was wondering if we are sure that this is the only one (I also had errors on memcached replica when too big messages where received)
I am using custom presence documents that may contain quite big data (small embedded pics in JPEG format for instance) For SIP over UDP, the max allowed message size is 64 KB. So it's quite surprising that pjsip has a so small limitation internally. For instance, Jain SIP has a upper limitation configured to 64 KB for UDP and uses 4 KB as minimum buffer size for TCP I can try to rebuild pjsip myself but it will make harder for me to stay up to date with the latest release if I have to rebuild it at each upgrade I guess that Bono is also using PJSIP. Is PJSIP installed as a shared library for Bono and Sprout or have they both to be fully rebuilt to incorporate PJSIP modification ? Olivier ________________________________________ De : Matt Williams [[email protected]] Date d'envoi : mercredi 28 mai 2014 20:39 À : DURECU, OLIVIER (OLIVIER) Cc: [email protected] Objet : RE: Size limit of SIP messages? Olivier, I think this limit is controlled by the PJSIP_MAX_PKT_LEN constant in sprout/modules/pjsip/pjlib/include/pj/config_site.h. If you increase that and rebuild (you might need to do a "make clean" - I'm not sure how well PJSIP manages its header dependencies), you should be able to resolve the problem. Is that something you're comfortable doing? Obviously, that would only fix it locally on your machine. I'm sure we could increase the PJSIP_MAX_PKT_LEN constant permanently, but it would be useful to know what the use case is - what data is being transferred in the PUBLISH messages and why is it so large? Please let us know. Thanks, Matt -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of DURECU, OLIVIER (OLIVIER) Sent: 27 May 2014 19:38 To: [email protected] Subject: [Clearwater] Size limit of SIP messages? Hi, In some tests I am doing there are some PUBLISH messages with a 8 kB content. This messages are dropped by sprout with a "Rx buffer overflow" error from pjsip Is there a way to increase this limit ? Olivier _______________________________________________ Clearwater mailing list [email protected] http://lists.projectclearwater.org/listinfo/clearwater _______________________________________________ Clearwater mailing list [email protected] http://lists.projectclearwater.org/listinfo/clearwater
