ladendirekt / pjsip4net

A wrapper library exposing the pjsip library to the .NET world in a OO-friendly way.
71 stars 42 forks source link

IM max length #47

Closed mandar003 closed 8 years ago

mandar003 commented 8 years ago

Hi I am getting max length error while sending the Message/IM.

PJSIP_EMSGTOOLONG this is the error code how can I Increase the MaxLenght. I tried to change public const int PJSIP_MAX_PKT_LEN = Int32.MaxValue; but it did not work Please help

siniypin commented 8 years ago

Hi, basically you have two options. Either you build your custom version of pjsua.dll with the aforementioned constant set to higher value (not sure if that is possible at all), or you break longer messages into chunks and glue them together back on the application level.

siniypin commented 8 years ago

Following this discussion https://www.ietf.org/mail-archive/web/sip/current/msg02446.html one possible solution might be to use TCP transport instead of UDP. Can you give it a try?

siniypin commented 8 years ago

Closing as answered.