Update the default extension

This patch updates the default extension.  This is what a caller would
hit if they called sip:openstack.org (as opposed to
sip:6000@openstack.org), or when they are calling in via the PSTN.  It
asks them to enter a conference number and then hit #.  It will give up
after 3 tries and just hang up.

I moved the 'spam' playback that I originally had to only play if you
enter the digits for spam (7726).

Change-Id: Ia82b9b52766ee191e3fd6f20d4e3b7fbb56f1f5b
This commit is contained in:
Russell Bryant 2013-07-18 19:31:35 +00:00 committed by James E. Blair
parent 807d34f018
commit b7424586a5

View File

@ -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)