Open xyz2k8 opened 7 years ago
I may be seeing the same issue when trying to do an INVITE to Twilio. Twilio sends back a 400 Bad SDP
along with X-Twilio-Error: 32102 The SDP is not correctly formatted
. It doesn't specifically identify the length as the issue, but I suppose it could be the length that it's puking on...?
Your sip packet is not small (4479 bytes), but not super big. If also can be bigger if you will have more network interfaces (for example, for virtualbox/vmware/etc). Other Javascript sip libraries will give similar packets.
So, this is only a Twilio issue.
Solution for asterisk PBX is to change PJSIP_MAX_PKT_LEN
option to 12288 and recompile, probably Twilio team should do something similar.
I maked a call from chrome, log info shows that the SDP in INVITE is too long. How to shorten?