Difference between revisions of "VoIP: Asterisk Demo Dial Plan"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
vi /etc/asterisk/extensions.conf | vi /etc/asterisk/extensions.conf | ||
− | Isi | + | Isi sesudah bagian [default] include => demo |
+ | |||
+ | [default] | ||
+ | ; | ||
+ | ; By default we include the demo. In a production system, you | ||
+ | ; probably don't want to have the demo there. | ||
+ | ; | ||
+ | include => demo | ||
exten => _20XX,1,Dial(SIP/${EXTEN},30,rt) | exten => _20XX,1,Dial(SIP/${EXTEN},30,rt) | ||
exten => _20XX,2,HangUp | exten => _20XX,2,HangUp | ||
+ | |||
+ | Beberapa contoh tambahan untuk konfigurasi extensions.conf | ||
+ | |||
+ | exten => _21XX,1,Dial(DAHDI/g0/${EXTEN:1},30,rt) | ||
+ | exten => _21XX,2,HangUp | ||
exten => _021.,1,Dial(SIP/${EXTEN:3}@2031,20.rt) | exten => _021.,1,Dial(SIP/${EXTEN:3}@2031,20.rt) | ||
− | exten => _08.,1,Dial(SIP/${EXTEN}@2031,20 | + | exten => _08.,1,Dial(SIP/${EXTEN}@2031,20,rt) |
exten => _00.,1,Set(enumresult=${ENUMLOOKUP(+${EXTEN:2},,,,e164.id)}) | exten => _00.,1,Set(enumresult=${ENUMLOOKUP(+${EXTEN:2},,,,e164.id)}) | ||
Line 16: | Line 28: | ||
exten => _+.,1,Set(enumresult=${ENUMLOOKUP(${EXTEN},,,,e164.id)}) | exten => _+.,1,Set(enumresult=${ENUMLOOKUP(${EXTEN},,,,e164.id)}) | ||
exten => _+.,n,Dial(SIP/${enumresult}) | exten => _+.,n,Dial(SIP/${enumresult}) | ||
− | + | ||
exten => 1001,1,Dial(DAHDI/3,20,rt) | exten => 1001,1,Dial(DAHDI/3,20,rt) | ||
exten => 1001,2,Voicemail(1000,u) | exten => 1001,2,Voicemail(1000,u) | ||
Line 23: | Line 35: | ||
exten => 1002,2,Voicemail(2000,u) | exten => 1002,2,Voicemail(2000,u) | ||
exten => 1002,102,Voicemail(2000,b) | exten => 1002,102,Voicemail(2000,b) | ||
− | + | ||
exten => _9.,1,Dial(DAHDI/g0/www${EXTEN:1}) | exten => _9.,1,Dial(DAHDI/g0/www${EXTEN:1}) | ||
exten => _9.,2,Congestion | exten => _9.,2,Congestion | ||
Line 37: | Line 49: | ||
* [[VoIP: Asterisk Demo User]] | * [[VoIP: Asterisk Demo User]] | ||
* [[VoIP: Asterisk Demo Dial Plan]] | * [[VoIP: Asterisk Demo Dial Plan]] | ||
+ | * [[VoIP: Penggunaan DAHDI]] | ||
* [[Konfigurasi Minimal Asterisk 1.6 di Ubuntu]] | * [[Konfigurasi Minimal Asterisk 1.6 di Ubuntu]] | ||
* [[VoIP]] | * [[VoIP]] |
Latest revision as of 10:01, 20 January 2014
Edit
vi /etc/asterisk/extensions.conf
Isi sesudah bagian [default] include => demo
[default] ; ; By default we include the demo. In a production system, you ; probably don't want to have the demo there. ; include => demo
exten => _20XX,1,Dial(SIP/${EXTEN},30,rt) exten => _20XX,2,HangUp
Beberapa contoh tambahan untuk konfigurasi extensions.conf
exten => _21XX,1,Dial(DAHDI/g0/${EXTEN:1},30,rt) exten => _21XX,2,HangUp exten => _021.,1,Dial(SIP/${EXTEN:3}@2031,20.rt) exten => _08.,1,Dial(SIP/${EXTEN}@2031,20,rt) exten => _00.,1,Set(enumresult=${ENUMLOOKUP(+${EXTEN:2},,,,e164.id)}) exten => _00.,n,Dial(SIP/${enumresult}) exten => _+.,1,Set(enumresult=${ENUMLOOKUP(${EXTEN},,,,e164.id)}) exten => _+.,n,Dial(SIP/${enumresult}) exten => 1001,1,Dial(DAHDI/3,20,rt) exten => 1001,2,Voicemail(1000,u) exten => 1001,102,Voicemail(1000,b) exten => 1002,1,Dial(DAHDI/4,20,rt) exten => 1002,2,Voicemail(2000,u) exten => 1002,102,Voicemail(2000,b) exten => _9.,1,Dial(DAHDI/g0/www${EXTEN:1}) exten => _9.,2,Congestion exten => _91.,1,Dial(DAHDI/1/www${EXTEN:2}) exten => _91.,2,Congestion exten => _92.,1,Dial(DAHDI/2/www${EXTEN:2}) exten => _92.,2,Congestion