找回密码
 注册
BCM › 门户 ›IT世界› 资料备录 › 查看内容

Asterisk dial plan - working example

2011-12-1 14:29| 发布者: Test| 查看: 1525| 评论: 0|来自: voip-info.org

摘要: Description of this dialplan is available at Panasonic KSU ; ; ; static=yes ; ; if static=yes and writeprotect=no, you can save dialplan by ; CLI command 'save dialplan' too ; writeprotect=no ; ; ; ...
System menu that permits Pana users to access Asterisk featu ...

The system menu


* From extensions.conf

;
; A Panasonic handset user can get access to the system menu by
; picking up CO3 or CO4 and dialing Operator (zero). This is provided
; in the contexts co3out and co4out.
;
; see Force VoicePulse or BroadVoice outbound if user selects CO3 or CO4 for example
;
;
;********************************************************************
; BEGIN - System Menu
;********************************************************************
;
[system-menu-main]
;
; provide user access to their voice mail inbox
; let user leave voice mail for another user
; provide user access to find me
;
; prompts to record
; custom/system-menu = tell them where they are
; custom/your-voicemail = let them choose to check their vm
; custom/leave-voicemail = let them choose to leave vm for someone
; custom/find-me = let them choose to track someone down
;
exten => s,1,Background(custom/system-menu)
exten => s,2,Wait(1)
exten => s,3,Background(custom/your-voicemail)
exten => s,4,Background(custom/leave-voicemail)
exten => s,5,Background(custom/find-me)
exten => s,6,Background(custom/system-menu-diag)
exten => s,7,Background(custom/2repeat) ; play the menu messages
exten => s,8,Background(custom/2hangup) ; play the menu messages
exten => s,9,DigitTimeout,1 ; give them 1 seconds between digits
exten => s,10,ResponseTimeout,60 ; give them 60 seconds to make a choice
;
exten => _1,1,Macro(system-get-vmail)
exten => _1,2,Goto(s,1)
;
exten => _2,1,Macro(leave-voicemail)
exten => _2,2,Goto(s,1)
;
exten => _3,1,Macro(system-findme)
exten => _3,2,Goto(s,1)
;
exten => _4,1,Goto(menu-diag,s,1)
;
; Repeat the previous menu
exten => *,1,Goto(s,1)
;
; #=hangup
exten => #,1,Background(goodbye)
exten => #,2,NoOp
exten => #,3,Hangup
;
exten => t,1,Goto(i,1) ; If they take too long, give up
;
exten => i,1,Background(custom/is-invalid) ; "That's not valid, try again"
exten => i,2,Wait(1)
exten => i,3,Goto(s,1)
;
;
[menu-diag]
;
;
exten => s,1,Background(custom/system-menu-diag)
exten => s,2,Wait(1)
exten => s,3,Background(custom/menu-selections)
exten => s,4,NoOp
exten => s,5,NoOp
exten => s,6,NoOp
exten => s,7,Background(custom/2repeat) ; play the menu messages
exten => s,8,Background(custom/2hangup) ; play the menu messages
exten => s,9,DigitTimeout,1 ; give them 1 seconds between digits
exten => s,10,ResponseTimeout,60 ; give them 60 seconds to make a choice
;
exten => _1,1,Goto(house-menu,s,1)
;
exten => _2,1,Goto(house-day,s,1)
;
exten => _3,1,Goto(house-night,s,1)
;
exten => _4,1,Goto(office-menu,s,1)
;
exten => _5,1,Goto(office-holiday,s,1)
;
exten => _6,1,Goto(office-closed,s,1)
;
exten => _7,1,Goto(office-open,s,1)
;
exten => _8,1,Goto(office-emergency,s,1)
;
; Repeat the previous menu
exten => *,1,Goto(s,1)
;
; #=hangup
exten => #,1,NoOp
exten => #,2,NoOp
;
exten => t,1,Goto(i,1) ; If they take too long, give up
;
exten => i,1,Background(custom/is-invalid) ; "That's not valid, try again"
exten => i,2,Wait(1)
exten => i,3,Goto(s,1)
;
;
;********************************************************************
; END - System Menu
;********************************************************************

鲜花

握手

雷人

路过

鸡蛋

手机版|小黑屋|BC Morning Website ( Best Deal Inc. 001 )

GMT-8, 2026-10-14 05:50 , Processed in 0.008731 second(s), 17 queries .

Supported by BestDeal Online X5.0

© 2001-2026 Discuz! Team.

返回顶部