%docentities; ]>
Functions
<function>sanity_check([msg_checks [, uri_checks]])</function> This function makes a row of sanity checks over the given SIP request. The behavior of the function is also controled by 'autodrop' parameter. If autodrop=0, the function returns false (-1) if one of the checks failed. When autodrop=1, the function stops the execution of configuration file. In both cases, ff one of the checks fails the module sends a precise error reply via SL send_reply(). Thus there is no need to reply with a generic error message. <function>sanity_check</function> usage Optionally the function takes an integer argument which overwrites the global module parameter default_checks. This allows to make certain test from script regions. The integer value is again the sum of the checks (like for the module parameter) which should be executed at this function call. <function>sanity_check</function> usage with parameter Optionally the function takes a second integer argument which overwrites the global module parameter uri_checks and thus determines which URIs will be checked if the parse uri test will be executed. <function>sanity_check</function> usage with two parameters