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@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to