[asterisk-users] Realtime logic in Asterisk 1.4.16.1
Mindaugas Kezys
mkezys at gmail.com
Wed Dec 19 16:12:27 CST 2007
Hello,
I have configured one provider in Asterisk Realtime DB without username and password, only host=<providers_IP> and ipaddress=<providers_IP>
Now when I'm trying to send call using this provider I'm using following string: Dial(SIP/NUMBER at Provider)
In Asterisk 1.4.15 debug I see that Realtime engine is using query:
[Dec 20 00:02:15] DEBUG[14634]: res_config_mysql.c:138 realtime_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM devices WHERE name = 'Provider'
to retrieve info about this device.
And in Asterisk 1.4.16.1 I see:
[Dec 20 00:04:12] DEBUG[25686]: res_config_mysql.c:138 realtime_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM devices WHERE name = 'Provider' AND host = 'dynamic'
Note: host = 'dynamic'
Where this came from? In mine DB host=<providers_IP>, how Asterisk managed to visualize that it should be "dynamic"?!
Offcourse I get:
[Dec 20 00:05:58] WARNING[25686]: chan_sip.c:2898 create_addr: No such host: Provider
[Dec 20 00:05:58] WARNING[25686]: app_dial.c:1191 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination)
== Everyone is busy/congested at this time (1:0/0/1)
Because Realtime Engine is not able to find my Provider which is NOT DYNAMIC!
No other settings changed. Same configuration files. res_config_mysql.so recompiled to 1.4.16.1.
Please help or explain what's wrong!
Regards,
Mindaugas Kezys
http://www.kolmisoft.com
MOR - Advanced Billing for Asterisk PBX
More information about the asterisk-users
mailing list