2016-10-24 3 views
-3
2016-10-24 02:37:33.733197 [INFO] mod_dialplan_xml.c:637 Processing 1985922714 <1985922714>->4595609013 in context default 
2016-10-24 02:37:33.753200 [ERR] switch_odbc.c:368 STATE: 01000 CODE 0 ERROR: [unixODBC][Driver Manager]Can't open lib '/usr/lib64/libmyodbc5.so' : file not found 

2016-10-24 02:37:33.753200 [CRIT] switch_core_sqldb.c:508 Failure to connect to ODBC ASTPP! 
2016-10-24 02:37:33.753200 [ERR] freeswitch_lua.cpp:367 Connection failed. DBH NOT Connected. 
2016-10-24 02:37:33.753200 [ERR] freeswitch_lua.cpp:460 DBH NOT Connected. 
2016-10-24 02:37:33.753200 [ERR] mod_lua.cpp:203 /usr/local/freeswitch/scripts/astpp/lib/astpp.functions.lua:32: assertion failed! 
stack traceback: 
     [C]: in function 'assert' 
     /usr/local/freeswitch/scripts/astpp/lib/astpp.functions.lua:32: in function 'load_conf' 
     /usr/local/freeswitch/scripts/astpp/astpp.lua:49: in main chunk 
2016-10-24 02:37:33.753200 [ERR] mod_lua.cpp:270 LUA script parse/execute error! 
2016-10-24 02:37:33.753200 [CRIT] mod_dptools.c:1713 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 
2016-10-24 02:37:33.753200 [CRIT] mod_dptools.c:1713 Open /usr/local/freeswitch/conf/vars.xml and change the default_password. 
2016-10-24 02:37:33.753200 [CRIT] mod_dptools.c:1713 Once changed type 'reloadxml' at the console. 
+0

Sie didn überprüfen; t geben keine Details über die Installation. Außerdem ist der Fehler 'lib nicht öffnen '/usr/lib64/libmyodbc5.so': Datei nicht gefunden' ist sehr einfach, und Sie müssen in der Lage sein, Ihr System zu verwalten, wenn Sie Software installieren möchten. –

+0

Was haben Sie ausgeführt, um diesen Fehler zu verursachen? – halfer

+1

Das Problem besteht darin, dass Sie mit Ihrem Lua-Skript keine Verbindung zur Datenbank herstellen können. Bitte gehen Sie durch das Lua-Skript, das Sie anrufen, und Sie können den Skriptcode hier auch posten. – suren

Antwort

0

hier ist mein fix:

Lauf:

[[email protected] ~]# cat /etc/odbc.ini 
[ASTPP] 
Driver = /usr/lib64/libmyodbc5.so 
SERVER = localhost 
PORT = 3306 
DATABASE = astpp 
USERNAME = root 
PASSWORD = lozycv 
OPTION = 67108864 
**Socket = /var/run/mysql/mysql.sock** 

dann laufen:

[[email protected] ~]# cat /etc/my.cnf 
[mysqld] 
datadir=/var/lib/mysql 
**socket=/var/lib/mysql/mysql.sock** 
# Disabling symbolic-links is recommended to prevent assorted security risks 
symbolic-links=0 
# Settings user and group are ignored when systemd is used. 
# If you need to run mysqld under a different user or group, 
# customize your systemd unit file for mariadb according to the 
# instructions in http://fedoraproject.org/wiki/Systemd 

[mysqld_safe] 
log-error=/var/log/mariadb/mariadb.log 
pid-file=/var/run/mariadb/mariadb.pid 

# 
# include all files from the config directory 
# 
!includedir /etc/my.cnf.d 

und beachten Sie den richtigen Pfad für mysql.sock und updatethe odbc.ini Datei mit ihm .

0

Bitte Befehl ausgeführt werden soll unter MySQL-Verbindung mit FreeSWITCH®

[isql -v ASTPP] 
Verwandte Themen