I am new to kamailio and I am trying to use docker to install the 5.1.6 version. I took the image from kamailio/kamailio:5.1.6-xenial and using a 5.7 mysql with it. Two services start fine, when I use sip client - linphone connect to it, it error with w_sanity_check(): input parameter (17895) outside of valid range <1-16384) without telling any reason. Can anyone help?
Thanks
kamailio.cfg ``` ####### Defined Values #########
#!define WITH_DEBUG #!define WITH_MYSQL #!define WITH_NAT #!define WITH_AUTH #!define WITH_ALIASDB #!define WITH_USRLOCDB #!define DBURL "mysql://kamailio:kamailiorw@tg-kamailio-db/kamailio"
# *** Value defines - IDs used later in config ```
kamctlrc `````` # The Kamailio configuration file for the control tools. # # Here you can set variables used in the kamctl and kamdbctl setup # scripts. Per default all variables here are commented out, the control tools # will use their internal default values.
## your SIP domain SIP_DOMAIN=192.168.56.111
## chrooted directory # $CHROOT_DIR="/path/to/chrooted/directory"
## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, DBTEXT, or SQLITE # by default none is loaded # # If you want to setup a database with kamdbctl, you must at least specify # this parameter. DBENGINE=MYSQL
## database host DBHOST=tg-kamailio-db
## database host DBPORT=3306
## database name (for ORACLE this is TNS name) DBNAME=kamailio
# database path used by dbtext, db_berkeley or sqlite # DB_PATH="/usr/local/etc/kamailio/dbtext"
## database read/write user DBRWUSER="kamailio"
## password for database read/write user DBRWPW="kamailiorw" ``````
Error Log ````` 2018-10-16T09:03:28.812832261Z 48(52) DEBUG: <core> [core/parser/msg_parser.c:604]: parse_msg(): SIP Request: 2018-10-16T09:03:28.823450876Z 48(52) DEBUG: <core> [core/parser/msg_parser.c:606]: parse_msg(): method: <REGISTER> 2018-10-16T09:03:28.823485491Z 48(52) DEBUG: <core> [core/parser/msg_parser.c:608]: parse_msg(): uri: sip:192.168.56.111 2018-10-16T09:03:28.823493873Z 48(52) DEBUG: <core> [core/parser/msg_parser.c:610]: parse_msg(): version: <SIP/2.0> 2018-10-16T09:03:28.823499328Z 48(52) DEBUG: <core> [core/parser/parse_via.c:1303]: parse_via_param(): Found param type 232, <branch> = <z9hG4bK.NszSAuWgI>; state=6 2018-10-16T09:03:28.823505373Z 48(52) DEBUG: <core> [core/parser/parse_via.c:1303]: parse_via_param(): Found param type 235, <rport> = <n/a>; state=17 2018-10-16T09:03:28.823510951Z 48(52) DEBUG: <core> [core/parser/parse_via.c:2639]: parse_via(): end of header reached, state=5 2018-10-16T09:03:28.823516043Z 48(52) DEBUG: <core> [core/parser/msg_parser.c:492]: parse_headers(): Via found, flags=2 2018-10-16T09:03:28.823520787Z 48(52) DEBUG: <core> [core/parser/msg_parser.c:494]: parse_headers(): this is the first via 2018-10-16T09:03:28.823525693Z 48(52) DEBUG: <core> [core/parser/parse_addr_spec.c:864]: parse_addr_spec(): end of header reached, state=10 2018-10-16T09:03:28.823530619Z 48(52) DEBUG: <core> [core/parser/msg_parser.c:171]: get_hdr_field(): <To> [32]; uri=[sip:rex@192.168.56.111] 2018-10-16T09:03:28.823536065Z 48(52) DEBUG: <core> [core/parser/msg_parser.c:172]: get_hdr_field(): to body ["rex" sip:rex@192.168.56.111 2018-10-16T09:03:28.823541562Z ] 2018-10-16T09:03:28.823546189Z 48(52) DEBUG: <core> [core/parser/msg_parser.c:152]: get_hdr_field(): cseq <CSeq>: <21> <REGISTER> 2018-10-16T09:03:28.823551761Z 48(52) DEBUG: <core> [core/receive.c:208]: receive_msg(): --- received sip message - request - call-id: [3D1vuRIhoP] - cseq: [21 REGISTER] 2018-10-16T09:03:28.823556553Z 48(52) DEBUG: <core> [core/parser/msg_parser.c:89]: get_hdr_field(): found end of header 2018-10-16T09:03:28.823561121Z {1 21 REGISTER 3D1vuRIhoP} 48(52) DEBUG: <core> [core/receive.c:256]: receive_msg(): preparing to run routing scripts... 2018-10-16T09:03:28.823581455Z {1 21 REGISTER 3D1vuRIhoP} 48(52) exec: *** cfgtrace:request_route=[DEFAULT_ROUTE] c=[/etc/kamailio/kamailio.cfg] l=467 a=5 n=route 2018-10-16T09:03:28.823594380Z {1 21 REGISTER 3D1vuRIhoP} 48(52) exec: *** cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=579 a=16 n=if 2018-10-16T09:03:28.823600865Z {1 21 REGISTER 3D1vuRIhoP} 48(52) exec: *** cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=584 a=16 n=if 2018-10-16T09:03:28.823606633Z {1 21 REGISTER 3D1vuRIhoP} 48(52) exec: *** cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=579 a=25 n=mf_process_maxfwd_header 2018-10-16T09:03:28.823611928Z {1 21 REGISTER 3D1vuRIhoP} 48(52) DEBUG: maxfwd [mf_funcs.c:74]: is_maxfwd_present(): value = 70 2018-10-16T09:03:28.823616365Z {1 21 REGISTER 3D1vuRIhoP} 48(52) exec: *** cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=589 a=16 n=if 2018-10-16T09:03:28.823620781Z {1 21 REGISTER 3D1vuRIhoP} 48(52) exec: *** cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=584 a=25 n=is_method 2018-10-16T09:03:28.823625526Z {1 21 REGISTER 3D1vuRIhoP} 48(52) exec: *** cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=593 a=16 n=if 2018-10-16T09:03:28.823630296Z {1 21 REGISTER 3D1vuRIhoP} 48(52) exec: *** cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=589 a=26 n=sanity_check 2018-10-16T09:03:28.823634999Z {1 21 REGISTER 3D1vuRIhoP} 48(52) ERROR: sanity [sanity_mod.c:227]: w_sanity_check(): input parameter (17895) outside of valid range <1-16384) 2018-10-16T09:03:28.823640158Z {1 21 REGISTER 3D1vuRIhoP} 48(52) exec: *** cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=590 a=25 n=xlog 2018-10-16T09:03:28.823645318Z {1 21 REGISTER 3D1vuRIhoP} 48(52) ERROR: <script>: Malformed SIP message from 10.255.0.2:5060 2018-10-16T09:03:28.823762609Z {1 21 REGISTER 3D1vuRIhoP} 48(52) exec: *** cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=591 a=2 n=exit 2018-10-16T09:03:28.823770707Z {1 21 REGISTER 3D1vuRIhoP} 48(52) DEBUG: <core> [core/receive.c:298]: receive_msg(): request-route executed in: 92 usec 2018-10-16T09:03:28.823776922Z {1 21 REGISTER 3D1vuRIhoP} 48(52) DEBUG: <core> [core/usr_avp.c:636]: destroy_avp_list(): destroying list (nil) 2018-10-16T09:03:28.823782492Z {1 21 REGISTER 3D1vuRIhoP} 48(52) DEBUG: <core> [core/usr_avp.c:636]: destroy_avp_list(): destroying list (nil) 2018-10-16T09:03:28.823787580Z {1 21 REGISTER 3D1vuRIhoP} 48(52) DEBUG: <core> [core/usr_avp.c:636]: destroy_avp_list(): destroying list (nil) 2018-10-16T09:03:28.823792062Z {1 21 REGISTER 3D1vuRIhoP} 48(52) DEBUG: <core> [core/usr_avp.c:636]: destroy_avp_list(): destroying list (nil) 2018-10-16T09:03:28.823806720Z {1 21 REGISTER 3D1vuRIhoP} 48(52) DEBUG: <core> [core/usr_avp.c:636]: destroy_avp_list(): destroying list (nil) 2018-10-16T09:03:28.823812531Z {1 21 REGISTER 3D1vuRIhoP} 48(52) DEBUG: <core> [core/usr_avp.c:636]: destroy_avp_list(): destroying list (nil) 2018-10-16T09:03:28.823817832Z {1 21 REGISTER 3D1vuRIhoP} 48(52) DEBUG: <core> [core/xavp.c:446]: xavp_destroy_list(): destroying xavp list (nil) 2018-10-16T09:03:28.823830768Z {1 21 REGISTER 3D1vuRIhoP} 48(52) DEBUG: <core> [core/receive.c:388]: receive_msg(): cleaning up ``````
This is the tracker used for reporting bugs and requesting new features. If you have issues with your configuration file, use the sr-users@lists.kamailio.org mailing list.
In short, look at you sanity check function parameter, it has an invalid value for v5.1.x. If you cant sort it out, write to mailing list.
Closed #1678.