That could be relatively easy to implement because the sdp parser is
able to handle SDP in a multipart/mixed body.
-ovidiu
On Wed, Oct 17, 2012 at 11:57 AM, Juha Heinanen <jh(a)tutpro.com> wrote:
Ron Hopson writes:
I use kamailio 3.3 and it does not exist.
Instead I use:
if(has_body("application/sdp")){
ron,
thanks for your reply although i don't understand how
has_body("application/sdp") would work, because textops readme on
has_body tells:
If a parameter is given, the mime described will be also checked against
the “Content-Type” header.
the reason is that content-type can very well be, for example,
multipart/mixed (or something like that) and still the body can contain
sdp.
in my opinion rtpproxy functions should tell via return value if sdp
existed, i.e., if they did something, rather than requiring script
writer to check it beforehand.
-- juha
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
VoIP Embedded, Inc.