No, its not private i post all code. No problem.
First, study Asterisk. Its all around 2 files
extensions.conf, where you define calling rules
sip.conf where you define your phone line users

in extensions.conf i have

exten => 700,1,Answer()
same => n,Read(TMP,vm-enter-num-to-call,1,,1,3)
same => n,AGI(script4.py,${TMP})
same => n,Hangup()

it means that when someone call 700 ( like you see in my youtube video)
asterisk will answer the call and plays the predefined sound ("
vm-enter-num-to-call").
As soon as the caller presses a button , asterisk places that button in
temp and calls a python script with temp as argument.
The python script calls a webservice in web2py that uses tornado messages
to update the browser.
Simple ?
Yes its that simple. Use a softphone to test it. To use a regular phone you
have to interface asterisk with the phone line.
Use Linksys SPA 3102 voip gateway. This could be a litle hard to configure
but if i can do it so can you(all).

Best regards
António



2012/8/13 Massimo Di Pierro <[email protected]>

> Nice. Is this posted somewhere or private?
>
>
> On Sunday, 12 August 2012 08:15:09 UTC-5, Ramos wrote:
>
>> i have a phone voting system with web2py and asterisk
>>
>> http://www.youtube.com/watch?v=vCNoAyKN86o
>>
>>
>>
>> 2012/8/12 Alan Etkin <[email protected]>
>>
>> I like it. I'd consider as a new feature (if not implemented yet) the
>>> option of submitting a new vote replacing the previous before deadline.
>>>
>>> El viernes, 10 de agosto de 2012 18:24:10 UTC-3, Massimo Di Pierro
>>> escribió:
>>>
>>>> Demo service:
>>>>
>>>>    https://tests.web2py.com/evote/default/index
>>>>
>>>> Source:
>>>>
>>>>    https://github.com/mdipierro/evote
>>>>
>>>> I could use some help checking it. Specifically usability and security.
>>>>
>>>> Massimo
>>>>
>>> --
>>>
>>>
>>>
>>>
>>
>>  --
>
>
>
>

-- 



Reply via email to