En cours

Asterisk script to with RaspberryPi GPIO support

I need an Asterisk script which will be running on a RaspberryPi (RasPBX).

The script will interface with some GPIO ports.

The script resembles a very simple and "fake" voicemail system.

It shall provide an extension that will:

1) ring once

2) play greeting_file

3) wait for DTMF input of 4 a digit code for X seconds

4) if timeout the script shall play timeout_file

5) if wrong code the script shall play wrong_code_file *AND* shall pull a GPIO (BCM) port 5 to GND for 150ms (+/-50ms)

6) if correct code then the script will play correct_code_file *AND* shall pull GPIO (BCM) port 6 to GND for 150ms (+/-50ms)

7) after end of correct_code_file play menu_file

8) then wait for single digit input for X seconds

9) if timeout the script shall play menu_file again

10) if 1 has been entered then play correct_code_file again and go to 7)

11) if 2 has been entered then hangup

GPIO (BCM) port 13 is configured as an input.

If that is LOW then the script shall play all prompts (voice files) in another language (language 2)

One way to go about this might be to use external python scripts.

So when ever a GPIO should be triggered then the Asterisk script would call the python script.

The language switch could also be done via a python script that continuously monitors the GPIO port 13. When the port is LOW it will rename a folder called "language_inactive" to "language_active" and vice versa when the port is HIGH it will revert the process. That is obviously a simplification as you would not be able to rename in just one step. :)

The way you deal with GPIO is totally up to you. The examples with the Python scripts were just meant as an example of how to possibly go about this.

Please make sure that your bid starts with the sentence "Yes, I have!" so that I know that you have fully read this project description. Otherwise your bid will be ignored.

Compétences : PBX Asterisk, Linux, PHP

Voir plus : raspbx, script combine php files, asterisk ivr text voice, script whm skeleton files, callback script asterisk, asterisk festival best voice, script compare xls files

Concernant l'employeur :
( 76 commentaires ) Hamburg, Germany

N° du projet : #8521448

Décerné à :

ast3r1sk

"Yes, I have!" Hello dear sir, i dont work with RaspberryPi before but i read about python on Pi and i think can make this project for you. Please contact me. Thanks.

166 $ USD en 3 jours
(6 Commentaires)
3.0

4 freelance ont fait une offre moyenne de 195 $ pour ce travail

malviyamanish

Dear Client Greetings, Hopefully you are doing well. I have working experience of more than 6 years in Web Site design & development and have developed more than 300 websites here on freelancer.com & more than 400 pr Plus

263 $ USD en 3 jours
(94 Commentaires)
6.2
kirillshilov

Hi i can help you!!! I have experience .

222 $ USD en 3 jours
(35 Commentaires)
4.8
valadhi

Yes, I have!

127 $ USD en 5 jours
(0 Commentaires)
0.0