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

en voir plus : raspbx, script combine php files, asterisk ivr text voice, script whm skeleton files, callback script asterisk, bash shell script find move files, script move log files check name, linux example script delete owner files, php script send attached files, asterisk festival best voice, script compare xls files

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

Nº du projet : #8521448

Décerné à:


"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.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 3 jours
(6 Commentaires)

4 freelance font une offre moyenne de $195 pour ce travail


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

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(94 Commentaires)

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

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(35 Commentaires)

Yes, I have!

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(0 Commentaires)