Hello, I configured Asterisk 20.2.0 (Mysql + Realtime), configured pjsip, however, after rebooting the server (sudo reboot), pjsip list endpoints shows that the status of the points is Unavailable
if I enter core reload via CLI> core reload the status changes to Not in use as it should
how fix this?
still a question where the timer on the Unavailable/Not Use status in Endpoints is regulated? I noticed that the status of SIP Phones is not updated as fast as I would like (Program MicroSIP checking fast and show correct status)
I just read a book on setting up Asterisk (Asterisk Cookbook - Leif Madsen and Russell Bryant) and made a test server and realtime was used there
AORs Endpoints Contacts all work i can call to internal clients
there is evidence that there was no connection to the database
[Apr 5 16:59:06] WARNING[740] res_odbc.c: res_odbc: Error SQLConnect=-1 errno=2002 [unixODBC][MySQL][ODBC 8.0(a) Driver]Can't connect to local MySQL server through socket '/var/lib/m
[Apr 5 16:59:06] ERROR[740] res_config_odbc.c: No database handle available with the name of 'asterisk' (check res_odbc.conf)
[Apr 5 16:59:06] WARNING[740] res_odbc.c: res_odbc: Error SQLConnect=-1 errno=2002 [unixODBC][MySQL][ODBC 8.0(a) Driver]Can't connect to local MySQL server through socket '/var/lib/m
[Apr 5 16:59:06] ERROR[740] res_config_odbc.c: No database handle available with the name of 'asterisk' (check res_odbc.conf)
and when I manually run a kernel reload the database is already running
this suggests that Asterisk starts up faster than mysqld and hence the problem,
how can I delay the launch in systemctl for Asterisk?
hm before my database had the name mysql, but now mysqld (after the update) where does the database startup check in Asterisk take place? to change the service name there