[asterisk-users] Realtime logic in Asterisk 1.4.16.1

Michiel van Baak michiel at vanbaak.info
Wed Dec 19 16:22:28 CST 2007


On 00:12, Thu 20 Dec 07, Mindaugas Kezys wrote:
> 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!

Have a look at
http://downloads.digium.com/pub/security/AST-2007-027.pdf

That's why it's not working anymore

-- 

Michiel van Baak
michiel at vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer afficionados are both called users?"




More information about the asterisk-users mailing list