<div dir="ltr"><div>Hi Dears,<br>I'm trying to configure Kamailio as SBC in multi home mode for Asterisk by authenticating the inbound SIP registration requests,i'm following this tutorial <a href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb">http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb</a>  to achieve this goal. i have modified the necessary changes like the Asterisk DB URL and the SIP table name and Username and password column and verified the Mysql connection.<br><br>My topology like this Asterisk (192.168.100.10)  <----Internal:192.168.100.1---->Kamailio<---External:192.168.50.1-----> SIP Phone (192.168.50.2)<br>But when trying to register a SIP phone Kamailio generates these error messages <br><br>Nov 22 17:19:20 debian /usr/local/sbin/kamailio[6434]: ERROR: db_mysql [km_dbase.c:122]: db_mysql_submit_query(): driver error on query: Unknown column 'secret' in 'field list'<br>Nov 22 17:19:20 debian /usr/local/sbin/kamailio[6434]: ERROR: <core> [db_query.c:132]: db_do_query_internal(): error while submitting query<br>Nov 22 17:19:20 debian /usr/local/sbin/kamailio[6434]: ERROR: auth_db [authorize.c:175]: get_ha1(): failed to query database<br><br>The Auth_DB Params in the configuration file is as follows.<br><br># ----- auth_db params -----<br>#!ifdef WITH_AUTH<br>modparam("auth_db", "calculate_ha1", yes)<br>modparam("auth_db", "load_credentials", "")<br><br>#!ifdef WITH_ASTERISK<br>modparam("auth_db", "user_column", "account")<br>modparam("auth_db", "password_column", "secret")<br>modparam("auth_db", "db_url", DBASTURL)<br>modparam("auth_db", "version_table", 0)<br>#!else<br>modparam("auth_db", "db_url", DBURL)<br>modparam("auth_db", "password_column", "password")<br>modparam("auth_db", "use_domain", MULTIDOMAIN)<br>#!endif<br><br></div>I tried also to give the Auth_DB module all the paramaters like this but still receiving the same error ! So any ideas about the cause of the problem and how to solve it please ?<br><br># ----- auth_db params -----<br>#!ifdef WITH_AUTH<br>modparam("auth_db", "user_column", "account")<br>modparam("auth_db", "password_column", "secret")<br>modparam("auth_db", "db_url", "mysql://<a href="http://sipuser:sippassword@192.168.100.10/asterisk">sipuser:sippassword@192.168.100.10/asterisk</a>")<br>modparam("auth_db", "calculate_ha1", yes)<br>modparam("auth_db", "load_credentials", "")<br> <br>#!ifdef WITH_ASTERISK<br>modparam("auth_db", "user_column", "account")<br>modparam("auth_db", "password_column", "secret")<br>modparam("auth_db", "db_url", "mysql://<a href="http://sipuser:sippassword@192.168.100.10/asterisk">sipuser:sippassword@192.168.100.10/asterisk</a>")<br>modparam("auth_db", "version_table", 0)<br>#!else<br>modparam("auth_db", "db_url", "db_url","mysql://<a href="http://sipuser:sippassword@192.168.100.10/asterisk">sipuser:sippassword@192.168.100.10/asterisk</a>")<br>modparam("auth_db", "password_column", "secret")<br>modparam("auth_db", "user_column", "account")<br>modparam("auth_db", "use_domain", MULTIDOMAIN)<br>#!endif<br><div><br><br></div></div>