Skip to content

Instantly share code, notes, and snippets.

@elcontrastador
Created September 28, 2011 18:20
Show Gist options
  • Save elcontrastador/1248753 to your computer and use it in GitHub Desktop.
Save elcontrastador/1248753 to your computer and use it in GitHub Desktop.
exten => 7998,1,Answer()
same => n,Wait(0.5)
same => n,Read(ROOM,conf-getconfno,,,3,10)
same => n,GotoIf(${DB_EXISTS(ONEIF_NET_CONFROOM/${ROOM})}?yes:no)
same => n(no),Playback(conf-errormenu)
same => n,SayText(Dial star 7 9 9 8 to set up a new conference room)
same => n,Playback(vm-goodbye)
same => n,Hangup()
same => n(yes),Read(CONFPIN,conf-getpin,,,3,10)
same => n,GotoIf($[${DB(ONEIF_NET_CONFROOM/${ROOM})}=${CONFPIN}]?match:nomatch)
same => n(match),Playback(auth-thankyou)
same => n,Set(CHANNEL(musicclass)=oneif_net)
same => n,Set(CONFBRIDGE_JOIN_SOUND=en/confbridge-join)
same => n,Set(CONFBRIDGE_LEAVE_SOUND=en/confbridge-leave)
same => n,ConfBridge(${ROOM},acsM(oneif_net))
same => n,SayText(Deleting key)
same => n,Verbose(0,${DB_DELETE(ONEIF_NET_CONFROOM/${ROOM})})
same => n(nomatch),Playback(conf-invalidpin)
same => n,Hangup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment