Module: sip-router Branch: kamailio_3.0 Commit: aa569991b9c184003ccfd805978930f6cf9ccf2e URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=aa569991...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Wed Oct 28 23:38:58 2009 +0100
kamailio.cfg: do sanity check by default
- use sanity module to catch parsing errors early in config - replaces error_route from kamailio 1.5
---
etc/kamailio.cfg | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg index bfadc3a..0d3397e 100644 --- a/etc/kamailio.cfg +++ b/etc/kamailio.cfg @@ -126,6 +126,7 @@ loadmodule "textops.so" loadmodule "uri_db.so" loadmodule "siputils.so" loadmodule "xlog.so" +loadmodule "sanity.so" loadmodule "acc.so" /* uncomment next lines for MySQL based authentication support NOTE: a DB (like db_mysql) module must be also loaded */ @@ -265,6 +266,12 @@ route{ exit; }
+ if(!sanity_check("1511", "7")) + { + xlog("Malformed SIP message from $si:$sp\n"); + exit; + } + # NAT detection route(NAT);