Имеется готовый дистрибутив FreePBX Distro с Астериск 13. Стоит за NAT.
Настроен транк, регистрация в билайне проходит успешно.
Создан экстеншен 102, исходящие вызовы с него нормально уходят, слышимость в обе стороны.
Входящий маршрут настроен ANY CID на экстеншен 102.
А вот когда с мобильного звоню на билайновский номер, то звонок не приходит.. в консоли пусто, вообще ни одной записи не появляется.
SIP дебаг при входящем звонке следующий:
192.168.1.65 - внутренний IP астериска
192.168.1.2 - это адрес IP телефона экстеншена 102.
Код: Выделить всё
localhost*CLI> sip set debug on
SIP Debugging enabled
<--- SIP read from UDP:10.25.0.50:5060 --->
INVITE sip:7499_на_который_звоню@внешн_ip_астериска:5060 SIP/2.0
Max-Forwards: 66
Via: SIP/2.0/UDP 10.25.0.50:5060;branch=z9hG4bKg3Zqkv7igyz6ifugo3q2qnio8ruqbzr7x
To: <sip:+7499_на_который_звоню@sip.beeline.ru;user=phone>
From: <sip:+7929с_которого_звоню@sip.beeline.ru;user=phone>;tag=h7g4Esbg_p65541t1458719846m308344c1003550s1_2923704882-734655919
Call-ID: p65541t1458719846m308344c1003550s2
CSeq: 1 INVITE
Contact: <sip:sgc_c@10.25.0.50;transport=udp>;+g.3gpp.icsi-ref="urn%3Aurn-xxx%3A3gpp-service.ims.icsi.mmtel"
Record-Route: <sip:10.25.0.50;transport=udp;lr>
Accept-Contact: *;+g.3gpp.icsi-ref="urn%3Aurn-xxx%3A3gpp-service.ims.icsi.mmtel"
Min-Se: 900
P-Asserted-Identity: <sip:+7929с_которого_звоню@sip.beeline.ru;user=phone>
Session-Expires: 1800
Supported: timer
Supported: 100rel
User-Agent: Ericsson MTAS - CXP9020729/7 R5K/12
Content-Type: application/sdp
Content-Length: 252
Session-ID: db00c612a2fc5cf747f734d4c5cedbc8
Allow: REGISTER, REFER, NOTIFY, SUBSCRIBE, PRACK, UPDATE, PUBLISH, INFO, INVITE, ACK, OPTIONS, CANCEL, BYE
Accept: application/sdp
Accept: application/isup
Accept: application/vnd.etsi.sci+xml
Accept: multipart/mixed
v=0
o=- 2000208467 2923704622 IN IP4 10.25.0.50
s=Basic Session
c=IN IP4 10.25.0.36
t=0 0
m=audio 43956 RTP/AVP 8 101 0 18 96
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=fmtp:18 annexb=no
a=rtpmap:96 AMR/8000
a=fmtp:96 octet-align=1
<------------->
--- (24 headers 11 lines) ---
Sending to 10.25.0.50:5060 (NAT)
Sending to 10.25.0.50:5060 (NAT)
Using INVITE request as basis request - p65541t1458719846m308344c1003550s2
No matching peer for '+7929с_которого_звоню' from '10.25.0.50:5060'
<--- Reliably Transmitting (NAT) to 10.25.0.50:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.25.0.50:5060;branch=z9hG4bKg3Zqkv7igyz6ifugo3q2qnio8ruqbzr7x;received=10.25.0.50;rport=5060
From: <sip:+7929с_которого_звоню@sip.beeline.ru;user=phone>;tag=h7g4Esbg_p65541t1458719846m308344c1003550s1_2923704882-734655919
To: <sip:+7499_на_который_звоню@sip.beeline.ru;user=phone>;tag=as4702ce80
Call-ID: p65541t1458719846m308344c1003550s2
CSeq: 1 INVITE
Server: FPBX-13.0.91(13.7.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="2c361227"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'p65541t1458719846m308344c1003550s2' in 32000 ms (Method: INVITE)
<--- SIP read from UDP:10.25.0.50:5060 --->
ACK sip:7499_на_который_звоню@внешн_ip_астериска:5060 SIP/2.0
Max-Forwards: 70
Via: SIP/2.0/UDP 10.25.0.50:5060;received=10.25.0.50;rport=5060;branch=z9hG4bKg3Zqkv7igyz6ifugo3q2qnio8ruqbzr7x
To: <sip:+7499_на_который_звоню@sip.beeline.ru;user=phone>;tag=as4702ce80
From: <sip:+7929с_которого_звоню@sip.beeline.ru;user=phone>;tag=h7g4Esbg_p65541t1458719846m308344c1003550s1_2923704882-734655919
Call-ID: p65541t1458719846m308344c1003550s2
CSeq: 1 ACK
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
Reliably Transmitting (NAT) to 192.168.1.2:5060:
OPTIONS sip:102@192.168.1.2:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.65:5060;branch=z9hG4bK04056f62;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.65>;tag=as68ba3df9
To: <sip:102@192.168.1.2:5060>
Contact: <sip:Unknown@192.168.1.65:5060>
Call-ID: 46dd8a802a9c2f48306b6874664eae67@192.168.1.65:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-13.0.91(13.7.1)
Date: Wed, 23 Mar 2016 07:57:24 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
<--- SIP read from UDP:10.25.0.50:5060 --->
INVITE sip:7499_на_который_звоню@внешн_ip_астериска:5060 SIP/2.0
Max-Forwards: 66
Via: SIP/2.0/UDP 10.25.0.50:5060;branch=z9hG4bKg3Zqkv7ipxwfvqdtxnjlzri63gmvsm56v
To: <sip:+7499_на_который_звоню@sip.beeline.ru;user=phone>
From: <sip:+7929с_которого_звоню@sip.beeline.ru;user=phone>;tag=h7g4Esbg_p65541t1458719847m611858c1003551s1_2925008703-1698398767
Call-ID: p65541t1458719847m611858c1003551s2
CSeq: 1 INVITE
Contact: <sip:sgc_c@10.25.0.50;transport=udp>;+g.3gpp.icsi-ref="urn%3Aurn-xxx%3A3gpp-service.ims.icsi.mmtel"
Record-Route: <sip:10.25.0.50;transport=udp;lr>
Accept-Contact: *;+g.3gpp.icsi-ref="urn%3Aurn-xxx%3A3gpp-service.ims.icsi.mmtel"
Min-Se: 900
P-Asserted-Identity: <sip:+7929с_которого_звоню@sip.beeline.ru;user=phone>
Session-Expires: 1800
Supported: timer
Supported: 100rel
User-Agent: Ericsson MTAS - CXP9020729/7 R5K/12
Content-Type: application/sdp
Content-Length: 252
Session-ID: ab00f4127dfc7df88df745d5fcd09acd
Allow: REGISTER, REFER, NOTIFY, SUBSCRIBE, PRACK, UPDATE, PUBLISH, INFO, INVITE, ACK, OPTIONS, CANCEL, BYE
Accept: application/sdp
Accept: application/isup
Accept: application/vnd.etsi.sci+xml
Accept: multipart/mixed
v=0
o=- 1882336286 2925008436 IN IP4 10.25.0.50
s=Basic Session
c=IN IP4 10.25.0.36
t=0 0
m=audio 44560 RTP/AVP 8 101 0 18 96
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=fmtp:18 annexb=no
a=rtpmap:96 AMR/8000
a=fmtp:96 octet-align=1
<------------->
--- (24 headers 11 lines) ---
Sending to 10.25.0.50:5060 (NAT)
Sending to 10.25.0.50:5060 (NAT)
Using INVITE request as basis request - p65541t1458719847m611858c1003551s2
No matching peer for '+7929с_которого_звоню' from '10.25.0.50:5060'
<--- Reliably Transmitting (NAT) to 10.25.0.50:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.25.0.50:5060;branch=z9hG4bKg3Zqkv7ipxwfvqdtxnjlzri63gmvsm56v;received=10.25.0.50;rport=5060
From: <sip:+7929с_которого_звоню@sip.beeline.ru;user=phone>;tag=h7g4Esbg_p65541t1458719847m611858c1003551s1_2925008703-1698398767
To: <sip:+7499_на_который_звоню@sip.beeline.ru;user=phone>;tag=as24718c00
Call-ID: p65541t1458719847m611858c1003551s2
CSeq: 1 INVITE
Server: FPBX-13.0.91(13.7.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4856b7db"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'p65541t1458719847m611858c1003551s2' in 32000 ms (Method: INVITE)
<--- SIP read from UDP:10.25.0.50:5060 --->
ACK sip:7499_на_который_звоню@внешн_ip_астериска:5060 SIP/2.0
Max-Forwards: 70
Via: SIP/2.0/UDP 10.25.0.50:5060;received=10.25.0.50;rport=5060;branch=z9hG4bKg3Zqkv7ipxwfvqdtxnjlzri63gmvsm56v
To: <sip:+7499_на_который_звоню@sip.beeline.ru;user=phone>;tag=as24718c00
From: <sip:+7929с_которого_звоню@sip.beeline.ru;user=phone>;tag=h7g4Esbg_p65541t1458719847m611858c1003551s1_2925008703-1698398767
Call-ID: p65541t1458719847m611858c1003551s2
CSeq: 1 ACK
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
<--- SIP read from UDP:192.168.1.2:5060 --->
SIP/2.0 200 OK
To: <sip:102@192.168.1.2:5060>;tag=ad3f0029c5cd8992i1
From: "Unknown" <sip:Unknown@192.168.1.65>;tag=as68ba3df9
Call-ID: 46dd8a802a9c2f48306b6874664eae67@192.168.1.65:5060
CSeq: 102 OPTIONS
Via: SIP/2.0/UDP 192.168.1.65:5060;branch=z9hG4bK04056f62
Server: Linksys/SPA2102-5.2.12
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura, replaces
<------------->
--- (10 headers 0 lines) ---
Really destroying SIP dialog '46dd8a802a9c2f48306b6874664eae67@192.168.1.65:5060' Method: OPTIONS
<--- SIP read from UDP:10.25.0.50:5060 --->
INVITE sip:7499_на_который_звоню@внешн_ip_астериска:5060 SIP/2.0
Max-Forwards: 66
Via: SIP/2.0/UDP 10.25.0.50:5060;branch=z9hG4bKg3Zqkv7i45od1jfbvcuzrsqxscixk1sfw
To: <sip:+7499_на_который_звоню@sip.beeline.ru;user=phone>
From: <sip:+7929с_которого_звоню@sip.beeline.ru;user=phone>;tag=h7g4Esbg_p65541t1458719847m611858c1003551s3_2925712306-918690105
Call-ID: p65541t1458719847m611858c1003551s4
CSeq: 1 INVITE
Contact: <sip:sgc_c@10.25.0.50;transport=udp>;+g.3gpp.icsi-ref="urn%3Aurn-xxx%3A3gpp-service.ims.icsi.mmtel"
Record-Route: <sip:10.25.0.50;transport=udp;lr>
Accept-Contact: *;+g.3gpp.icsi-ref="urn%3Aurn-xxx%3A3gpp-service.ims.icsi.mmtel"
Min-Se: 900
P-Asserted-Identity: <sip:+7929с_которого_звоню@sip.beeline.ru;user=phone>
Session-Expires: 1800
Supported: timer
Supported: 100rel
User-Agent: Ericsson MTAS - CXP9020729/7 R5K/12
Content-Type: application/sdp
Content-Length: 252
Session-ID: a4006128f8fca7f8a4f7e3d482d11dc5
Allow: REGISTER, REFER, NOTIFY, SUBSCRIBE, PRACK, UPDATE, PUBLISH, INFO, INVITE, ACK, OPTIONS, CANCEL, BYE
Accept: application/sdp
Accept: application/isup
Accept: application/vnd.etsi.sci+xml
Accept: multipart/mixed
v=0
o=- 1351154338 2925712070 IN IP4 10.25.0.50
s=Basic Session
c=IN IP4 10.25.0.36
t=0 0
m=audio 44460 RTP/AVP 8 101 0 18 96
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=fmtp:18 annexb=no
a=rtpmap:96 AMR/8000
a=fmtp:96 octet-align=1
<------------->
--- (24 headers 11 lines) ---
Sending to 10.25.0.50:5060 (NAT)
Sending to 10.25.0.50:5060 (NAT)
Using INVITE request as basis request - p65541t1458719847m611858c1003551s4
No matching peer for '+7929с_которого_звоню' from '10.25.0.50:5060'
<--- Reliably Transmitting (NAT) to 10.25.0.50:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.25.0.50:5060;branch=z9hG4bKg3Zqkv7i45od1jfbvcuzrsqxscixk1sfw;received=10.25.0.50;rport=5060
From: <sip:+7929с_которого_звоню@sip.beeline.ru;user=phone>;tag=h7g4Esbg_p65541t1458719847m611858c1003551s3_2925712306-918690105
To: <sip:+7499_на_который_звоню@sip.beeline.ru;user=phone>;tag=as25e1738c
Call-ID: p65541t1458719847m611858c1003551s4
CSeq: 1 INVITE
Server: FPBX-13.0.91(13.7.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="52338aa6"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'p65541t1458719847m611858c1003551s4' in 32000 ms (Method: INVITE)
<--- SIP read from UDP:10.25.0.50:5060 --->
ACK sip:7499_на_который_звоню@внешн_ip_астериска:5060 SIP/2.0
Max-Forwards: 70
Via: SIP/2.0/UDP 10.25.0.50:5060;received=10.25.0.50;rport=5060;branch=z9hG4bKg3Zqkv7i45od1jfbvcuzrsqxscixk1sfw
To: <sip:+7499_на_который_звоню@sip.beeline.ru;user=phone>;tag=as25e1738c
From: <sip:+7929с_которого_звоню@sip.beeline.ru;user=phone>;tag=h7g4Esbg_p65541t1458719847m611858c1003551s3_2925712306-918690105
Call-ID: p65541t1458719847m611858c1003551s4
CSeq: 1 ACK
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
localhost*CLI> sip set debug off
SIP Debugging Disabled
localhost*CLI>
No matching peer for '+7929с_которого_звоню' from '10.25.0.50:5060'
10.25.0.50 - это адрес sip proxy msk.sip.beeline.ru
Что это может означать?
Еще смущает статус транка Unmonitored
Хотя пишет что транк зарегистрирован
localhost*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
msk.sip.beeline.ru:5060 Y login@sip.b 105 Registered Wed, 23 Mar 2016 11:39:55
1 SIP registrations.