[OpenSIPS-Users] sipmsg_validate not detecting wrong user agent
Sharad Kumar
voip.security at protonmail.com
Mon Dec 30 18:21:16 EST 2019
Hi guys,
We are using openSIPS for edge proxy and one of our client is sending wrong user-agent which is not compliant with RFC.
This is the username which is being passed -
Asterisk PBX 1.8.23.0-1_centos5.go RPM by demian at goautodial.com\r\n
Where @ is not allowed in user-agent header. We are using this function in openSIPS to validate SIP headers but this function not seems to be working and not rejecting that INVITE.
if (!sipmsg_validate("shrftc")){
send_reply("400","Bad request/body");
exit;
}
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191230/2dd5ad44/attachment.html>
More information about the Users
mailing list