I’m trying to find out if there is a setting that can be enabled to send a 400 Bad Request error when Asterisk/PJSIP receives a request with syntax errors.
For example, this INVITE has an Unterminated Quoted String in Display Name (To: "Mr. Nobody <sip:nobody…)
To: "Mr. Nobody sip:x.x.x.x:5060
The Asterisk logs show: “PJSIP syntax error exception when parsing ‘To’ header on line 4 col 5”, but the client doesn’t receive a 400 Bad Request error back. It just appears to not respond at all.
This is on FreePBX 15.0.29, and Asterisk 16.17.0
Is there a setting I can enable to have the server respond with a 400 Bad Request?