exten=>_x.,1,Answer()
same=>n,Set(message=welcome)
same=>n(rec),Playback(${message})
same=>n,Record(/root/demo/recording/${CHANNEL:4}.wav,,20,y)
same=>n,Set(__dst=${EXTEN})
same=>n,Set(__file_name=${UNIQUEID})
same=>n,Set(__caller=${CHANNEL})
same=>n,Set(__callercid=${CALLERID(num)})
same=>n,Dial(Local/s@moh2&Local/${EXTEN}@response2)
[moh2]
exten=>s,1,Answer()
same=>n,MusicOnHold(m1)
same=>n,Hangup()
[response2]
exten=>_x.,1,Noop(///${caller}***${key}* ${dst}**)
;same=>n,System(/usr/sbin/asterisk -x "channel originate SIP/${dst} extension ${caller}@hello2")
same=>n,System(/usr/sbin/asterisk -x "channel originate SIP/103 extension ${caller}@hello2")
[hello2]
exten=>_.,1,Answer()
same => n,read(confirm,/root/demo/recording/${EXTEN:4},1)
same=>n,GotoIf($["${confirm}"="1"]?bridge)
same=>n,GotoIf($["${confirm}"="2"]?vm)
same=>n,Hangup()
same=>n(bridge),Bridge(${EXTEN})
same=>n,Hangup()
same=>n(vm),VoiceMail(103@default,ug(8))
No hay comentarios:
Publicar un comentario