Код: Выделить всё
[channels]
context=default
switchtype=national
signalling=fxo_ls
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
Код: Выделить всё
[general]
context=default ; Default context for incoming calls
allowguest=no ; Allow or reject guest calls (default is yes)
realm=local.pvt ; Realm for digest authentication
bindport=5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
domain=local.pvt ; Set default domain for this host
domain=10.10.10.10
register=local:login@sipnet.ru/xxxxxxx
register=external:login1@sipnet.ru/xxxxxxx
disallow=all ; First disallow all codecs
allow=g729 ; Allow codecs in order of preference
allow=ulaw
allow=alaw
allow=gsm
allow=ulaw ; Allow codecs in order of preference
mohinterpret=default
language=en ; Default language setting for all users/peers
register => local:login@sipnet.ru/xxxxxxx
[201]
type=friend
context=office ; Where to start in the dialplan when this phone
callerid=admin <201> ; Full caller ID, to override the phones config
secret=secret_word
host=dynamic ; we have a static but private IP address
nat=yes ; there is not NAT between phone and Asterisk
canreinvite=no ; allow RTP voice traffic to bypass Asterisk
dtmfmode=info ; either RFC2833 or INFO for the BudgeTone
call-limit=1 ; permit only 1 outgoing call and 1 incoming cal
mailbox=admin@local.pvt ; mailbox 1234 in voicemail context "default"
disallow=all ; need to disallow=all before we can use allow=
allow=g729
allow=ulaw ; Note: In user sections the order of codecs
allow=alaw