Re: Сново входящие
Вот sip.conf:
[general]
allowguest=no
bindaddr=0.0.0.0
bindport=5060
registertimeout=3600
externip=89.162.182.90
nat=yes
maxexpirey = 3600
canrevite = no
fromdomain =89.162.182.90
disallow = all
allow = alaw
allow = ualaw
register=622102478:password@62.64.127.43/622102478
[goldentelecom-out]
type=peer
secret=password
username=622102478
host=62.64.127.43
fromdomain=62.64.127.43
fromuser=622102478
context=fromdata
[001]
type=friend
username=skoropad
secret=password
host=dynamic
context=maindial
[002]
type=friend
username=tkachenko
secret=password
host=dynamic
context=maindial
и extension.conf:
[general]
static=yes
writeprotect=no
[maindial]
exten = 001,1,Dial(SIP/001)
exten = 002,1,Dial(SIP/002)
exten = 003,1,Dial(SIP/003)
exten = 004,1,Dial(SIP/004)
exten = _NXXXXXX,1,Dial(SIP/${EXTEN}@goldentelecom-out,30,Tt)
exten = _0XXXXXXXXX,1,Dial(SIP/${EXTEN}@goldentelecom-out,30,Tt)
[fromdata]
exten = 2102478,1,Answer
exten = 2102478,2,Dial(SIP/002,30)
exten = 2102478,3,Hangup
|