конфиг офиса
Код: Выделить всё
Trunk Name:filial
type=friend
username=filial
secret=132
context=from-internal
host=dynamic
nat=yes
insecure=invite,port
canreinvite=no
Register String: office:132@filialip/filial
Код: Выделить всё
Trunk Name:office
type=friend
username=office
secret=132
context=from-internal
host=dynamic
nat=yes
insecure=invite,port
canreinvite=no
Register String: filial:132@officeip/office
в филиале
Код: Выделить всё
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/10004-00000183", "SIP/office/90031,300,Ttr") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
Audio is at 18016
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x8 (alaw) to SDP
Adding codec 0x2 (gsm) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to officeip:5060:
INVITE sip:90031@officeip SIP/2.0
Via: SIP/2.0/UDP filialip:5060;branch=z9hG4bK5f165e0b;rport
Max-Forwards: 70
From: "Dispetcher 1" <sip:10004@filialip>;tag=as529e86d2
To: <sip:90031@officeip>
Contact: <sip:10004@filialip:5060>
Call-ID: 6c2e8c540ca35c2a6fac3ea51b551a7b@filialip:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.11.0(1.8.13.1)
Date: Tue, 03 Jun 2014 07:21:29 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 303
v=0
o=root 194525798 194525798 IN IP4 filialip
s=Asterisk PBX 1.8.13.1~dfsg1-3+deb7u3
c=IN IP4 filialip
t=0 0
m=audio 18016 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
---
-- Called SIP/office/90031
<--- SIP read from UDP:officeip:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP filialip:5060;branch=z9hG4bK5f165e0b;received=filialip;rport=5060
From: "Dispetcher 1" <sip:10004@filialip>;tag=as529e86d2
To: <sip:90031@officeip>;tag=as79445bbf
Call-ID: 6c2e8c540ca35c2a6fac3ea51b551a7b@filialip:5060
CSeq: 102 INVITE
Server: FPBX-2.9.0(1.6.2.9)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4c2ae67b"
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
set_destination: Parsing <sip:90031@officeip> for address/port to send to
set_destination: set destination to officeip:5060
Transmitting (NAT) to officeip:5060:
ACK sip:90031@officeip SIP/2.0
Via: SIP/2.0/UDP filialip:5060;branch=z9hG4bK5f165e0b;rport
Max-Forwards: 70
From: "Dispetcher 1" <sip:10004@filialip>;tag=as529e86d2
To: <sip:90031@officeip>;tag=as79445bbf
Contact: <sip:10004@filialip:5060>
Call-ID: 6c2e8c540ca35c2a6fac3ea51b551a7b@filialip:5060
CSeq: 102 ACK
User-Agent: FPBX-2.11.0(1.8.13.1)
Content-Length: 0
---
Audio is at 18016
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x8 (alaw) to SDP
Adding codec 0x2 (gsm) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to officeip:5060:
INVITE sip:90031@officeip SIP/2.0
Via: SIP/2.0/UDP filialip:5060;branch=z9hG4bK7de64492;rport
Max-Forwards: 70
From: "Dispetcher 1" <sip:10004@filialip>;tag=as529e86d2
To: <sip:90031@officeip>
Contact: <sip:10004@filialip:5060>
Call-ID: 6c2e8c540ca35c2a6fac3ea51b551a7b@filialip:5060
CSeq: 103 INVITE
User-Agent: FPBX-2.11.0(1.8.13.1)
Authorization: Digest username="office", realm="asterisk", algorithm=MD5, uri="sip:90031@officeip", nonce="4c2ae67b", response="df103ca6ce7459aa4f1dc34f935cee99"
Date: Tue, 03 Jun 2014 07:21:29 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 303
v=0
o=root 194525798 194525799 IN IP4 filialip
s=Asterisk PBX 1.8.13.1~dfsg1-3+deb7u3
c=IN IP4 filialip
t=0 0
m=audio 18016 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
---
<--- SIP read from UDP:officeip:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP filialip:5060;branch=z9hG4bK7de64492;received=filialip;rport=5060
From: "Dispetcher 1" <sip:10004@filialip>;tag=as529e86d2
To: <sip:90031@officeip>;tag=as79445bbf
Call-ID: 6c2e8c540ca35c2a6fac3ea51b551a7b@filialip:5060
CSeq: 103 INVITE
Server: FPBX-2.9.0(1.6.2.9)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
set_destination: Parsing <sip:90031@officeip> for address/port to send to
set_destination: set destination to officeip:5060
Transmitting (NAT) to officeip:5060:
ACK sip:90031@officeip SIP/2.0
Via: SIP/2.0/UDP filialip:5060;branch=z9hG4bK7de64492;rport
Max-Forwards: 70
From: "Dispetcher 1" <sip:10004@filialip>;tag=as529e86d2
To: <sip:90031@officeip>;tag=as79445bbf
Contact: <sip:10004@filialip:5060>
Call-ID: 6c2e8c540ca35c2a6fac3ea51b551a7b@filialip:5060
CSeq: 103 ACK
User-Agent: FPBX-2.11.0(1.8.13.1)
Content-Length: 0
---
[2014-06-03 14:21:29] WARNING[26892]: chan_sip.c:20366 handle_response_invite: Received response: "Forbidden" from '"Dispetcher 1" <sip:10004@filialip>;tag=as529e86d2'
Scheduling destruction of SIP dialog '6c2e8c540ca35c2a6fac3ea51b551a7b@filialip:5060' in 32000 ms (Method: INVITE)