Interesting!

2012/11/6 Emilius Omeen <[email protected]>

>
> in current realization web2py app connect only with mysql db, and Asterisk
> get sip peers configuration from DB, Asterisk get dialplan configuration
> from DB too. In next versions I think need to add possibility to change
> asterisk conf files using Asterisk AMI.
> Asterisk qery sql db for check sip peers configuration, and save sip peers
> state in sql table.
>
> more information about realtime technology
> http://www.voip-info.org/wiki/view/Asterisk+RealTime
> in Asterisk need to add supporting res_config_mysql.so (MySQL RealTime
> Configuration Driver)
> (MySQL RealTime Configuration Driver)
>  -/etc/asterisk/extconfig.conf
> sipusers => mysql,realtimesip, sip_conf_db
> sippeers => mysql,realtimesip, sip_conf_db
> extensions=> mysql,realtimesip, realtime_ext3
>  add in file /etc/asterisk/extensions.conf
> switch => Realtime/@extensions
>  - in /etc/asterisk/res_config_mysql.conf
> [realtimesip]
> dbhost = 127.0.0.1
> dbname = webtopy
> dbuser = testuser
> dbpass = topsecret
> dbport = 3306
> dbsock = /var/run/mysqld/mysqld.sock
> requirements=warn
>
> in web2py models/db.py
> db = DAL('mysql://testuser:topsecret@localhost:3306/webtopy')
>  ... definition of asterisk tables
>
>
> понедельник, 5 ноября 2012 г., 1:37:54 UTC+4 пользователь Ramos написал:
>
>> I like asterisk.
>> How do you connect to asterisk from web2py?
>>
>>
>>  --
>
>
>
>

-- 



Reply via email to