Henning Westerholt napsal(a):
On Tuesday 31 March 2009, kokoska rokoska wrote:
2. When I comment out "modparam",
kamailio starts successfuly, but:
All INVITEs (from all clients) are reject through this snippet of code
if (method=="INVITE") {
if (sanity_check("128")) {
xlog("L_ERR", "bad INVITE SDP body length from $si:$sp\n");
exit;
} else if (sanity_check("1024", "7")) {
xlog("L_ERR", "malformed INVITE from $si:$sp\n");
exit;
}
}
I don't think that all of them could have bad length on SDP body (about
120 diffenet UAC types), so I assume I use "sanity" wrong way...
Hi kokoska,
you should get a exact error message in the reply, which indicates the check
that failed.
Thank you very much, Henning, for your reply!
Yes, but I could "rearm" the checks only i deep night - due to load :-)
I will look at it.
The parameter in the sanity_check is the sum of all
checks, so
this includes also a bit more checks, take a look in the documentation.
I know that parameter is sum of all checks, but I think - based on the
docs - that if I explicitly specify what test I want ("128"), only the
selected test is done. Am I wrong?
Or, may be, should I use integer insted of string (and thus docs are a
little bit missleading)?
Thank you once more for your time, Henning!
Best regards,
kokoska.rokoska