Yes, you're correct. Default values are:
modparam("app_python", "script_name", "/usr/local/etc/sip-router/handler.py"
modparam("app_python", "mod_init_function", "mod_init")
modparam("app_python", "child_init_method", "child_init")
But app_python is nothing related to db_mysql.
Anyways, see my test:
root@raspberrypi:/opt/kamailio# grep python etc/kamailio/kamailio.cfg
loadmodule "app_python.so"
root@raspberrypi:/opt/kamailio# cat /usr/local/etc/sip-router/handler.py
class Handler(object):
def child_init(self, y):
return 0
def mod_init():
return Handler()
root@raspberrypi:/opt/kamailio# ./start.sh
loading modules under /usr/local/lib/kamailio/modules_k/:/opt/kamailio/lib/kamailio/modules/
0(4536) NOTICE: <core> [sr_module.c:627]: /opt/kamailio/lib/kamailio/modules/app_python.so: exports dlflags interface is deprecated and it will not be supported in newer versions; consider using mod_register() instead
0(4536) WARNING: <core> [socket_info.c:1407]: WARNING: fix_hostname: could not rev. resolve 0.0.0.0
Listening on
udp:
0.0.0.0:5062Aliases:
WARNING: no fork mode
0(4536) INFO: rr [../outbound/api.h:49]: Failed to import bind_ob
0(4536) INFO: rr [rr_mod.c:159]: outbound module not available
0(4536) INFO: usrloc [hslot.c:53]: locks array size 512
0(4536) INFO: <core> [udp_server.c:179]: INFO: udp_init: SO_RCVBUF is initially 163840
0(4536) INFO: <core> [udp_server.c:230]: INFO: udp_init: SO_RCVBUF is finally 327680
4(4540) INFO: ctl [io_listener.c:221]: io_listen_loop: using epoll_lt as the io watch method (auto detected)
So nothing fails there.