KonfiguraceLinux

Asterisk

Konfigurace telefonní ústředny Asterisk

/etc/asterisk/sip.conf


[general]
port = 5060     ; Port to bind to
context = praha ; Default context for incoming calls
disallow=all    ; need to disallow=all before we can use allow=
allow=ulaw      ; Note: In user sections the order of codecs
dtmfmode=auto   ; Set default dtmfmode for sending DTMF. Default: rfc2833

[jarda]
type=friend
username=jarda
userid=Jarda Toman <17>
host=dynamic 
secret=heslo

[tomas]
type=friend
username=tomas
userid=Tomas Rukl <27>
host=dynamic
secret=heslo 

[jirka]
type=friend
username=Jirka
userid=Jiri Fuml <37>
host=dynamic 
secret=heslo

/etc/asterisk/extensions.conf

 

[general]

static=yes
writeprotect=yes


[globals]

[praha]

exten => 100,1,Answer
exten => 100,n,Playback(demo-echotest)
exten => 100,n,Echo()
exten => 100,n,Hangup()

;SIP users
exten => 17,1,Dial(SIP/jarda)
exten => 27,1,Dial(SIP/tomas)
exten => 37,1,Dial(SIP/jirka)