Сообщений: 16
|
Re: Trixbox + Portech = Incoming Route
хм,смотрел лог при звонке, receiver не нешел
10.2.2.215 - это Portech
10.2.2.244 - это Trixbox
122@10.2.2.244 - это экстеншен на который должны переадресовываться звонки
incoming_number - это номер с которого звоню на Portech
В логе смущает это вот
From: "SIM" <sip:incoming_number@10.2.2.244>;tag=4e524e00
To: "SIM" <sip:incoming_number@10.2.2.244>;tag=as0bcfad1c
Вроде делал по ману, но все равно такой вот косяк
вот сам лог
<--- SIP read from UDP://10.2.2.215:5060 --->
INVITE sip:122@10.2.2.244 SIP/2.0
Via: SIP/2.0/UDP 10.2.2.215:5060;rport;branch=z9hG4bK5b7497e272
From: "400" <sip:incoming_number@10.2.2.244>;tag=7e515d66
To: <sip:122@10.2.2.244>
Call-ID: 54a92a0e2e08288e199e9a3e7ba06995@10.2.2.215
Contact: <sip:incoming_number@10.2.2.215:5060>
CSeq: 801 INVITE
Max-Forwards: 70
Allow: INVITE,CANCEL,ACK,BYE,NOTIFY,REFER,OPTIONS,INFO,MESSAGE
Supported: replaces
Content-Type: application/sdp
User-Agent: CM5K (706220)
Content-Length: 387
v=0
o=CMI-SIPUA 39186 0 IN IP4 10.2.2.215
s=SIP CALL
c=IN IP4 10.2.2.215
t=0 0
m=audio 60000 RTP/AVP 0 8 4 18 23 22 2 21 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=rtpmap:23 G726-16/8000
a=rtpmap:22 G726-24/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:21 G726-40/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
<------------->
--- (13 headers 17 lines) ---
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
Sending to 10.2.2.215 : 5060 (no NAT)
Using INVITE request as basis request - 54a92a0e2e08288e199e9a3e7ba06995@10.2.2.215
No user 'incoming_number' in SIP users list
Found peer 'TRUNK' for 'incoming_number' from 10.2.2.215:5060
<--- Reliably Transmitting (no NAT) to 10.2.2.215:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.2.2.215:5060;branch=z9hG4bK5b7497e272;received=10.2.2.215;rport=5060
From: "400" <sip:incoming_number@10.2.2.244>;tag=7e515d66
To: <sip:122@10.2.2.244>;tag=as397a70a1
Call-ID: 54a92a0e2e08288e199e9a3e7ba06995@10.2.2.215
CSeq: 801 INVITE
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="1dafe477"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '54a92a0e2e08288e199e9a3e7ba06995@10.2.2.215' in 32000 ms (Method: INVITE)
trixbox1*CLI>
<--- SIP read from UDP://10.2.2.215:5060 --->
ACK sip:122@10.2.2.244 SIP/2.0
Via: SIP/2.0/UDP 10.2.2.215:5060;branch=z9hG4bK5b7497e272
From: "400" <sip:incoming_number@10.2.2.244>;tag=7e515d66
To: <sip:122@10.2.2.244>;tag=as397a70a1
Call-ID: 54a92a0e2e08288e199e9a3e7ba06995@10.2.2.215
Contact: <sip:incoming_number@10.2.2.215:5060>
CSeq: 801 ACK
Max-Forwards: 70
User-Agent: CM5K (706220)
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
trixbox1*CLI>
<--- SIP read from UDP://10.2.2.215:5060 --->
INVITE sip:122@10.2.2.244 SIP/2.0
Via: SIP/2.0/UDP 10.2.2.215:5060;rport;branch=z9hG4bK25fb9c7a27
From: "400" <sip:incoming_number@10.2.2.244>;tag=7e515d66
To: <sip:122@10.2.2.244>
Call-ID: 54a92a0e2e08288e199e9a3e7ba06995@10.2.2.215
Contact: <sip:incoming_number@10.2.2.215:5060>
CSeq: 802 INVITE
Max-Forwards: 70
Allow: INVITE,CANCEL,ACK,BYE,NOTIFY,REFER,OPTIONS,INFO,MESSAGE
Authorization: Digest username="400",realm="asterisk",nonce="1dafe477",response="7c8770b3f6b483b19ccf730bc0f9b151",uri="sip:122@10.2.2.244",algorithm=MD5
Supported: replaces
Content-Type: application/sdp
User-Agent: CM5K (706220)
Content-Length: 387
v=0
o=CMI-SIPUA 39186 0 IN IP4 10.2.2.215
s=SIP CALL
c=IN IP4 10.2.2.215
t=0 0
m=audio 60000 RTP/AVP 0 8 4 18 23 22 2 21 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=rtpmap:23 G726-16/8000
a=rtpmap:22 G726-24/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:21 G726-40/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
<------------->
--- (14 headers 17 lines) ---
Sending to 10.2.2.215 : 5060 (no NAT)
Using INVITE request as basis request - 54a92a0e2e08288e199e9a3e7ba06995@10.2.2.215
No user 'incoming_number' in SIP users list
Found peer 'TRUNK' for 'incoming_number' from 10.2.2.215:5060
<--- Reliably Transmitting (no NAT) to 10.2.2.215:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.2.2.215:5060;branch=z9hG4bK25fb9c7a27;received=10.2.2.215;rport=5060
From: "400" <sip:incoming_number@10.2.2.244>;tag=7e515d66
To: <sip:122@10.2.2.244>;tag=as397a70a1
Call-ID: 54a92a0e2e08288e199e9a3e7ba06995@10.2.2.215
CSeq: 802 INVITE
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '54a92a0e2e08288e199e9a3e7ba06995@10.2.2.215' in 32000 ms (Method: INVITE)
trixbox1*CLI>
<--- SIP read from UDP://10.2.2.215:5060 --->
ACK sip:122@10.2.2.244 SIP/2.0
Via: SIP/2.0/UDP 10.2.2.215:5060;branch=z9hG4bK25fb9c7a27
From: "400" <sip:incoming_number@10.2.2.244>;tag=7e515d66
To: <sip:122@10.2.2.244>;tag=as397a70a1
Call-ID: 54a92a0e2e08288e199e9a3e7ba06995@10.2.2.215
CSeq: 802 ACK
Authorization: Digest username="400",realm="asterisk",nonce="1dafe477",response="57123faa1f884959fd792e7052d5af69",uri="sip:122@10.2.2.244",algorithm=MD5
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
trixbox1*CLI>
<--- SIP read from UDP://10.2.2.215:5060 --->
REGISTER sip:10.2.2.244 SIP/2.0
Via: SIP/2.0/UDP 10.2.2.215:5060;rport;branch=z9hG4bK0f99b36b4d
From: "SIM" <sip:incoming_number@10.2.2.244>;tag=4e524e00
To: "SIM" <sip:incoming_number@10.2.2.244>
Call-ID: 4111d38e795831010cf976e44dec7963@10.2.2.215
Contact: <sip:incoming_number@10.2.2.215:5060>
CSeq: 2 REGISTER
Max-Forwards: 70
Expires: 300
Allow: INVITE,CANCEL,ACK,BYE,NOTIFY,REFER,OPTIONS,INFO,MESSAGE
User-Agent: CM5K (706220)
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 10.2.2.215 : 5060 (no NAT)
<--- Transmitting (no NAT) to 10.2.2.215:5060 --->
SIP/2.0 404 Not found
Via: SIP/2.0/UDP 10.2.2.215:5060;branch=z9hG4bK0f99b36b4d;received=10.2.2.215;rport=5060
From: "SIM" <sip:incoming_number@10.2.2.244>;tag=4e524e00
To: "SIM" <sip:incoming_number@10.2.2.244>;tag=as0bcfad1c
Call-ID: 4111d38e795831010cf976e44dec7963@10.2.2.215
CSeq: 2 REGISTER
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
|