<!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">
<tt>Hi,<br>
<br>
Are you 100% sure your script execution gets to that "if" ? place
an xlog before the "if" to double check it.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 12/18/2012 04:45 PM, Dragomir Haralambiev wrote:
<blockquote
cite="mid:CADzurOLP90=Lpp7Yo7uEcrW0HxdgMBfM8Qy+fC2Rn5-4Q_mz1A@mail.gmail.com"
type="cite">
<div>Hello,</div>
<div> </div>
<div>I try receive SIP MESSAGE in opensips 1.8.2(revision 9536). </div>
<div>The follow do not wotk:<br>
</div>
<div> if (is_method("MESSAGE")) {<br>
xlog("L_ERR", "MESSAGE from $si:$sp \n");<br>
exit;<br>
};</div>
<div> </div>
<div>Here is debug 6:<br>
DBG:core:parse_headers: flags=ffffffffffffffff<br>
DBG:core:parse_to: end of header reached, state=10<br>
DBG:core:parse_to: display={}, ruri={<a moz-do-not-send="true"
href="mailto:sip%3A5555555@82.87.10.164">sip:5555555@82.87.10.164</a>}<br>
DBG:core:get_hdr_field: <To> [27]; uri=[<a
moz-do-not-send="true"
href="mailto:sip%3A5555555@82.87.10.164">sip:5555555@82.87.10.164</a>]<br>
DBG:core:get_hdr_field: to body [<<a moz-do-not-send="true"
href="mailto:sip%3A5555555@82.87.10.164">sip:5555555@82.87.10.164</a>><br>
DBG:core:get_hdr_field: cseq <CSeq>: <49480>
<MESSAGE><br>
DDBG:core:get_hdr_field: content_length=6<br>
DBG:core:get_hdr_field: found end of header<br>
DBG:core:decode_mime_type: Decoding MIME type for:[text/plain]<br>
DBG:core:decode_mime_type: Decoding MIME type for:[text/plain,
application/im-iscomposing+xml]<br>
DBG:core:decode_mime_type: Decoding MIME type for:[
application/im-iscomposing+xml]<br>
DBG:core:parse_headers: flags=ffffffffffffffff</div>
<div> </div>
<div>Where is problem?</div>
<div> </div>
<div> </div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>