Не регистрируется шлюз goip4 в freepbx.ПОМОГИТЕ!!!
Добавлено: 07 июл 2022, 17:00
Здравствуйте занимаюсь настройкой goip4 с астериск с мордой freepbx 14 и столкнулся с проблемой что пир goip не в какую не хочет регистрироваться на астериске. Пробовал и порт с 5160 менял на 5060 нечего не меняется от слова совсем. Так же игрался с разными конфигами так же не дает нечего.Фаервол настроен не блокировать локалку и именно шлюз гоип. Я новичок в этом деле так что не пинайте сильно.
Вот настройки:
Транк
исходящий
host=dynamic
port=5060
type=peer
context=from-internal
dtmfmode=rfc2833
disallow=all
allow=alaw&ulaw
insecure=very&port,invite
qualify=yes
defaultuser=10015
secret=пароль
nat=no
canreinvite=no
входящий
type=friend
host=dynamic
secret=пароль
context=from-trunk
dtmfmode=rfc2833
canreinvite=no
qualify=yes
______________Настройки на goip4______________________
Вкладка basic Voip
config mode: config by line
Authentication ID 10015
Password ••••••••••
Routing Prefix 1
SIP Proxy 192.168.11.40:5160
SIP Registrar 192.168.11.40:5160
Re-register Period (s) 60
Phone Number 10015
Display Name 10015
____Вкладка advance voip
SIP Listening Port Mode Fixed
Port 5060
Line Selection Mode The Least Number of Calls
SIP INVITE Response SIP 183
SIP Header Via SIP Signaling
SIP Busy Code 603
Call OUT Auth Mode None
Bulit-in SIP Proxy Enable Disable
NAT Keep-alive Enable Disable
DTMF Signaling Inband
Signaling QoS None
Signaling Encryption None
Signaling NAT Traversal None
_______Логи с sip set debug peer
asterisk*CLI> sip set debug peer 10015
SIP Debugging Enabled for IP: 192.168.11.42
<--- SIP read from UDP:192.168.11.42:5060 --->
REGISTER sip:192.168.11.40:5160 SIP/2.0
Via: SIP/2.0/UDP 192.168.11.42:5060;branch=z9hG4bK279146484
From: "10015" <sip:10015@192.168.11.40>;tag=1967444772
To: "10015" <sip:10015@192.168.11.40>
Call-ID: 1230971729@192.168.11.42
CSeq: 28 REGISTER
Contact: <sip:10015@192.168.11.42:5060>;expires=60
Authorization: Digest username="10015", realm="asterisk", nonce="7d0841d5", uri="s ip:192.168.11.40:5160", response="a06599f2e47a3bb37c09fa5adc21e15b", algorithm=MD5
Max-Forwards: 30
User-Agent: dble
Expires: 60
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.11.42:5060 (no NAT)
[2022-07-07 16:45:55] NOTICE[11058]: chan_sip.c:17309 check_auth: Correct auth, bu t based on stale nonce received from '"10015" <sip:10015@192.168.11.40>;tag=196744 4772'
<--- Transmitting (no NAT) to 192.168.11.42:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.11.42:5060;branch=z9hG4bK279146484;received=192.168.11.42
From: "10015" <sip:10015@192.168.11.40>;tag=1967444772
To: "10015" <sip:10015@192.168.11.40>;tag=as5480eca1
Call-ID: 1230971729@192.168.11.42
CSeq: 28 REGISTER
Server: FPBX-14.0.16.11(13.22.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="45f0c957", stale= true
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '1230971729@192.168.11.42' in 32000 ms (Metho d: REGISTER)
<--- SIP read from UDP:192.168.11.42:5060 --->
REGISTER sip:192.168.11.40:5160 SIP/2.0
Via: SIP/2.0/UDP 192.168.11.42:5060;branch=z9hG4bK402719319
From: "10015" <sip:10015@192.168.11.40>;tag=1967444772
To: "10015" <sip:10015@192.168.11.40>
Call-ID: 1230971729@192.168.11.42
CSeq: 29 REGISTER
Contact: <sip:10015@192.168.11.42:5060>;expires=60
Authorization: Digest username="10015", realm="asterisk", nonce="45f0c957", uri="s ip:192.168.11.40:5160", response="371fa00c246b0301afee0731591a8b94", algorithm=MD5
Max-Forwards: 30
User-Agent: dble
Expires: 60
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.11.42:5060 (no NAT)
Reliably Transmitting (no NAT) to 192.168.11.42:5060:
OPTIONS sip:10015@192.168.11.42:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.11.40:5160;branch=z9hG4bK5eb79ed9
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.11.40:5160>;tag=as7268bf1c
To: <sip:10015@192.168.11.42:5060>
Contact: <sip:Unknown@192.168.11.40:5160>
Call-ID: 164fa0e17ad77f03749cc2766fd40f76@192.168.11.40:5160
CSeq: 102 OPTIONS
User-Agent: FPBX-14.0.16.11(13.22.0)
Date: Thu, 07 Jul 2022 13:45:55 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
<--- Transmitting (no NAT) to 192.168.11.42:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.11.42:5060;branch=z9hG4bK402719319;received=192.168.11.42
From: "10015" <sip:10015@192.168.11.40>;tag=1967444772
To: "10015" <sip:10015@192.168.11.40>;tag=as5480eca1
Call-ID: 1230971729@192.168.11.42
CSeq: 29 REGISTER
Server: FPBX-14.0.16.11(13.22.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 60
Contact: <sip:10015@192.168.11.42:5060>;expires=60
Date: Thu, 07 Jul 2022 13:45:55 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '1230971729@192.168.11.42' in 32000 ms (Metho d: REGISTER)
<--- SIP read from UDP:192.168.11.42:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.11.40:5160;branch=z9hG4bK5eb79ed9
From: "Unknown" <sip:Unknown@192.168.11.40:5160>;tag=as7268bf1c
To: <sip:10015@192.168.11.42:5060>;tag=1444605968
Call-ID: 164fa0e17ad77f03749cc2766fd40f76@192.168.11.40:5160
CSeq: 102 OPTIONS
User-Agent: dble
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REFER, REGISTER, MESSAGE, INFO, SUBSCRIBE
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Really destroying SIP dialog '164fa0e17ad77f03749cc2766fd40f76@192.168.11.40:5160' Method: OPTIONS
asterisk*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
Вот настройки:
Транк
исходящий
host=dynamic
port=5060
type=peer
context=from-internal
dtmfmode=rfc2833
disallow=all
allow=alaw&ulaw
insecure=very&port,invite
qualify=yes
defaultuser=10015
secret=пароль
nat=no
canreinvite=no
входящий
type=friend
host=dynamic
secret=пароль
context=from-trunk
dtmfmode=rfc2833
canreinvite=no
qualify=yes
______________Настройки на goip4______________________
Вкладка basic Voip
config mode: config by line
Authentication ID 10015
Password ••••••••••
Routing Prefix 1
SIP Proxy 192.168.11.40:5160
SIP Registrar 192.168.11.40:5160
Re-register Period (s) 60
Phone Number 10015
Display Name 10015
____Вкладка advance voip
SIP Listening Port Mode Fixed
Port 5060
Line Selection Mode The Least Number of Calls
SIP INVITE Response SIP 183
SIP Header Via SIP Signaling
SIP Busy Code 603
Call OUT Auth Mode None
Bulit-in SIP Proxy Enable Disable
NAT Keep-alive Enable Disable
DTMF Signaling Inband
Signaling QoS None
Signaling Encryption None
Signaling NAT Traversal None
_______Логи с sip set debug peer
asterisk*CLI> sip set debug peer 10015
SIP Debugging Enabled for IP: 192.168.11.42
<--- SIP read from UDP:192.168.11.42:5060 --->
REGISTER sip:192.168.11.40:5160 SIP/2.0
Via: SIP/2.0/UDP 192.168.11.42:5060;branch=z9hG4bK279146484
From: "10015" <sip:10015@192.168.11.40>;tag=1967444772
To: "10015" <sip:10015@192.168.11.40>
Call-ID: 1230971729@192.168.11.42
CSeq: 28 REGISTER
Contact: <sip:10015@192.168.11.42:5060>;expires=60
Authorization: Digest username="10015", realm="asterisk", nonce="7d0841d5", uri="s ip:192.168.11.40:5160", response="a06599f2e47a3bb37c09fa5adc21e15b", algorithm=MD5
Max-Forwards: 30
User-Agent: dble
Expires: 60
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.11.42:5060 (no NAT)
[2022-07-07 16:45:55] NOTICE[11058]: chan_sip.c:17309 check_auth: Correct auth, bu t based on stale nonce received from '"10015" <sip:10015@192.168.11.40>;tag=196744 4772'
<--- Transmitting (no NAT) to 192.168.11.42:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.11.42:5060;branch=z9hG4bK279146484;received=192.168.11.42
From: "10015" <sip:10015@192.168.11.40>;tag=1967444772
To: "10015" <sip:10015@192.168.11.40>;tag=as5480eca1
Call-ID: 1230971729@192.168.11.42
CSeq: 28 REGISTER
Server: FPBX-14.0.16.11(13.22.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="45f0c957", stale= true
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '1230971729@192.168.11.42' in 32000 ms (Metho d: REGISTER)
<--- SIP read from UDP:192.168.11.42:5060 --->
REGISTER sip:192.168.11.40:5160 SIP/2.0
Via: SIP/2.0/UDP 192.168.11.42:5060;branch=z9hG4bK402719319
From: "10015" <sip:10015@192.168.11.40>;tag=1967444772
To: "10015" <sip:10015@192.168.11.40>
Call-ID: 1230971729@192.168.11.42
CSeq: 29 REGISTER
Contact: <sip:10015@192.168.11.42:5060>;expires=60
Authorization: Digest username="10015", realm="asterisk", nonce="45f0c957", uri="s ip:192.168.11.40:5160", response="371fa00c246b0301afee0731591a8b94", algorithm=MD5
Max-Forwards: 30
User-Agent: dble
Expires: 60
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.11.42:5060 (no NAT)
Reliably Transmitting (no NAT) to 192.168.11.42:5060:
OPTIONS sip:10015@192.168.11.42:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.11.40:5160;branch=z9hG4bK5eb79ed9
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.11.40:5160>;tag=as7268bf1c
To: <sip:10015@192.168.11.42:5060>
Contact: <sip:Unknown@192.168.11.40:5160>
Call-ID: 164fa0e17ad77f03749cc2766fd40f76@192.168.11.40:5160
CSeq: 102 OPTIONS
User-Agent: FPBX-14.0.16.11(13.22.0)
Date: Thu, 07 Jul 2022 13:45:55 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
<--- Transmitting (no NAT) to 192.168.11.42:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.11.42:5060;branch=z9hG4bK402719319;received=192.168.11.42
From: "10015" <sip:10015@192.168.11.40>;tag=1967444772
To: "10015" <sip:10015@192.168.11.40>;tag=as5480eca1
Call-ID: 1230971729@192.168.11.42
CSeq: 29 REGISTER
Server: FPBX-14.0.16.11(13.22.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 60
Contact: <sip:10015@192.168.11.42:5060>;expires=60
Date: Thu, 07 Jul 2022 13:45:55 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '1230971729@192.168.11.42' in 32000 ms (Metho d: REGISTER)
<--- SIP read from UDP:192.168.11.42:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.11.40:5160;branch=z9hG4bK5eb79ed9
From: "Unknown" <sip:Unknown@192.168.11.40:5160>;tag=as7268bf1c
To: <sip:10015@192.168.11.42:5060>;tag=1444605968
Call-ID: 164fa0e17ad77f03749cc2766fd40f76@192.168.11.40:5160
CSeq: 102 OPTIONS
User-Agent: dble
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REFER, REGISTER, MESSAGE, INFO, SUBSCRIBE
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Really destroying SIP dialog '164fa0e17ad77f03749cc2766fd40f76@192.168.11.40:5160' Method: OPTIONS
asterisk*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups