Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. [robinson-family]
  2. ; If nobody picks up within 30 seconds, the call is sent to voicemail
  3. ; If the extension is busy, the call is sent to voicemail
  4. exten => _20[0-3],1,Set(TARGETNO=${EXTEN})
  5. exten => _20[0-3],n,Dial(SIP/${EXTEN},30)
  6. exten => _20[0-3],n,Goto(s-${DIALSTATUS},1) ; routes the call to the st
  7. atus priority (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
  8. exten => s-NOANSWER,1,VoiceMail(${TARGETNO},u) ; Person at extension "is
  9. unavailable" message
  10. exten => s-BUSY,1,VoiceMail(${TARGETNO},b) ; Person at extension "is
  11. busy" message
  12. exten => s-ANSWER,1,Hangup() ; To be safe, clean up the
  13. call after an answer by hanging up
  14. exten => _s-.,1,Goto(s-NOANSWER,1) ; Handle any unhandled stat
  15. us the same way we handle NOANSWER
  16.  
  17. ; Check your voicemail from your own extension by dialling "250"
  18. exten => 250,1,VoiceMailMain(${CALLERID(num)})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement