При звонке с внешнего телефона (городской) в трубке короткие гудки.
sip show peers выводит:
trunk_1/+78442XXXXXX 83.239.128.73 N A 5060 Unmonitored
sip show registry
Host dnsmgr Username Refresh State Reg.Time
ims.volgatel.ru:5060 N +78442XXXXXX 3048 Registered Fri, 23 Aug 2013 16:20:50
ims.volgatel.ru:5060 N +78442XXXXXX 3521 Registered Fri, 23 Aug 2013 16:20:04
(не совсем правда понятно почему две записи? )
При подключении к asterisk получаю:
DiskStation*CLI>
[0K
<--- SIP read from UDP:83.239.128.73:5060 --->
INVITE sip:s@IP_адрес_роутера:5060 SIP/2.0
Call-ID: LU-1300261099137435-8828440@imsgroup0-000.ics01.ims.volgatel.ru
Via: SIP/2.0/UDP 83.239.128.73:5060;branch=z9hG4bK5e9d33470b27bedfb0d04038aa085e9507dc2b1-1300261099137655;_aluscr_
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK_005_1300261099-137471-24631546-LucentPCSF
To: <sip:+78442XXXXXX@icsf-stdn.ics01.ims.volgatel.ru:5060;user=phone>
From: "78442YYYYYY" <sip:+78442YYYYYY@vgmgcf01-sig.mgcf.ims.volgatel.ru:51000;user=phone>;tag=507dc2b1-1300261099137439-gm-pt-lucentPCSF-118167
CSeq: 1 INVITE
Allow: INVITE,BYE,REGISTER,ACK,OPTIONS,CANCEL,SUBSCRIBE,NOTIFY,PRACK,INFO,REFER,UPDATE
Contact: <sip:lucentNGFS-072454@pcgw-isgw.imsgroup0-000.ics01.ims.volgatel.ru:5060;
encoded-parm=dHRRQlZLFENaSg9RcMCxQPGwUeGHYDX0BBXBoXBkZGVhAXMmw1KykhJjwsJmU-OHR6YGdi>
Content-Type: application/sdp
Expires: 180
History-Info: <sip:+78442XXXXXX@icsf-stdn.ics01.ims.volgatel.ru:5060;user=phone;transport=udp>;index=1
Max-Forwards: 68
Privacy: none
P-Asserted-Identity: "78442YYYYYY" <sip:+78442YYYYYY@vgmgcf01-sig.mgcf.ims.volgatel.ru;user=phone>
P-Called-Party-ID: <sip:+78442XXXXXX@ims.volgatel.ru:5060;transport=udp;user=phone>
Request-Disposition: fork,parallel
Supported: histinfo,100rel
User-Agent: Alcatel-Lucent 5060 MGC-8 8.2.1.10.SP1.1
Content-Length: 346
v=0
o=LucentPCSF 415667334 415667334 IN IP4 imsgroup0-000.ics01.ims.volgatel.ru
s=-
c=IN IP4 83.239.128.74
t=0 0
m=audio 42174 RTP/AVP 8 0 18 100
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:100 telephone-event/8000
a=fmtp:100 0-15
a=ptime:20
a=maxptime:30
a=silenceSupp:off - - - -
<------------->
--- (20 headers 15 lines) ---
Sending to 83.239.128.73:5060 (NAT)
Using INVITE request as basis request - LU-1300261099137435-8828440@imsgroup0-000.ics01.ims.volgatel.ru
Found peer 'trunk_1' for '+78442YYYYYY' from 83.239.128.73:5060
<--- Reliably Transmitting (NAT) to 83.239.128.73:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 83.239.128.73:5060;branch=z9hG4bK5e9d33470b27b299d04038aa085e9507dc2b1-1300261099137655;_aluscr_;received=83.239.128.73;rport=5060
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK_005_1300261099-137471-24631546-LucentPCSF
From: "78442YYYYYY" <sip:+78442YYYYYY@vgmgcf01-sig.mgcf.ims.volgatel.ru:51000;user=phone>;tag=507dc2b1-1300261097439-gm-pt-lucentPCSF-789167
To: <sip:+78442XXXXXX@icsf-stdn.ics01.ims.volgatel.ru:5060;user=phone>;tag=as32c8e70b
Call-ID: LU-1300261099137435-8828440@imsgroup0-000.ics01.ims.volgatel.ru
CSeq: 1 INVITE
Server: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="75930612"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'LU-1300261099137435-8828440@imsgroup0-000.ics01.ims.volgatel.ru' in 32000 ms (Method: INVITE)
DiskStation*CLI>
[0K
<--- SIP read from UDP:83.239.128.73:5060 --->
ACK sip:s@IP_АДРЕС РОУТЕРА:5060 SIP/2.0
Call-ID: LU-1300261099137435-8828440@imsgroup0-000.ics01.ims.volgatel.ru
Via: SIP/2.0/UDP 83.239.128.73:5060;branch=z9hG4bK5e9d33470b27b2b0d04038aa085e9507dc2b1-1300261099137655;_aluscr_
To: <sip:+78442XXXXXX@icsf-stdn.ics01.ims.volgatel.ru:5060;user=phone>;tag=as32c8e70b
From: "78442YYYYYY" <sip:+78442YYYYYY@vgmgcf01-sig.mgcf.ims.volgatel.ru:51000;user=phone>;tag=507dc2b1-13261099137439-gm-pt-lucentPCSF-789167
CSeq: 1 ACK
Max-Forwards: 70
Content-Length: 0
В файле extension.conf
все входящие перенаправляются на один внутренний номер.
не совсем нравиться строчка:
<--- Reliably Transmitting (NAT) to 83.239.128.73:5060 --->
SIP/2.0 401 Unauthorized
но авторизация пира проходит, судя по sip show peers