[SR-Users] has_sdp()??

Juha Heinanen jh at tutpro.com
Wed Oct 17 17:57:53 CEST 2012


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



More information about the sr-users mailing list