Вот sip.conf
Код: Выделить всё
[general]
register = 74999952190:12345@sip.discounttelecom.ru
bindport = 5060
bindaddr = 0.0.0.0
context = default
allowguest = yes
allowoverlap = no
realm = McConfig VoIP Server
externip = 217.112.24.33
nat = no
disallow = all
allow = alaw
allow = gsm
srvlookup = yes
language = ru
udpbindaddr = 0.0.0.0
tcpenable = no
tcpbindaddr = 0.0.0.0
[authentication]
[discounttelecom]
type = peer
insecure = port,invite
secret =
username = 74999952190
fromuser = 74999952190
fromdomain = sip.discounttelecom.ru
host = sip.discounttelecom.ru
port = 5060
registersip = yes
dtmfmode = rfc2833
disallow = all
allow = alaw
allow = ulaw
allow = gsm
canreinvite = no
;============================ Users ===========================
[1000];ITCrowd
qualify = yes
context = LocalAndPSTNAndMobileAndLD
type = friend
username = 1000
secret = terranova2039
nat = yes
host = dynamic
callerid = "IT Crowd"
callgroup = 1
pickupgroup = 1
language = ru
canreinvite = no
disallow = all
allow = alaw
allow = ulaw
allow = gsm
canreinvite = no
Код: Выделить всё
[general]
priorityjumping = yes
static = yes
writeprotect = no
autofallthrough = yes
clearglobalvars = no
[globals]
DYNAMIC_FEATURES = automon
[default]
include => 74955438950
include => OSoftSipNet
include => NSoftSipNet
include => LocalOnly
include => LocalAndPSTN
include => LocalAndPSTNAndMobile
include => LocalAndPSTNAndMobileAndLD
;==================== Start SIPNET IN =======================
[74955438950]
exten => s,1,Answer
exten => s,2,Set(TIMEOUT(digit)=5)
exten => s,3,Set(TIMEOUT(response)=5)
exten => s,4,Goto(welcome,s,1)
exten => s,5,WaitExten(5)
exten => s,6,Dial(SIP/1000,20,otmw)
exten => s,7,Voicemail
exten => s,8,Hangup
exten => i,1,Dial(SIP/1000,300,otmw)
exten => i,2,Hangup
exten => _97XXXX,1,Goto(LocalAndPSTNAndMobileAndLD,${EXTEN},1)