Difference between revisions of "VoIP: Asterisk Demo Dial Plan"

From OnnoWiki
Jump to navigation Jump to search
Line 17: Line 17:
 
  exten => _+.,n,Dial(SIP/${enumresult})
 
  exten => _+.,n,Dial(SIP/${enumresult})
  
  exten => 1001,1,Dial(DAHDI/1,20,rt)
+
  exten => 1001,1,Dial(DAHDI/3,20,rt)
 
  exten => 1001,2,Voicemail(1000,u)
 
  exten => 1001,2,Voicemail(1000,u)
 
  exten => 1001,102,Voicemail(1000,b)
 
  exten => 1001,102,Voicemail(1000,b)
  exten => 1002,1,Dial(DAHDI/2,20,rt)
+
  exten => 1002,1,Dial(DAHDI/4,20,rt)
 
  exten => 1002,2,Voicemail(2000,u)
 
  exten => 1002,2,Voicemail(2000,u)
 
  exten => 1002,102,Voicemail(2000,b)
 
  exten => 1002,102,Voicemail(2000,b)

Revision as of 10:49, 8 December 2010

Edit

vi /etc/asterisk/extensions.conf

Isi di bagian paling bawah

exten => _20XX,1,Dial(SIP/${EXTEN},30,rt)
exten => _20XX,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/g2/www${EXTEN:1})
exten => _9.,2,Congestion


Pranala Menarik