36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
[incoming]
|
|
; Redirect incoming calls to extension 441452221649 to internal extension 0.
|
|
exten => 441234567890,1,Goto(internal,0,1)
|
|
|
|
|
|
[outgoing]
|
|
; Redirect outgoing calls via SIP provider.
|
|
exten => _X.,1,Dial(SIP/441234567890)
|
|
|
|
|
|
[internal]
|
|
; Dialplan for extension 1000.
|
|
; Dial SIP user 1000. Timeout after 10 seconds.
|
|
exten => 1000,1,Dial(SIP/1000,10)
|
|
same => n,VoiceMail(${EXTEN})
|
|
same => n,Hangup
|
|
|
|
; Dialplan for extension 1001.
|
|
exten => 1001,1,Dial(SIP/1001,10)
|
|
same => n,VoiceMail(${EXTEN})
|
|
same => n,Hangup
|
|
|
|
|
|
; Dialgroup "everyone" at extension 0 to ring mulitple extensions.
|
|
exten => 0,1,Set(DIALGROUP(everyone,add)=SIP/1000)
|
|
same => n,Set(DIALGROUP(everyone,add)=SIP/1001)
|
|
same => n,Dial(${DIALGROUP(everyone)},10)
|
|
same => n,VoiceMail(${EXTEN})
|
|
same => n,Hangup
|
|
|
|
|
|
; Dialplans for redirecting calls to outgoing context.
|
|
; Redirect outgoing national calls in format 01234567890.
|
|
exten => _0ZX.,1,Goto(outgoing,0044${EXTEN:1},1)
|
|
; Redirect international calls in format 00441234567890.
|
|
exten => _00X.,1,Goto(outgoing,${EXTEN},1) |