<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
On 11/30/10 9:09 AM, Jeremya wrote:
<blockquote cite="mid:4CF4B157.5060201@electrosilk.net" type="cite">
Hi,<br>
<br>
I've been following some examples using has_sdp() function but it
is
not supplied by 3.0.x TEXTOPS<br>
<br>
I've seen some discussion on mailing lists about has_sdp() being
included since 1.5. But checking the online documentation is
doesn't
exist in any version.<br>
<br>
I use <span>has_<ins>body("application/sdp"</ins>) as an
alternative
but perhaps the has_sdp() function could be included, or
references and
examples using it altered or removed?<br>
<br>
</span></blockquote>
I haven't found has_sdp() in any module, but you can use
has_body(content-type) function for this purpose:<br>
<br>
<br>
if(has_body("application/sdp"))<br>
...<br>
<br>
See:
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules_k/textops.html#id2925178">http://kamailio.org/docs/modules/stable/modules_k/textops.html#id2925178</a><br>
<br>
Cheers,<br>
Daniel<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>