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

Asterisk dial plan - working example

2011-12-1 14:29| 发布者: Test| 查看: 1522| 评论: 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 ; ; ; ...
Force VoicePulse or BroadVoice outbound if user selects CO3 ...

Pana user selects CO3 on handset


  • From zapata.conf

; provide dial tone to Panasonic CO3
;
immediate=no
usecallerid=no
usedistinctiveringdetection=no
signalling=fxo_ks
group=1
;
context=co3out
channel=1 ; ring this one for VoicePulse
;

  • From extensions.conf

[co3out]
;
; this is where a Panasonic analogextension enters
; the dial plan if they pick up CO3 (VoicePulse)
;
exten => s,1,DigitTimeout,5 ; give them 5 seconds between digits
exten => s,2,ResponseTimeout,90 ; give them 90 seconds to make a choice
;
; If the user presses 0, give them access to the
; system menu
;
exten => 0,1,Background(custom/vp-line3)
exten => 0,2,Goto(system-menu-main,s,1)
;
; Keep them from dialing PSTN service numbers as
; VoicePulse will not route them properly anyway
;
exten => _411,1,Goto(i,1)
exten => _611,1,Goto(i,1)
exten => _911,1,Goto(i,1)
;
include => sip-ext
include => internal-svc
include => restricted
;
; handle outbound local calls - force VoicePulse
;
exten => _NXXNXXXXXX,1,Macro(dial-iax,1${EXTEN},${LONGTIMEOUT})
;
; handle outbound long distance calls - force VoicePulse
;
exten => _1NXXNXXXXXX,1,Macro(dial-iax,${EXTEN},${LONGTIMEOUT})
;
; handle outbound internationl calls - force VoicePulse
;
exten => _011.,1,Macro(dial-iax,${EXTEN},${LONGTIMEOUT})
;
;
exten => t,1,Goto(i,1) ; If they take too long, let them try again
;
exten => i,1,Background(invalid) ; "That's not valid, try again"
exten => i,2,Wait(1)
exten => i,3,Goto(s,1)
;
;

Pana user selects CO4 on handset


  • From zapata.conf

; provide dial tone to Panasonic CO4
;
immediate=no
usecallerid=no
usedistinctiveringdetection=no
signalling=fxo_ks
group=1
;
context=co4out
channel=2 ; ring this one for BroadVoice

  • From extensions.conf

[co4out]
;
; this is where a Panasonic analogextension enters
; the dial plan if they pick up CO4 (BroadVoice)
;
exten => s,1,DigitTimeout,15 ; give them 15 seconds between digits
exten => s,2,ResponseTimeout,90 ; give them 90 seconds to make a choice
;
; If the user presses 0, give them access to the
; system menu
;
exten => 0,1,Background(custom/bv-line4)
exten => 0,2,Goto(system-menu-main,s,1)
;
; Keep them from dialing PSTN service numbers as
; VoicePulse will not route them properly anyway
;
exten => _411,1,Goto(i,1)
exten => _611,1,Goto(i,1)
exten => _911,1,Goto(i,1)
;
include => sip-ext
include => internal-svc
include => restricted
;
; handle outbound local calls - force BroadVoice
;
exten => _NXXNXXXXXX,1,Macro(dial-sip,${EXTEN},${LONGTIMEOUT})
;
; handle outbound long distance calls - force BroadVoice
;
exten => _1NXXNXXXXXX,1,Macro(dial-sip,${EXTEN},${LONGTIMEOUT})
;
; handle outbound internationl calls - force BroadVoice
;
exten => _011.,1,Macro(dial-sip,${EXTEN},${LONGTIMEOUT})
;
exten => t,1,Goto(i,1) ; If they take too long, let them try again
;
exten => i,1,Background(invalid) ; "That's not valid, try again"
exten => i,2,Wait(1)
exten => i,3,Goto(s,1)
;
;

鲜花

握手

雷人

路过

鸡蛋

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

GMT-8, 2026-10-13 08:39 , Processed in 0.007057 second(s), 18 queries .

Supported by BestDeal Online X5.0

© 2001-2026 Discuz! Team.

返回顶部