From sos@sokhapkin.dyndns.org Mon Oct 25 00:48:07 2010 From: Sergey Okhapkin To: sr-users@lists.kamailio.org Subject: [SR-Users] Sanity module documentation error? Date: Sun, 24 Oct 2010 18:48:36 -0400 Message-ID: <201010241848.36146.sos@sokhapkin.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1876293479==" --===============1876293479== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The routing script has=20 if(sanity_check("1159", "6")) { xlog("L_INFO","Bad message from $proto:$si:$sp\n$mb\n"); break; } Seems like sanity_check function returns true is sanity check passes, but not= =20 failed. Am I right? 0(14085) DEBUG: [receive.c:145]: After parse_msg... = =20 0(14085) DEBUG: [receive.c:186]: preparing to run routing scripts... = =20 0(14085) DEBUG: [parser/parse_to.c:803]: end of header reached,=20 state=3D10 =20 0(14085) DEBUG: [parser/msg_parser.c:185]: DEBUG: get_hdr_field: = =20 [35]; uri=3D[sip:167147511(a)204.74.213.5:5090]=20 0(14085) DEBUG: [parser/msg_parser.c:187]: DEBUG: to body=20 [ =20 ] = =20 0(14085) DEBUG: [parser/msg_parser.c:165]: get_hdr_field: cseq = :=20 <73> =20 0(14085) DEBUG: [parser/msg_parser.c:199]: DEBUG: get_hdr_body :=20 content_length=3D0 =20 0(14085) DEBUG: [parser/msg_parser.c:101]: found end of header = =20 0(14085) DEBUG: [parser/parse_to.c:174]: DEBUG: add_param: tag=3Djzby= j =20 0(14085) DEBUG: [parser/parse_to.c:803]: end of header reached,=20 state=3D29 =20 0(14085) DEBUG: sanity [mod_sanity.c:217]: all sanity checks passed = =20 0(14085) INFO: