From fbfefe6edc21eb9b680078ecc1708d11de0cd40f Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Wed, 21 Oct 2015 13:41:58 -0400 Subject: [PATCH] Add echo test to asterisk This extension will give the user the ability to test there SIP connection with Asterisk. Basically, when somebody dials 5000, they will hear a message stating it is an echo test and allow the person to talk into their phone. Asterisk will echo back when it hears. Change-Id: I4b4002ce4ec0a3de3f434754aff9d17d6b82fcb8 Signed-off-by: Paul Belanger --- .../files/pbx/asterisk/extensions.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/openstack_project/files/pbx/asterisk/extensions.conf b/modules/openstack_project/files/pbx/asterisk/extensions.conf index 1a22bee879..18fd482eb5 100644 --- a/modules/openstack_project/files/pbx/asterisk/extensions.conf +++ b/modules/openstack_project/files/pbx/asterisk/extensions.conf @@ -22,6 +22,14 @@ exten => _[67]XXX,1,Answer() same => n,ConfBridge(${EXTEN},,,sample_user_menu) same => n,Hangup() +; Echo test +exten => 5000,1,Answer() + same => n,Wait(1) + same => n,Playback(demo-echotest) + same => n,Echo() + same => n,Playback(demo-echodone) + same => n,Hangup() + ; Easter egg -- spam on the keypad. exten => 7726,1,Answer() same => n,Wait(1) @@ -33,3 +41,6 @@ exten => _X.,1,Goto(s,1) ; Let someone call in to sip:conference@pbx.openstack.org exten => conference,1,Goto(s,1) + +; Let someone call in to sip:echo@pbx.openstack.org +exten => echo,1,Goto(5000,1)