Dialplan Explanation

mrg33
Joined: Sun 14 of May, 2017

Dialplan Explanation

Posted:Sun 14 of May, 2017 (15:42 UTC)
Guys can someone please assist in explaining this dialplan:
;;set/unset/change pin
exten => **7277,1,set(PWISSET=${DB(pw/${CALLERID(num)})})
exten => **7277,n,noop(${PWISSET})
exten => **7277,n,gotoif($"${PWISSET}" = ""?102:100)
exten => **7277,100,read(PININCHANGE|vm-password|4)
exten => **7277,101,gotoif($"${PININCHANGE}" = "${PWISSET}"?102:10)
exten => **7277,102,read(NEWPWD|vm-newpassword|4)
exten => **7277,103,set(DB(pw/${CALLERID(num)})=${NEWPWD})
exten => **7277,104,playback(vm-passchanged)
exten => **7277,1054,hangup()
exten => **7277,10,Playback(vm-incorrect)
exten => **7277,11,goto(1)


exten => _0800-1.,1,set(NEEDPW=${DB(pw/${CALLERID(num)})})
exten => _0800-1.,n,noop(Caller ${CALLERID(num)})
exten => _0800-1.,n,noop(Password ${NEEDPW})
exten => _0800-1.,n,set(DST=${EXTEN})
exten => _0800-1.,n,noop(Destination ${DST})
exten => _0800-1.,n,gotoif($"${NEEDPW}" = ""?102:100)
exten => _0800-1.,100,read(PININ|vm-password|4)
exten => _0800-1.,101,gotoif($"${PININ}" = "${NEEDPW}"?${EXTEN},102:${EXTEN},10)
exten => _0800-1.,102,dial(dahdi/g1/${EXTEN});;telkom toll free
exten => _0800-1.,10,Playback(vm-incorrect)
exten => _0800-1.,11,goto(100)