diff --git a/modules/openstack_project/files/pbx/asterisk/extensions.conf b/modules/openstack_project/files/pbx/asterisk/extensions.conf index b41cfa4e6c..015fb1a38e 100644 --- a/modules/openstack_project/files/pbx/asterisk/extensions.conf +++ b/modules/openstack_project/files/pbx/asterisk/extensions.conf @@ -2,14 +2,27 @@ [public] -exten => s,1,Goto(spam,1) +exten => s,1,Answer() + same => n,Set(RETRIES=3) + same => n,Set(COUNT=0) + same => n,While($[${COUNT} < ${RETRIES}]) + same => n,Read(CONFNUM,conf-getconfno) + same => n,Verbose(3,${CHANNEL(name)} entered conference number: ${CONFNUM}) + same => n,GotoIf(${DIALPLAN_EXISTS(public,${CONFNUM},1)}?${CONFNUM},1) + same => n,Set(COUNT=$[${COUNT} + 1]) + same => n,ExecIf($[${COUNT} < ${RETRIES}]?Playback(conf-invalid)) + same => n,EndWhile() + same => n,Playback(vm-goodbye) + same => n,Hangup() ; Default setup for a Conference bridge. ; Conferences are 6000 - 6999 exten => _6XXX,1,Answer() same => n,ConfBridge(${EXTEN},,,sample_user_menu) + same => n,Hangup() -exten => spam,1,Answer() +; Easter egg -- spam on the keypad. +exten => 7726,1,Answer() same => n,Playback(spam) + same => n,Hangup() -exten => _X.,1,Goto(spam,1)