[OpenSIPS-Users] is_method("MESSAGE") not work

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Dec 18 14:20:56 CET 2012


Hi,

Are you 100% sure your script execution gets to that "if" ? place an 
xlog before the "if" to double check it.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 12/18/2012 04:45 PM, Dragomir Haralambiev wrote:
> Hello,
> I try receive SIP MESSAGE in opensips 1.8.2(revision 9536).
> The follow do not wotk:
>         if (is_method("MESSAGE")) {
>                 xlog("L_ERR", "MESSAGE from $si:$sp  \n");
>                 exit;
>         };
> Here is debug 6:
> DBG:core:parse_headers: flags=ffffffffffffffff
> DBG:core:parse_to: end of header reached, state=10
> DBG:core:parse_to: display={}, ruri={sip:5555555 at 82.87.10.164 
> <mailto:sip%3A5555555 at 82.87.10.164>}
> DBG:core:get_hdr_field: <To> [27]; uri=[sip:5555555 at 82.87.10.164 
> <mailto:sip%3A5555555 at 82.87.10.164>]
> DBG:core:get_hdr_field: to body [<sip:5555555 at 82.87.10.164 
> <mailto:sip%3A5555555 at 82.87.10.164>>
> DBG:core:get_hdr_field: cseq <CSeq>: <49480> <MESSAGE>
> DDBG:core:get_hdr_field: content_length=6
> DBG:core:get_hdr_field: found end of header
> DBG:core:decode_mime_type: Decoding MIME type for:[text/plain]
> DBG:core:decode_mime_type: Decoding MIME type for:[text/plain, 
> application/im-iscomposing+xml]
> DBG:core:decode_mime_type: Decoding MIME type for:[ 
> application/im-iscomposing+xml]
> DBG:core:parse_headers: flags=ffffffffffffffff
> Where is problem?
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121218/2f6febf7/attachment.htm>


More information about the Users mailing list