modparam("dispatcher", "db_url", "mysql://kamailio:kamailiorw@localhost/kamailio")
modparam("dispatcher", "table_name", "dispatcher")
modparam("dispatcher", "flags", 2)
modparam("dispatcher", "dst_avp", "$avp(AVP_DST)")
modparam("dispatcher", "grp_avp", "$avp(AVP_GRP)")
modparam("dispatcher", "cnt_avp", "$avp(AVP_CNT)")
modparam("dispatcher", "dstid_avp", "$avp(dsdstid)")
modparam("dispatcher", "ds_hash_size", 2)
--------------------------------------------------------------
but when i hit $ kamailio
out put:
ERROR: bad config file (4 errors)
------------------------------------------------------
logs :
kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server
Loaded: loaded (/lib/systemd/system/kamailio.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-11-20 15:16:34 IST; 16s ago
Process: 25747 ExecStart=/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP (code=exited, status=255/EXCEPTION)
Nov 20 15:16:34 gaurav-Latitude-E7240 systemd[1]: kamailio.service: Service RestartSec=100ms expired, scheduling restart.
Nov 20 15:16:34 gaurav-Latitude-E7240 systemd[1]: kamailio.service: Scheduled restart job, restart counter is at 5.
Nov 20 15:16:34 gaurav-Latitude-E7240 systemd[1]: Stopped Kamailio (OpenSER) - the Open Source SIP Server.
Nov 20 15:16:34 gaurav-Latitude-E7240 systemd[1]: kamailio.service: Start request repeated too quickly.
Nov 20 15:16:34 gaurav-Latitude-E7240 systemd[1]: kamailio.service: Failed with result 'exit-code'.
Nov 20 15:16:34 gaurav-Latitude-E7240 systemd[1]: Failed to start Kamailio (OpenSER) - the Open Source SIP Server.
-------------------------------------------------------------
plz help me
--
Thank you
Regards:
Gaurav Kumar