Re: sip.conf
Все делал отсюда, за исключением настроек сипнета:
http://www.the-asterisk-book.com/unstable/minimale-telefonanlage.html#asterisk-konfigurieren
сип
[general]
port = 5060
bindaddr = 0.0.0.0
context = others
externhost = 87-119-236-79.saransk.ru
externrefresh = 60
localnet=87.119.224.1/255.255.255.255
register => 3104813:tcdtrf90@sipnet.ru/3104813
[2000]
type=friend
context=my-phones
secret=1234
host=dynamic
[2001]
type=friend
context=my-phones
secret=1234
host=dynamic
[ext-sip-account]
type=friend
context=from-voip-provider
username=3104813
fromuser=3104813
secret=tcdtrf90
host=sipnet.ru
fromdomain=sipnet.ru
qualify=yes
insecure=invite
nat=no
canreinvite=no
disallow=all
allow=ulaw
allow=alaw
allow=g729
allow=g723
allow=gsm
екстеншн
[others]
[my-phones]
exten => 2000,1,Dial(SIP/2000)
exten => 2000,2,VoiceMail(2000,u)
exten => 2001,2,VoiceMail(2001,u)
exten => 2001,1,Dial(SIP/2001)
exten => 2999,1,VoiceMailMain(${CALLERID(num)},s)
exten => _0[1-9].,1,Dial(SIP/${EXTEN}@ext-sip-account)
[from-voip-provider]
exten => 18885556266,1,Dial(SIP/2000)
exten => 18885556266,2,VoiceMail(2000,u)
Ну не работает, зараза!
|