Не получается подключить DiaStar к Asterisk
вот чего дают логи
Код: Выделить всё
[Feb 11 11:21:53] VERBOSE[20778] chan_sip.c:
<--- SIP read from UDP:192.168.98.128:5060 --->
REGISTER sip:192.168.98.26:5060 SIP/2.0
From: <sip:99999@192.168.98.26>;tag=a0d64d8-8062a8c0-13c4-50022-1252-6681270f-1252
To: <sip:99999@192.168.98.26>
Call-ID: a0e4770-8062a8c0-13c4-50022-1252-18911d59-1252
CSeq: 1 REGISTER
Via: SIP/2.0/UDP 192.168.98.128:5060;branch=z9hG4bK-1252-4793e3-454499ec
Max-Forwards: 70
Expires: 300
Contact: <sip:99999@192.168.98.128:5060>;methods="INVITE, INFO, SUBSCRIBE, BYE, CANCEL, NOTIFY, ACK, REFER"
Content-Length: 0
<------------->
[Feb 11 11:21:53] VERBOSE[20778] chan_sip.c: --- (10 headers 0 lines) ---
[Feb 11 11:21:53] VERBOSE[20778] chan_sip.c: Sending to 192.168.98.128:5060 (no NAT)
[Feb 11 11:21:53] VERBOSE[20778] chan_sip.c:
<--- Transmitting (no NAT) to 192.168.98.128:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.98.128:5060;branch=z9hG4bK-1252-4793e3-454499ec;received=192.168.98.128
From: <sip:99999@192.168.98.26>;tag=a0d64d8-8062a8c0-13c4-50022-1252-6681270f-1252
To: <sip:99999@192.168.98.26>
Call-ID: a0e4770-8062a8c0-13c4-50022-1252-18911d59-1252
CSeq: 1 REGISTER
Server: FPBX-2.8.1(1.8.2.3)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
[Feb 11 11:21:53] VERBOSE[20778] chan_sip.c:
<--- Transmitting (no NAT) to 192.168.98.128:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.98.128:5060;branch=z9hG4bK-1252-4793e3-454499ec;received=192.168.98.128
From: <sip:99999@192.168.98.26>;tag=a0d64d8-8062a8c0-13c4-50022-1252-6681270f-1252
To: <sip:99999@192.168.98.26>;tag=as3490ef7b
Call-ID: a0e4770-8062a8c0-13c4-50022-1252-18911d59-1252
CSeq: 1 REGISTER
Server: FPBX-2.8.1(1.8.2.3)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="5ae338c0"
Content-Length: 0
Код: Выделить всё
[user](!)
host=dynamic
canreinvite=no
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=speex
allow=gsm
allow=h261
allow=h263
allow=h263
allow=h263p
[99999](user)
type=peer
secret=*****
username=diastar
context=phones
canreinvite=yes