Re: [web2py] web2py for realtime asterisk

2012-11-06 Thread António Ramos
Interesting!

2012/11/6 Emilius Omeen 

>
> 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?
>>
>>
>>  --
>
>
>
>

-- 





Re: [web2py] web2py for realtime asterisk

2012-11-05 Thread Emilius Omeen

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?
>
>
>

-- 





Re: [web2py] web2py for realtime asterisk

2012-11-04 Thread António Ramos
I like asterisk.
How do you connect to asterisk from web2py?



2012/11/4 Emilius Omeen 

> hello
>
> may be this app will be interesting somebody.
> this app for Asterisk sql database then in asterisk use realtime module.
> addititonal CDR will be accessible from DB.
> source https://github.com/OEmilius/asterisk
> http://emilius.pythonanywhere.com/asterisk - see demo
>
> add sip peers, control state of sip peers
> add/mod/del extensions in realtime dialplan.
> see cdr
> --
>
>
>
>

-- 





[web2py] web2py for realtime asterisk

2012-11-04 Thread Emilius Omeen
hello

may be this app will be interesting somebody.
this app for Asterisk sql database then in asterisk use realtime module.
addititonal CDR will be accessible from DB.
source https://github.com/OEmilius/asterisk
http://emilius.pythonanywhere.com/asterisk - see demo

add sip peers, control state of sip peers
add/mod/del extensions in realtime dialplan.
see cdr

--