Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

jueves, 28 de enero de 2016

Asterisk custom follow me

  1. [from-internal-custom]
     exten=>_007.,1,Noop( call to ${EXTEN:3})
     same=>n,GotoIf($[${LEN(${DB(${EXTEN:3}/dest)})}=3]?local:external)
     same=>n(local),Dial(SIP/${DB(${EXTEN:3}/dest)},25)
     same=>n,Hangup()
     same=>n(external),Dial(SIP/VoipMSOut/1${DB(${EXTEN:3}/dest)},25)
     same=>n,Hangup()
     include=>custom-follow

     [custom-follow]
     exten=>*996,1,Answer()
    same=>n,Authenticate(/etc/asterisk/pass_list.conf)
     same=>n(start),Read(num,please-enter-your-extension-then-press-pound)
     same=>n,GotoIf($[${LEN(${num})}>=3]?continue)
     same=>n,Playback(im-sorry)
     same=>n,Goto(start)
     same=>n(continue),Read(dest,enter-phone-number10)
     same=>n,GotoIf($[${LEN(${dest})}>= 3]?ok:continue)
     same=>n(ok),Set(DB(${num}/dest)=${dest})
     same=>n,Playback(auth-thankyou)
     same=>n,SayDigits(${DB(${num}/dest)})
    same=>n,Hangup()
     ;;;review

     exten=>*997,1,Answer()
    same=>n,Authenticate(/etc/asterisk/pass_list.conf)
     same=>n(start),Read(num,please-enter-your-extension-then-press-pound)
     same=>n,GotoIf($[${LEN(${num})}>=3]?continue)
     same=>n,Playback(im-sorry)
     same=>n,Goto(start)
     same=>n(continue),Playback(auth-thankyou)
     same=>n,SayDigits(${DB(${num}/dest)})
    same=>n,Hangup()

No hay comentarios:

Publicar un comentario