I have a problem with Asterisk Realtime setup for sip and extensions, I have tried every possible thing nothing works :-
My Asterisk Version :-
Connected to Asterisk 1.2.12.1 currently running on asterisk1 (pid = 2061)
Status of mysql realtime :-
asterisk1*CLI> realtime mysql status
Connected to asteriskrealtime@127.0.0.1, port 3306 with username root for 1 minutes, 38 seconds.
My extconf.conf :-
[settings]
sipusers =>mysql,asterisk,sip_buddies
sippeers => mysql,asterisk,sip_buddies
extensions => mysql,asterisk,extensions_r
voicemail => mysql,asterisk,voicemessages
queues => mysql,asterisk,queues
queue_members => mysql,asterisk,queue_members
My sip.conf
[general]
context=default ; Default context for incoming calls
bindport=5060
type=friend
rtcachefriends = yes
Debug Details by using asterisk -vvvvvvvvgc shows that mysql realtime is loaded :-
MySQL RealTime driver loaded.
[app_realtime.so] => (Realtime Data Lookup/Rewrite)
[pbx_realtime.so] => (Realtime Switch)
[res_features.so] => (Call Features Resource)
I have merged the standard Asteriskrealtime database tables to asterisk database thats why you will see asterisk as DB in sipusers =>mysql,asterisk,sip_buddies .
When registering with x-lite to a sip user in sip.conf as static it works fine :-
– Registered SIP ‘203’ at 122.169.89.91 port 12092 expires 3600
– Saved useragent “X-Lite release 1100l stamp 47546” for peer 203
Where as if i try to register an entry in database with same x-lite it shows nothing at all on cli debug but on xlite it gives Not found 404 error .
Even checked the debug logs and I dont see any query fail error only references to mysql or realtime are :-
4 16:22:59 VERBOSE[2866] logger.c: [res_config_mysql.so]Nov 4 16:22:59 VERBOSE[2866] logger.c: [res_config_mysql.so] => (MySQL RealTime Configuration Driver
4 16:22:59 DEBUG[2866] res_config_mysql.c: MySQL RealTime Host: 127.0.0.1
Nov 4 16:22:59 DEBUG[2866] res_config_mysql.c: MySQL RealTime Port: 3306
Nov 4 16:22:59 DEBUG[2866] res_config_mysql.c: MySQL RealTime User: root
Nov 4 16:22:59 DEBUG[2866] res_config_mysql.c: MySQL RealTime Password: pass55689
Nov 4 16:22:59 DEBUG[2866] res_config_mysql.c: MySQL RealTime: Successfully connected to database.
Nov 4 16:22:59 NOTICE[2866] config.c: Registered Config Engine mysql
Nov 4 16:22:59 VERBOSE[2866] logger.c: MySQL RealTime driver loaded.
Nov 4 16:22:59 VERBOSE[2866] logger.c: [app_realtime.so]Nov 4 16:22:59 VERBOSE[2866] logger.c: [app_realtime.so] => (Realtime Data Lookup/Rewrite)
Nov 4 16:22:59 VERBOSE[2866] logger.c: [pbx_realtime.so]Nov 4 16:22:59 VERBOSE[2866] logger.c: [pbx_realtime.so] => (Realtime Switch)
Nov 4 16:22:59 VERBOSE[2866] logger.c: [res_features.so]Nov 4 16:22:59 VERBOSE[2866] logger.c: [res_features.so] => (Call Features Resource)
I tried the following and got the error but when i tried to look for error entry on log files both full and debug at /var/log/asterisk where debug and full log files are located i could not find the error as it says in the error below am I looking at wrong place ? I believe if I can find the reason of this error then may be I would be able to trace it down
*CLI> realtime update sipusers name 200 username 121
Failed to update. Check the debug log for possible SQL related entries.
*CLI>