Skip to content

Commit

Permalink
fixed voice selection, and made voices without published audio return…
Browse files Browse the repository at this point in the history
… congestion
  • Loading branch information
Paul Seward committed Jan 19, 2016
1 parent 6a27561 commit 5ea254b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions macro.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,24 @@
exten => s,1,Set(tz=Europe/London) ; Change this to be your timezone, see /usr/share/zoneinfo for other options

; Check the voice parameter matches one of the voices available, default to PAT
exten => s,n,Set(VOICE=${FILTER(ABCDEFGHIJKLMNOPQRSTUVWXYZ,TOUPPER(${ARG1}))})
exten => s,n,Set(VOICE=${FILTER(ABCDEFGHIJKLMNOPQRSTUVWXYZ,${TOUPPER(${ARG1})})})
exten => s,n,GotoIf($["${VOICE}":"GORDON"]?set_gordon)
exten => s,n,GotoIf($["${VOICE}":"ETHEL"]?set_ethel)
exten => s,n,GotoIf($["${VOICE}":"PAT"]?set_pat)
exten => s,n,Goto(set_pat)

; Use Gordon Gow (Australia) - AUDIO NOT YET AVAILABLE
; Use Gordon Gow (Australia)
exten => s,n(set_gordon),Set(VOICE="gordon_gow")
exten => s,n,Goto(tim_ringtone)

; Use Ethel Cain (UK) - AUDIO NOT YET AVAILABLE
exten => s,n(set_ethel),Set(VOICE="ethel_cain")
exten => s,n,Goto(tim_ringtone)
; Use Ethel Cain (UK) - AUDIO NOT YET AVAILABLE so return congestion tone
; exten => s,n(set_ethel),Set(VOICE="ethel_cain")
; exten => s,n,Goto(tim_ringtone)
;
exten => s,n(set_ethel),Progress
exten => s,n,Playtones(congestion)
exten => s,n,Wait(10)
exten => s,n,Hangup

; Use Pat Simmons (UK)
exten => s,n(set_pat),Set(VOICE="pat_simmons")
Expand Down

0 comments on commit 5ea254b

Please sign in to comment.