Hello,
I think c. is the more useful one to have.
Cheers,
Daniel
Hi all,apologies if this is an old topic but I've noticed that has_body() can provide false positives and would like to discuss a solution.
As a practical example, has_body("application/vq-rtcpxr") was returning 1 for Content-Type "application/dialog-info+xml".
The interpretation is that they are both unknown and so they match.
Using 'if ($cT == "application/vq-rtcpxr)" provides a work around, but I wonder what's the suggested solution for this?
a. Add the missing mime types (from RFC 6035 and 4235 respectively) to the listb. Instead of returning 1, return another code, e.g. 2, when the mime type is unknownc. Switch to string comparison when the mime type is unknownd. Something else?
Thanks,Giacomo
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://www.asipto.com - http://www.kamailio.org http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda