<p>I am new to kamailio and I am trying to use docker to install the 5.1.6 version.<br>
I took the image from kamailio/kamailio:5.1.6-xenial and using a 5.7 mysql with it.<br>
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.<br>
Can anyone help?</p>
<p>Thanks</p>
<p>kamailio.cfg</p>
<pre><code>####### 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
</code></pre>
<p>kamctlrc</p>
<pre><code># 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"
</code></pre>
<p>Error Log</p>
<pre><code>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
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1678">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZVUkoN71Tp6_qo8rLXSLYKkNiSaUks5ulaR1gaJpZM4Xd7PP">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZdyBsxl9ZU1UdfwkUyPgYb6aiAweks5ulaR1gaJpZM4Xd7PP.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"w_sanity_check(): input parameter (17895) outside of valid range \u003c1-16384) (#1678)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1678"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1678",
"url": "https://github.com/kamailio/kamailio/issues/1678",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "w_sanity_check(): input parameter (17895) outside of valid range \u003c1-16384) (#1678)",
"sections": [
{
"text": "",
"activityTitle": "**Rex**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@rexuli",
"facts": [
{
"name": "Repository: ",
"value": "kamailio/kamailio"
},
{
"name": "Issue #: ",
"value": 1678
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1678,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1678\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1678"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 393720783\n}"
}
],
"themeColor": "26292E"
}
]</script>