Russell Bryant 5eadfe1795 pbx: Wait 1 second before playing a prompt
Add a wait of 1 second after answering and before playing a prompt.
Sometimes it takes a little bit of time to set up the audio path.
If you don't wait a bit, the caller will miss the beginning of the
prompt.

Change-Id: Ied25fd6d90638d938b0cd04562ad15de1e7d0426
2013-07-22 10:11:04 -04:00

33 lines
976 B
Plaintext

; extensions.conf customizations for pbx.openstack.org
[public]
exten => s,1,Answer()
same => n,Wait(1)
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()
; Easter egg -- spam on the keypad.
exten => 7726,1,Answer()
same => n,Wait(1)
same => n,Playback(spam)
same => n,Hangup()
; All other extensions go to s,1
exten => _X.,1,Goto(s,1)