make sure to read the realtime wiki…
did you even setup your database? did you setup the tables?
the asterisk realtime wiki has the DB structure that you need…
[quote=“dosti”]thanks for reply…i follow ur suggestions and now its seems a bit better…and now i got this reply.
*CLI>
Nov 17 11:13:11
DEBUG[3113]: res_config_mysql.c:674 mysql_reconnect: MySQL RealTime: Everything is fine.
Nov 17 11:13:11 WARNING[3113]: res_config_mysql.c:415 config_mysql: MySQL RealTime: Failed to query database. Check debug for more info.
Nov 17 11:13:11 WARNING[3113]: res_config_mysql.c:415 config_mysql: MySQL RealTime: Failed to query database. Check debug for more info.
Nov 17 11:13:11 DEBUG[3113]:
res_config_mysql.c:416 config_mysql: MySQL RealTime: Query: SELECT category, var_name, var_val, cat_metric FROM sip_budd WHERE filename=‘sip.conf’ and commented=0 ORDER BY filename, cat_metric desc, var_metric asc, category, var_name, var_val, id
Nov 17 11:13:11 DEBUG[3113]:
res_config_mysql.c:417 config_mysql: MySQL RealTime: Query Failed because: Unknown column ‘category’ in 'field list’
Nov 17 11:13:11 NOTICE[3113]: chan_sip.c:12487 reload_config: Unable to load config sip.conf
Nov 17 11:13:11 NOTICE[3113]: chan_sip.c:12487 reload_config: Unable to load config sip.conf
configuration r as under
res_mysql.conf
[general]
dbhost = 127.0.0.1
dbname = asterisk
dbuser = root
dbpass = 123
dbport = 3306
dbsock = /var/lib/mysql/mysql.sock // (i found mysql sock here)
and set password for mysql
SET PASSWORD FOR
-> ‘root’@localhost’ = OLD_PASSWORD(‘123’); //(and its ok)
set privileges as
grant show databases on . to asterisk@localhost identified by 123;
extconfig.conf
sip.conf => mysql,asterisk,sip_budd
so…[/quote]