Asterisk 12.5, PJSIP and TCP connection error

Hello, Asterisk community!

I have been trying to use Asterisk 12.5 (compiled from source) with the new PJSIP, but I’m stuck when it comes to use TCP transport for my endpoints. I believe my use case is quite simple. To start, I’d just like my endpoints to register to Asterisk using TCP and be able to place calls from one endpoint to another one.

The TCP registration part works fine. Here’s the output of the ‘pjsip show endpoints’ command:

 Endpoint:  <Endpoint/CID.....................................>  <State.....>  <Channels.>
    I/OAuth:  <AuthId/UserName...........................................................>
        Aor:  <Aor............................................>  <MaxContact>
      Contact:  <Aor/ContactUri...............................>  <Status....>  <RTT(ms)..>
  Transport:  <TransportId........>  <Type>  <cos>  <tos>  <BindAddress..................>
   Identify:  <MatchList.................................................................>
    Channel:  <ChannelId......................................>  <State.....>  <Time(sec)>
        Exten: <DialedExten...........>  CLCID: <ConnectedLineCID.......>
 =========================================================================================

 Endpoint:  maxim                                                Not in use    0 of inf
     InAuth:  auth_maxim/maxim
        Aor:  maxim                                              1
      Contact:  maxim/sip:maxim@192.168.0.104:51864;transport=T  Unknown               nan
  Transport:  tcp-transport             tcp      0      0  192.168.0.10:5060

 Endpoint:  yuki                                                 Not in use    0 of inf
     InAuth:  auth_yuki/yuki
        Aor:  yuki                                               1
      Contact:  yuki/sip:yuki@192.168.0.10:50245;transport=tcp;  Unknown               nan
  Transport:  tcp-transport             tcp      0      0  192.168.0.10:5060

My problem is with placing calls; it fails with a TCP refused connection error (Connection refused [code=120111]). The pjsip log looks like this:

<--- Received SIP request (1045 bytes) from TCP:192.168.0.104:51864 --->
INVITE sip:yuki@192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.104:51864;rport;branch=z9hG4bKPjZJBn8bkXyKY1XRU4bj79aDlwkneOJQYY;alias
Max-Forwards: 70
From: <sip:maxim@192.168.0.10>;tag=1FmmzonbeDCndYaHpWKXHkbAYfqBTpWS
To: <sip:yuki@192.168.0.10>
Contact: <sip:maxim@192.168.0.104:51864;transport=TCP;ob>
Call-ID: 3j4DSYhgDlXTQ9jD9BbwbtCIGIPt9yms
CSeq: 13730 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Bria iOS 3.1.1
Content-Type: application/sdp
Content-Length:   447

v=0
o=- 3621432094 3621432094 IN IP4 192.168.0.104
s=cpc_med
c=IN IP4 192.168.0.104
t=0 0
m=audio 4000 RTP/AVP 111 110 109 9 0 8 101
a=sendrecv
a=rtpmap:111 OPUS/48000
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:110 SILK/24000
a=fmtp:110 useinbandfec=1
a=rtpmap:109 SILK/16000
a=fmtp:109 useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

<--- Transmitting SIP response (524 bytes) to TCP:192.168.0.104:51864 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 192.168.0.104:51864;rport;received=192.168.0.104;branch=z9hG4bKPjZJBn8bkXyKY1XRU4bj79aDlwkneOJQYY;alias
Call-ID: 3j4DSYhgDlXTQ9jD9BbwbtCIGIPt9yms
From: <sip:maxim@192.168.0.10>;tag=1FmmzonbeDCndYaHpWKXHkbAYfqBTpWS
To: <sip:yuki@192.168.0.10>;tag=z9hG4bKPjZJBn8bkXyKY1XRU4bj79aDlwkneOJQYY
CSeq: 13730 INVITE
WWW-Authenticate: Digest  realm="asterisk",nonce="1412443293/ceb9971965ed125366c9fcbf0333b36f",opaque="4b20233d07d7a9d2",algorithm=md5,qop="auth"
Content-Length:  0


<--- Received SIP request (378 bytes) from TCP:192.168.0.104:51864 --->
ACK sip:yuki@192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.104:51864;rport;branch=z9hG4bKPjZJBn8bkXyKY1XRU4bj79aDlwkneOJQYY;alias
Max-Forwards: 70
From: <sip:maxim@192.168.0.10>;tag=1FmmzonbeDCndYaHpWKXHkbAYfqBTpWS
To: <sip:yuki@192.168.0.10>;tag=z9hG4bKPjZJBn8bkXyKY1XRU4bj79aDlwkneOJQYY
Call-ID: 3j4DSYhgDlXTQ9jD9BbwbtCIGIPt9yms
CSeq: 13730 ACK
Content-Length:  0


<--- Received SIP request (1338 bytes) from TCP:192.168.0.104:51864 --->
INVITE sip:yuki@192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.104:51864;rport;branch=z9hG4bKPjywcEes4Gs.WLk0NuJ.Kzfj9OoioYfv-r;alias
Max-Forwards: 70
From: <sip:maxim@192.168.0.10>;tag=1FmmzonbeDCndYaHpWKXHkbAYfqBTpWS
To: <sip:yuki@192.168.0.10>
Contact: <sip:maxim@192.168.0.104:51864;transport=TCP;ob>
Call-ID: 3j4DSYhgDlXTQ9jD9BbwbtCIGIPt9yms
CSeq: 13731 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Bria iOS 3.1.1
Authorization: Digest username="maxim", realm="asterisk", nonce="1412443293/ceb9971965ed125366c9fcbf0333b36f", uri="sip:yuki@192.168.0.10", response="bd4e235b7043b2486eab454ef340f9ea", algorithm=md5, cnonce="2dgWtCk3QRFSfBP1nHv-NOM2TByKddHS", opaque="4b20233d07d7a9d2", qop=auth, nc=00000001
Content-Type: application/sdp
Content-Length:   447

v=0
o=- 3621432094 3621432094 IN IP4 192.168.0.104
s=cpc_med
c=IN IP4 192.168.0.104
t=0 0
m=audio 4000 RTP/AVP 111 110 109 9 0 8 101
a=sendrecv
a=rtpmap:111 OPUS/48000
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:110 SILK/24000
a=fmtp:110 useinbandfec=1
a=rtpmap:109 SILK/16000
a=fmtp:109 useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

<--- Transmitting SIP response (325 bytes) to TCP:192.168.0.104:51864 --->
SIP/2.0 100 Trying
Via: SIP/2.0/TCP 192.168.0.104:51864;rport;received=192.168.0.104;branch=z9hG4bKPjywcEes4Gs.WLk0NuJ.Kzfj9OoioYfv-r;alias
Call-ID: 3j4DSYhgDlXTQ9jD9BbwbtCIGIPt9yms
From: <sip:maxim@192.168.0.10>;tag=1FmmzonbeDCndYaHpWKXHkbAYfqBTpWS
To: <sip:yuki@192.168.0.10>
CSeq: 13731 INVITE
Content-Length:  0


    -- Executing [yuki@internal:1] Dial("PJSIP/maxim-00000000", "PJSIP/yuki/sip:yuki@192.168.0.10:50245;transport=tcp;registering_acc=192_168_0_10") in new stack
    -- Called PJSIP/yuki/sip:yuki@192.168.0.10:50245;transport=tcp;registering_acc=192_168_0_10
<--- Transmitting SIP request (985 bytes) to TCP:192.168.0.10:50245 --->
INVITE sip:yuki@192.168.0.10:50245;transport=tcp;registering_acc=192_168_0_10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.10:5060;rport;branch=z9hG4bKPj3830d09a-c013-46d7-825d-e6f8fe0e9333;alias
From: <sip:maxim@192.168.0.10>;tag=f60af0ad-21f1-4494-a8eb-b5b9cb65a1a8
To: <sip:yuki@192.168.0.10;registering_acc=192_168_0_10>
Contact: <sip:a792f588-3821-446f-b716-45e48aea53f0@192.168.0.10:5060;transport=TCP>
Call-ID: 760b1a7f-12d2-4b16-93a0-028d898f0b06
CSeq: 6291 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length:   265

v=0
o=- 1984072071 1984072071 IN IP4 maxim-Vostro-V130
s=Asterisk
c=IN IP4 192.168.0.10
t=0 0
m=audio 15354 RTP/AVP 0 101
c=IN IP4 192.168.0.10
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

[2014-10-04 13:21:33] ERROR[5708]: pjsip:0 <?>: 	tcpc0x7f678c03 TCP connect() error: Connection refused [code=120111]
[2014-10-04 13:21:33] WARNING[5708]: pjsip:0 <?>: 	tsx0x7f678c039 Failed to send Request msg INVITE/cseq=6291 (tdta0x7f678c006d60)! err=120111 (Connection refused)
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Auto fallthrough, channel 'PJSIP/maxim-00000000' status is 'CONGESTION'
<--- Transmitting SIP response (403 bytes) to TCP:192.168.0.104:51864 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/TCP 192.168.0.104:51864;rport;received=192.168.0.104;branch=z9hG4bKPjywcEes4Gs.WLk0NuJ.Kzfj9OoioYfv-r;alias
Call-ID: 3j4DSYhgDlXTQ9jD9BbwbtCIGIPt9yms
From: <sip:maxim@192.168.0.10>;tag=1FmmzonbeDCndYaHpWKXHkbAYfqBTpWS
To: <sip:yuki@192.168.0.10>;tag=edaae71b-9570-457b-8fc5-eec7edd855b1
CSeq: 13731 INVITE
Reason: Q.850;cause=34
Content-Length:  0


<--- Received SIP request (373 bytes) from TCP:192.168.0.104:51864 --->
ACK sip:yuki@192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.104:51864;rport;branch=z9hG4bKPjywcEes4Gs.WLk0NuJ.Kzfj9OoioYfv-r;alias
Max-Forwards: 70
From: <sip:maxim@192.168.0.10>;tag=1FmmzonbeDCndYaHpWKXHkbAYfqBTpWS
To: <sip:yuki@192.168.0.10>;tag=edaae71b-9570-457b-8fc5-eec7edd855b1
Call-ID: 3j4DSYhgDlXTQ9jD9BbwbtCIGIPt9yms
CSeq: 13731 ACK
Content-Length:  0

I’m quite lost as to why that would be, considering there is no NAT.

For reference, here’s my pjsip.conf:

[transport-nat-basic](!)
type=transport
bind=192.168.0.10
local_net=192.168.0.0/24

[tcp-transport](transport-nat-basic)
protocol=tcp

[auth-userpass](!)
type=auth
auth_type=userpass

[endpoint-basic](!)
type=endpoint
transport=tcp-transport
context=internal
disallow=all
allow=ulaw

[maxim](endpoint-basic)
aors=maxim
auth=auth_maxim

[maxim]
type=aor
max_contacts=1

[auth_maxim](auth-userpass)
username=maxim
password=PASSWORD

[yuki](endpoint-basic)
aors=yuki
auth=auth_yuki

[yuki]
type=aor
max_contacts=1

[auth_yuki](auth-userpass)
username=yuki
password=PASSWORD

And here’s my extensions.conf:

[general]
static=yes
writeprotect=no
clearglobalvars=no
autofallthrough=yes
[internal]
exten => maxim,1,Dial(${PJSIP_DIAL_CONTACTS(maxim)})
exten => yuki,1,Dial(${PJSIP_DIAL_CONTACTS(yuki)})

Hello,

i’ve exactly the same problem using Asterisk 12.6.0.
PJSip works fine in UDP transport mode, but when switching to TCP, nothing is being handle.
It seems that PJSip TCP mode is not listening on port 5060, even when no NAT is used or when binding to 0.0.0.0:5060 (all interfaces, SIP port).
I bet there is an issue with chan_pjsip regarding transportat in TCP mode…

Could anyone help us out please?

Thanks in advance

I haven’t found a solution yet, but I can report some interesting findings.

Using the Blink SIP client (on both Windows and Linux), I was able to use SIP with TCP signaling. This may has something to do with the fact that Blink also uses the PJSIP library.

The other SIP clients I tested (Jitsi, Bria) can place outbound calls, but can never receive incoming calls (TCP connection refused).

Here’s Bria’s response, refusing the TCP connection request (SYN):
5 2.081463000 192.168.0.104 192.168.0.10 TCP 54 52349 > 48984 [RST, ACK] Seq=1 Ack=1 Win=0 Len=0

The peer, not Asterisk, is refusing the connection, and it is doing it without seeing any data.

My guess is that Asterisk is setting up the connection to the port specified in the registration, whilst the peer is expecting the standard port to be used. I would want to see the REGISTER request.

Hi David! Thank you for helping out.

Here it is: Bria (iPhone) registering to Asterisk (192.168.0.10) using TCP:

<--- Received SIP request (680 bytes) from TCP:192.168.0.104:52829 --->
REGISTER sip:192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.104:52829;rport;branch=z9hG4bKPj-NMGN909V-UI8FfNJEtUrh4arfE79Xcd;alias
Max-Forwards: 70
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=bQnAk73n0lrlwDe-eM6HEzHmwuY7TxA4
To: "Yuki Fukami" <sip:yuki@192.168.0.10>
Call-ID: u69Z1d0.XNCDtJVb9V3DXfuv8CIVV4rn
CSeq: 17282 REGISTER
User-Agent: Bria iOS 3.1.1
Supported: outbound, path
Contact: "Yuki Fukami" <sip:yuki@192.168.0.104:52829;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:AD2B1DE296CB727F17116EF4E897DB3DBF11A123>"
Expires: 900
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length:  0


<--- Transmitting SIP response (553 bytes) to TCP:192.168.0.104:52829 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 192.168.0.104:52829;rport;received=192.168.0.104;branch=z9hG4bKPj-NMGN909V-UI8FfNJEtUrh4arfE79Xcd;alias
Call-ID: u69Z1d0.XNCDtJVb9V3DXfuv8CIVV4rn
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=bQnAk73n0lrlwDe-eM6HEzHmwuY7TxA4
To: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=z9hG4bKPj-NMGN909V-UI8FfNJEtUrh4arfE79Xcd
CSeq: 17282 REGISTER
WWW-Authenticate: Digest  realm="asterisk",nonce="1412516676/7c797d3323dc9d7fb98b158db776a7de",opaque="4bb32d5752277bd9",algorithm=md5,qop="auth"
Content-Length:  0


<--- Received SIP request (967 bytes) from TCP:192.168.0.104:52829 --->
REGISTER sip:192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.104:52829;rport;branch=z9hG4bKPjagmo98mmGwrg2P4sYyaMA-F8e8HIis4o;alias
Max-Forwards: 70
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=bQnAk73n0lrlwDe-eM6HEzHmwuY7TxA4
To: "Yuki Fukami" <sip:yuki@192.168.0.10>
Call-ID: u69Z1d0.XNCDtJVb9V3DXfuv8CIVV4rn
CSeq: 17283 REGISTER
User-Agent: Bria iOS 3.1.1
Supported: outbound, path
Contact: "Yuki Fukami" <sip:yuki@192.168.0.104:52829;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:AD2B1DE296CB727F17116EF4E897DB3DBF11A123>"
Expires: 900
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username="yuki", realm="asterisk", nonce="1412516676/7c797d3323dc9d7fb98b158db776a7de", uri="sip:192.168.0.10", response="c389c4b9ee28b87dced54279ac0d651c", algorithm=md5, cnonce="tdoahmVPR-5ZPSPGLmDvTUmk03qYbTjR", opaque="4bb32d5752277bd9", qop=auth, nc=00000001
Content-Length:  0


    -- Added contact 'sip:yuki@192.168.0.104:52829;transport=TCP;ob' to AOR 'yuki' with expiration of 900 seconds
<--- Transmitting SIP response (503 bytes) to TCP:192.168.0.104:52829 --->
SIP/2.0 200 OK
Via: SIP/2.0/TCP 192.168.0.104:52829;rport;received=192.168.0.104;branch=z9hG4bKPjagmo98mmGwrg2P4sYyaMA-F8e8HIis4o;alias
Call-ID: u69Z1d0.XNCDtJVb9V3DXfuv8CIVV4rn
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=bQnAk73n0lrlwDe-eM6HEzHmwuY7TxA4
To: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=z9hG4bKPjagmo98mmGwrg2P4sYyaMA-F8e8HIis4o
CSeq: 17283 REGISTER
Date: Sun, 05 Oct 2014 13:44:36 GMT
Contact: <sip:yuki@192.168.0.104:52829;transport=TCP;ob>;expires=899
Content-Length:  0

And here is my second endpoint, ‘maxim’, registration log:

<--- Received SIP request (641 bytes) from TCP:192.168.0.100:59640 --->
REGISTER sip:192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.100:59640;rport;branch=z9hG4bKPji1ZEPoMJutzUH7ysi6jhEv8xh61DFcQn;alias
Max-Forwards: 70
From: <sip:maxim@192.168.0.10>;tag=TVvlt.vcHSl8yP-9vl9izLzicrvSbsjf
To: <sip:maxim@192.168.0.10>
Call-ID: VXsUVkuZrE13EBrKWkr9AdxBaqxCW-Bk
CSeq: 28718 REGISTER
User-Agent: Bria iOS 3.1.2
Supported: outbound, path
Contact: <sip:maxim@192.168.0.100:59640;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:A536FC6E61B5A31C7E334CB09138A060A9D6E6CC>"
Expires: 900
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length:  0


<--- Transmitting SIP response (527 bytes) to TCP:192.168.0.100:59640 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 192.168.0.100:59640;rport;received=192.168.0.100;branch=z9hG4bKPji1ZEPoMJutzUH7ysi6jhEv8xh61DFcQn;alias
Call-ID: VXsUVkuZrE13EBrKWkr9AdxBaqxCW-Bk
From: <sip:maxim@192.168.0.10>;tag=TVvlt.vcHSl8yP-9vl9izLzicrvSbsjf
To: <sip:maxim@192.168.0.10>;tag=z9hG4bKPji1ZEPoMJutzUH7ysi6jhEv8xh61DFcQn
CSeq: 28718 REGISTER
WWW-Authenticate: Digest  realm="asterisk",nonce="1412517343/f4dc397b54a8252c9d96ff9ec534e8c8",opaque="78e56f764822320c",algorithm=md5,qop="auth"
Content-Length:  0


<--- Received SIP request (929 bytes) from TCP:192.168.0.100:59640 --->
REGISTER sip:192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.100:59640;rport;branch=z9hG4bKPj9NmnOGASNWLmxM9n31rvRD7uncHGAkMb;alias
Max-Forwards: 70
From: <sip:maxim@192.168.0.10>;tag=TVvlt.vcHSl8yP-9vl9izLzicrvSbsjf
To: <sip:maxim@192.168.0.10>
Call-ID: VXsUVkuZrE13EBrKWkr9AdxBaqxCW-Bk
CSeq: 28719 REGISTER
User-Agent: Bria iOS 3.1.2
Supported: outbound, path
Contact: <sip:maxim@192.168.0.100:59640;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:A536FC6E61B5A31C7E334CB09138A060A9D6E6CC>"
Expires: 900
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username="maxim", realm="asterisk", nonce="1412517343/f4dc397b54a8252c9d96ff9ec534e8c8", uri="sip:192.168.0.10", response="e1b87defbc370fe6a4be546fd60bfd0e", algorithm=md5, cnonce="mfsnuV6IcfAN4lKpo6PLbXzjDclHj8gF", opaque="78e56f764822320c", qop=auth, nc=00000001
Content-Length:  0


    -- Added contact 'sip:maxim@192.168.0.100:59640;transport=TCP;ob' to AOR 'maxim' with expiration of 900 seconds
<--- Transmitting SIP response (478 bytes) to TCP:192.168.0.100:59640 --->
SIP/2.0 200 OK
Via: SIP/2.0/TCP 192.168.0.100:59640;rport;received=192.168.0.100;branch=z9hG4bKPj9NmnOGASNWLmxM9n31rvRD7uncHGAkMb;alias
Call-ID: VXsUVkuZrE13EBrKWkr9AdxBaqxCW-Bk
From: <sip:maxim@192.168.0.10>;tag=TVvlt.vcHSl8yP-9vl9izLzicrvSbsjf
To: <sip:maxim@192.168.0.10>;tag=z9hG4bKPj9NmnOGASNWLmxM9n31rvRD7uncHGAkMb
CSeq: 28719 REGISTER
Date: Sun, 05 Oct 2014 13:55:43 GMT
Contact: <sip:maxim@192.168.0.100:59640;transport=TCP;ob>;expires=899
Content-Length:  0

When I place a call from the endpoint ‘yuki’ to the endpoint ‘maxim’, the following log is produced from PJSIP:

<--- Received SIP request (1073 bytes) from TCP:192.168.0.104:52829 --->
INVITE sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.104:52829;rport;branch=z9hG4bKPjRGHj6RL6TYJXnpvYCdpi9L41ngfwXi7e;alias
Max-Forwards: 70
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=sud3ObxrvVlWU2wWquFAwo16ddGPo937
To: <sip:maxim@192.168.0.10>
Contact: "Yuki Fukami" <sip:yuki@192.168.0.104:52829;transport=TCP;ob>
Call-ID: ZazFd9mUbZYBt3grLCwE2UQQf85.ERU-
CSeq: 29955 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Bria iOS 3.1.1
Content-Type: application/sdp
Content-Length:   447

v=0
o=- 3621506272 3621506272 IN IP4 192.168.0.104
s=cpc_med
c=IN IP4 192.168.0.104
t=0 0
m=audio 4002 RTP/AVP 111 110 109 9 0 8 101
a=sendrecv
a=rtpmap:111 OPUS/48000
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:110 SILK/24000
a=fmtp:110 useinbandfec=1
a=rtpmap:109 SILK/16000
a=fmtp:109 useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

<--- Transmitting SIP response (538 bytes) to TCP:192.168.0.104:52829 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 192.168.0.104:52829;rport;received=192.168.0.104;branch=z9hG4bKPjRGHj6RL6TYJXnpvYCdpi9L41ngfwXi7e;alias
Call-ID: ZazFd9mUbZYBt3grLCwE2UQQf85.ERU-
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=sud3ObxrvVlWU2wWquFAwo16ddGPo937
To: <sip:maxim@192.168.0.10>;tag=z9hG4bKPjRGHj6RL6TYJXnpvYCdpi9L41ngfwXi7e
CSeq: 29955 INVITE
WWW-Authenticate: Digest  realm="asterisk",nonce="1412517470/95ee2c812c81b81e6925751a498f1c36",opaque="6d4464120d690c19",algorithm=md5,qop="auth"
Content-Length:  0


<--- Received SIP request (393 bytes) from TCP:192.168.0.104:52829 --->
ACK sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.104:52829;rport;branch=z9hG4bKPjRGHj6RL6TYJXnpvYCdpi9L41ngfwXi7e;alias
Max-Forwards: 70
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=sud3ObxrvVlWU2wWquFAwo16ddGPo937
To: <sip:maxim@192.168.0.10>;tag=z9hG4bKPjRGHj6RL6TYJXnpvYCdpi9L41ngfwXi7e
Call-ID: ZazFd9mUbZYBt3grLCwE2UQQf85.ERU-
CSeq: 29955 ACK
Content-Length:  0


<--- Received SIP request (1366 bytes) from TCP:192.168.0.104:52829 --->
INVITE sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.104:52829;rport;branch=z9hG4bKPjPWyk0T0LRITEVIz1WVIFgmzyscdt-Y7m;alias
Max-Forwards: 70
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=sud3ObxrvVlWU2wWquFAwo16ddGPo937
To: <sip:maxim@192.168.0.10>
Contact: "Yuki Fukami" <sip:yuki@192.168.0.104:52829;transport=TCP;ob>
Call-ID: ZazFd9mUbZYBt3grLCwE2UQQf85.ERU-
CSeq: 29956 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Bria iOS 3.1.1
Authorization: Digest username="yuki", realm="asterisk", nonce="1412517470/95ee2c812c81b81e6925751a498f1c36", uri="sip:maxim@192.168.0.10", response="d0b947310c7c8eea0b425b623a58f3cf", algorithm=md5, cnonce="siNlLoc2pbXstsaDti81GS.y30Lp-WXx", opaque="6d4464120d690c19", qop=auth, nc=00000001
Content-Type: application/sdp
Content-Length:   447

v=0
o=- 3621506272 3621506272 IN IP4 192.168.0.104
s=cpc_med
c=IN IP4 192.168.0.104
t=0 0
m=audio 4002 RTP/AVP 111 110 109 9 0 8 101
a=sendrecv
a=rtpmap:111 OPUS/48000
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:110 SILK/24000
a=fmtp:110 useinbandfec=1
a=rtpmap:109 SILK/16000
a=fmtp:109 useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

<--- Transmitting SIP response (339 bytes) to TCP:192.168.0.104:52829 --->
SIP/2.0 100 Trying
Via: SIP/2.0/TCP 192.168.0.104:52829;rport;received=192.168.0.104;branch=z9hG4bKPjPWyk0T0LRITEVIz1WVIFgmzyscdt-Y7m;alias
Call-ID: ZazFd9mUbZYBt3grLCwE2UQQf85.ERU-
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=sud3ObxrvVlWU2wWquFAwo16ddGPo937
To: <sip:maxim@192.168.0.10>
CSeq: 29956 INVITE
Content-Length:  0


    -- Executing [maxim@internal:1] Dial("PJSIP/yuki-0000001b", "PJSIP/maxim/sip:maxim@192.168.0.100:59640;transport=TCP;ob") in new stack
<--- Transmitting SIP request (923 bytes) to TCP:192.168.0.100:59640 --->
INVITE sip:maxim@192.168.0.100:59640;transport=TCP;ob SIP/2.0
Via: SIP/2.0/TCP 192.168.0.10:5060;rport;branch=z9hG4bKPja1da7209-3d2c-4dae-b01f-b4d032e8f376;alias
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=eea05ab6-6b79-4447-9c73-4d08b45f3038
To: <sip:maxim@192.168.0.100;ob>
Contact: <sip:3d1a1b5b-f68f-40aa-bc5d-e1283bb5dbeb@192.168.0.10:5060;transport=TCP>
Call-ID: dbf8e134-ff75-461c-bcce-bfca1f2b03c1
CSeq: 29877 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length:   237

v=0
o=- 1481723849 1481723849 IN IP4 192.168.0.10
s=Asterisk
c=IN IP4 192.168.0.10
t=0 0
m=audio 19044 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

    -- Called PJSIP/maxim/sip:maxim@192.168.0.100:59640;transport=TCP;ob
<--- Transmitting SIP response (540 bytes) to TCP:192.168.0.104:52829 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/TCP 192.168.0.104:52829;rport;received=192.168.0.104;branch=z9hG4bKPjPWyk0T0LRITEVIz1WVIFgmzyscdt-Y7m;alias
Call-ID: ZazFd9mUbZYBt3grLCwE2UQQf85.ERU-
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=sud3ObxrvVlWU2wWquFAwo16ddGPo937
To: <sip:maxim@192.168.0.10>;tag=97911db3-b69f-4172-b77d-67ee12f54186
CSeq: 29956 INVITE
Contact: <sip:192.168.0.10:5060;transport=TCP>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Content-Length:  0


[Oct  5 09:57:50] ERROR[16330]: pjsip:0 <?>: 	tcpc0x7f65fc01 TCP connect() error: Connection refused [code=120111]
[Oct  5 09:57:50] WARNING[16330]: pjsip:0 <?>: 	tsx0x7f65e8037 Failed to send Request msg INVITE/cseq=29877 (tdta0x7f66000196a0)! err=120111 (Connection refused)
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Auto fallthrough, channel 'PJSIP/yuki-0000001b' status is 'CONGESTION'
<--- Transmitting SIP response (528 bytes) to TCP:192.168.0.104:52829 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/TCP 192.168.0.104:52829;rport;received=192.168.0.104;branch=z9hG4bKPjPWyk0T0LRITEVIz1WVIFgmzyscdt-Y7m;alias
Call-ID: ZazFd9mUbZYBt3grLCwE2UQQf85.ERU-
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=sud3ObxrvVlWU2wWquFAwo16ddGPo937
To: <sip:maxim@192.168.0.10>;tag=97911db3-b69f-4172-b77d-67ee12f54186
CSeq: 29956 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Reason: Q.850;cause=34
Content-Length:  0


<--- Received SIP request (388 bytes) from TCP:192.168.0.104:52829 --->
ACK sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.104:52829;rport;branch=z9hG4bKPjPWyk0T0LRITEVIz1WVIFgmzyscdt-Y7m;alias
Max-Forwards: 70
From: "Yuki Fukami" <sip:yuki@192.168.0.10>;tag=sud3ObxrvVlWU2wWquFAwo16ddGPo937
To: <sip:maxim@192.168.0.10>;tag=97911db3-b69f-4172-b77d-67ee12f54186
Call-ID: ZazFd9mUbZYBt3grLCwE2UQQf85.ERU-
CSeq: 29956 ACK
Content-Length:  0

For completeness, here’s a wireshark trace of the failed call (filtered to show only TCP and SIP traffic)

No.     Time           Source                Destination           Protocol Length Info
      3 0.683062000    192.168.0.104         192.168.0.10          SIP/SDP  1139   Request: INVITE sip:maxim@192.168.0.10 | 

Frame 3: 1139 bytes on wire (9112 bits), 1139 bytes captured (9112 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.104 (192.168.0.104), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 52829 (52829), Dst Port: sip (5060), Seq: 1, Ack: 1, Len: 1073
Session Initiation Protocol (INVITE)

No.     Time           Source                Destination           Protocol Length Info
      6 0.685036000    192.168.0.10          192.168.0.104         SIP      604    Status: 401 Unauthorized | 

Frame 6: 604 bytes on wire (4832 bits), 604 bytes captured (4832 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.104 (192.168.0.104)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 52829 (52829), Seq: 1, Ack: 1074, Len: 538
Session Initiation Protocol (401)

No.     Time           Source                Destination           Protocol Length Info
      7 0.688715000    192.168.0.104         192.168.0.10          TCP      66     52829 > sip [ACK] Seq=1074 Ack=539 Win=8158 Len=0 TSval=1094987636 TSecr=21202975

Frame 7: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.104 (192.168.0.104), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 52829 (52829), Dst Port: sip (5060), Seq: 1074, Ack: 539, Len: 0

No.     Time           Source                Destination           Protocol Length Info
      8 0.692113000    192.168.0.104         192.168.0.10          SIP      459    Request: ACK sip:maxim@192.168.0.10 | 

Frame 8: 459 bytes on wire (3672 bits), 459 bytes captured (3672 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.104 (192.168.0.104), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 52829 (52829), Dst Port: sip (5060), Seq: 1074, Ack: 539, Len: 393
Session Initiation Protocol (ACK)

No.     Time           Source                Destination           Protocol Length Info
     10 0.732037000    192.168.0.10          192.168.0.104         TCP      66     sip > 52829 [ACK] Seq=539 Ack=1467 Win=521 Len=0 TSval=21202987 TSecr=1094987639

Frame 10: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.104 (192.168.0.104)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 52829 (52829), Seq: 539, Ack: 1467, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     11 0.740377000    192.168.0.104         192.168.0.10          SIP/SDP  1432   Request: INVITE sip:maxim@192.168.0.10 | 

Frame 11: 1432 bytes on wire (11456 bits), 1432 bytes captured (11456 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.104 (192.168.0.104), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 52829 (52829), Dst Port: sip (5060), Seq: 1467, Ack: 539, Len: 1366
Session Initiation Protocol (INVITE)

No.     Time           Source                Destination           Protocol Length Info
     12 0.740463000    192.168.0.10          192.168.0.104         TCP      66     sip > 52829 [ACK] Seq=539 Ack=2833 Win=543 Len=0 TSval=21202989 TSecr=1094987682

Frame 12: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.104 (192.168.0.104)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 52829 (52829), Seq: 539, Ack: 2833, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     16 0.744141000    192.168.0.10          192.168.0.104         SIP      405    Status: 100 Trying | 

Frame 16: 405 bytes on wire (3240 bits), 405 bytes captured (3240 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.104 (192.168.0.104)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 52829 (52829), Seq: 539, Ack: 2833, Len: 339
Session Initiation Protocol (100)

No.     Time           Source                Destination           Protocol Length Info
     17 0.749089000    192.168.0.10          192.168.0.100         TCP      74     39939 > 59640 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=21202991 TSecr=0 WS=128

Frame 17: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_8f:95:6f (14:10:9f:8f:95:6f)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.100 (192.168.0.100)
Transmission Control Protocol, Src Port: 39939 (39939), Dst Port: 59640 (59640), Seq: 0, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     19 0.749918000    192.168.0.104         192.168.0.10          TCP      66     52829 > sip [ACK] Seq=2833 Ack=878 Win=8170 Len=0 TSval=1094987693 TSecr=21202990

Frame 19: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.104 (192.168.0.104), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 52829 (52829), Dst Port: sip (5060), Seq: 2833, Ack: 878, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     20 0.749970000    192.168.0.10          192.168.0.104         SIP      606    Status: 180 Ringing | 

Frame 20: 606 bytes on wire (4848 bits), 606 bytes captured (4848 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.104 (192.168.0.104)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 52829 (52829), Seq: 878, Ack: 2833, Len: 540
Session Initiation Protocol (180)

No.     Time           Source                Destination           Protocol Length Info
     22 0.755559000    192.168.0.104         192.168.0.10          TCP      66     52829 > sip [ACK] Seq=2833 Ack=1418 Win=8158 Len=0 TSval=1094987698 TSecr=21202991

Frame 22: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.104 (192.168.0.104), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 52829 (52829), Dst Port: sip (5060), Seq: 2833, Ack: 1418, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     23 0.887191000    192.168.0.100         192.168.0.10          TCP      54     59640 > 39939 [RST, ACK] Seq=1 Ack=1 Win=0 Len=0

Frame 23: 54 bytes on wire (432 bits), 54 bytes captured (432 bits) on interface 0
Ethernet II, Src: Apple_8f:95:6f (14:10:9f:8f:95:6f), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.100 (192.168.0.100), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 59640 (59640), Dst Port: 39939 (39939), Seq: 1, Ack: 1, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     25 0.889127000    192.168.0.10          192.168.0.104         SIP      594    Status: 503 Service Unavailable | 

Frame 25: 594 bytes on wire (4752 bits), 594 bytes captured (4752 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.104 (192.168.0.104)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 52829 (52829), Seq: 1418, Ack: 2833, Len: 528
Session Initiation Protocol (503)

No.     Time           Source                Destination           Protocol Length Info
     26 0.993341000    192.168.0.104         192.168.0.10          TCP      66     52829 > sip [ACK] Seq=2833 Ack=1946 Win=8159 Len=0 TSval=1094987936 TSecr=21203026

Frame 26: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.104 (192.168.0.104), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 52829 (52829), Dst Port: sip (5060), Seq: 2833, Ack: 1946, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     27 0.994171000    192.168.0.104         192.168.0.10          SIP      454    Request: ACK sip:maxim@192.168.0.10 | 

Frame 27: 454 bytes on wire (3632 bits), 454 bytes captured (3632 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.104 (192.168.0.104), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 52829 (52829), Dst Port: sip (5060), Seq: 2833, Ack: 1946, Len: 388
Session Initiation Protocol (ACK)

No.     Time           Source                Destination           Protocol Length Info
     29 1.031970000    192.168.0.10          192.168.0.104         TCP      66     sip > 52829 [ACK] Seq=1946 Ack=3221 Win=565 Len=0 TSval=21203062 TSecr=1094987936

Frame 29: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.104 (192.168.0.104)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 52829 (52829), Seq: 1946, Ack: 3221, Len: 0

Notice that I’m now using the latest Asterisk version (compiled from trunk, v13) and pjproject (compiled from trunk, v2.3). Thank you!

I think the phone is constructing the Contact header wrongly. It is using the source port number for the TCP connection, but it should be using 5061, because it is only prepared to listen to that.

Alternatively, the phone is sending a valid Contact header, but a firewall is blocking access to the port that was requested.

[quote=“david55”]I think the phone is constructing the Contact header wrongly. It is using the source port number for the TCP connection, but it should be using 5061, because it is only prepared to listen to that.

Alternatively, the phone is sending a valid Contact header, but a firewall is blocking access to the port that was requested.[/quote]

Hi, David. I guess you mean 5060 rather than 5061 ? If I’m not mistaken, 5061 is the default port Asterisk would be listening for TLS connections.

The contact header seems ok to me, but I’m no expert. As for the firewall issues, from my research there is no firewall on iOS, and I’ve tested with Windows firewall disabled and set Ubuntu’s firewall off as well with no improvement.

just a long shot, but after reading the 1st post, and mainly the SIP request’s header, i’ve found this:

have you tried to change

to

?

[quote=“scharrua”]just a long shot, but after reading the 1st post, and mainly the SIP request’s header, i’ve found this:

have you tried to change

to

?[/quote]

This uppercase/lowercase TCP is set by the sip clients, so not easily modified. The transport is set to lowercase “tcp” in the pjsip.conf file.

Asterisk is interpreting it as TCP. The problem is that Asterisk is setting up the TCP connection as required by the Contact header, but the phone, or something in between, is not honouring that. It is rejecting based only on the source and destination ports and the source IP address. The destination port is correct, according to the Contact header, and the source port should not matter for TCP.

I did mean 5060/TCP.

[quote=“david55”]The problem is that Asterisk is setting up the TCP connection as required by the Contact header, but the phone, or something in between, is not honouring that. It is rejecting based only on the source and destination ports and the source IP address.
[/quote]

The really strange thing is that it happens on all 3 (soft)phones I’ve tried: Bria, Jitsi and Blink. It would be really strange that their 3 implementations of TCP should be broken. As to something in between… Well, there is not much, given I was testing on my home wifi without any NAT traversal required. Firewalls were deactivated. And if this is not convincing enough, these 3 phones do work with TCP when I swap chan_pjsip for the old chan_sip!

Both LInux and Windows have some level of default firewall.

Does chan_sip honour the Contact header? Does it, for example, re-use an incoming TCP connection.

The big problem you have here is that the request is being rejected purely based on TCP and IP level addressing information, so it is easy to check that it is valid and it appears to be so.

The Windows firewall was disabled via the GUI, and the Linux one (Ubuntu) was disabled running the sudo ufw disable command. I also made sure to clear iptables, just in case. The other devices are running iOS, which, if I’m not mistaken, don’t have a firewall.

Anyway, if it’s working in the same environment just by using chan_sip instead of pjsip, the issue is probably elsewhere, agreed?

As for your question regarding if TCP connections are reused when using chan_sip, as far as I can tell, yes! You can see the 192.168.0.101 device registering and calling a UA at the same IP as Asterisk in the following trace, using chan_sip:

No.     Time           Source                Destination           Protocol Length Info
      1 0.000000000    192.168.0.101         192.168.0.10          SIP      724    Request: REGISTER sip:192.168.0.10 | 

Frame 1: 724 bytes on wire (5792 bits), 724 bytes captured (5792 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 58822 (58822), Dst Port: sip (5060), Seq: 1, Ack: 1, Len: 658
Session Initiation Protocol (REGISTER)

No.     Time           Source                Destination           Protocol Length Info
      2 0.000630000    192.168.0.10          192.168.0.101         SIP      663    Status: 401 Unauthorized    (0 bindings) | 

Frame 2: 663 bytes on wire (5304 bits), 663 bytes captured (5304 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 58822 (58822), Seq: 1, Ack: 659, Len: 597
Session Initiation Protocol (401)

No.     Time           Source                Destination           Protocol Length Info
      3 0.005161000    192.168.0.101         192.168.0.10          TCP      66     58822 > sip [ACK] Seq=659 Ack=598 Win=8154 Len=0 TSval=1339431188 TSecr=190098

Frame 3: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 58822 (58822), Dst Port: sip (5060), Seq: 659, Ack: 598, Len: 0

No.     Time           Source                Destination           Protocol Length Info
      4 0.005208000    192.168.0.101         192.168.0.10          SIP      890    Request: REGISTER sip:192.168.0.10 | 

Frame 4: 890 bytes on wire (7120 bits), 890 bytes captured (7120 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 58822 (58822), Dst Port: sip (5060), Seq: 659, Ack: 598, Len: 824
Session Initiation Protocol (REGISTER)

No.     Time           Source                Destination           Protocol Length Info
      5 0.006008000    192.168.0.10          192.168.0.101         SIP      705    Status: 200 OK    (1 bindings) | 

Frame 5: 705 bytes on wire (5640 bits), 705 bytes captured (5640 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 58822 (58822), Seq: 598, Ack: 1483, Len: 639
Session Initiation Protocol (200)

No.     Time           Source                Destination           Protocol Length Info
      6 0.016472000    192.168.0.101         192.168.0.10          TCP      66     58822 > sip [ACK] Seq=1483 Ack=1237 Win=8152 Len=0 TSval=1339431198 TSecr=190100

Frame 6: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 58822 (58822), Dst Port: sip (5060), Seq: 1483, Ack: 1237, Len: 0

No.     Time           Source                Destination           Protocol Length Info
      7 4.023806000    192.168.0.101         192.168.0.10          SIP/SDP  1125   Request: INVITE sip:maxim@192.168.0.10 | 

Frame 7: 1125 bytes on wire (9000 bits), 1125 bytes captured (9000 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 58822 (58822), Dst Port: sip (5060), Seq: 1483, Ack: 1237, Len: 1059
Session Initiation Protocol (INVITE)

No.     Time           Source                Destination           Protocol Length Info
      8 4.024477000    192.168.0.10          192.168.0.101         SIP      656    Status: 401 Unauthorized | 

Frame 8: 656 bytes on wire (5248 bits), 656 bytes captured (5248 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 58822 (58822), Seq: 1237, Ack: 2542, Len: 590
Session Initiation Protocol (401)

No.     Time           Source                Destination           Protocol Length Info
      9 4.029470000    192.168.0.101         192.168.0.10          TCP      66     58822 > sip [ACK] Seq=2542 Ack=1827 Win=8155 Len=0 TSval=1339435210 TSecr=191104

Frame 9: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 58822 (58822), Dst Port: sip (5060), Seq: 2542, Ack: 1827, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     10 4.044754000    192.168.0.101         192.168.0.10          SIP      421    Request: ACK sip:maxim@192.168.0.10 | 

Frame 10: 421 bytes on wire (3368 bits), 421 bytes captured (3368 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 58822 (58822), Dst Port: sip (5060), Seq: 2542, Ack: 1827, Len: 355
Session Initiation Protocol (ACK)

No.     Time           Source                Destination           Protocol Length Info
     11 4.081118000    192.168.0.10          192.168.0.101         TCP      66     sip > 58822 [ACK] Seq=1827 Ack=2897 Win=596 Len=0 TSval=191119 TSecr=1339435220

Frame 11: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 58822 (58822), Seq: 1827, Ack: 2897, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     12 4.086645000    192.168.0.101         192.168.0.10          SIP/SDP  1297   Request: INVITE sip:maxim@192.168.0.10 | 

Frame 12: 1297 bytes on wire (10376 bits), 1297 bytes captured (10376 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 58822 (58822), Dst Port: sip (5060), Seq: 2897, Ack: 1827, Len: 1231
Session Initiation Protocol (INVITE)

No.     Time           Source                Destination           Protocol Length Info
     13 4.086699000    192.168.0.10          192.168.0.101         TCP      66     sip > 58822 [ACK] Seq=1827 Ack=4128 Win=616 Len=0 TSval=191120 TSecr=1339435262

Frame 13: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 58822 (58822), Seq: 1827, Ack: 4128, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     14 4.087993000    192.168.0.10          192.168.0.101         SIP      613    Status: 100 Trying | 

Frame 14: 613 bytes on wire (4904 bits), 613 bytes captured (4904 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 58822 (58822), Seq: 1827, Ack: 4128, Len: 547
Session Initiation Protocol (100)

No.     Time           Source                Destination           Protocol Length Info
     15 4.093002000    192.168.0.101         192.168.0.10          TCP      66     58822 > sip [ACK] Seq=4128 Ack=2374 Win=8157 Len=0 TSval=1339435268 TSecr=191120

Frame 15: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 58822 (58822), Dst Port: sip (5060), Seq: 4128, Ack: 2374, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     16 4.112077000    192.168.0.10          192.168.0.101         SIP      629    Status: 180 Ringing | 

Frame 16: 629 bytes on wire (5032 bits), 629 bytes captured (5032 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 58822 (58822), Seq: 2374, Ack: 4128, Len: 563
Session Initiation Protocol (180)

No.     Time           Source                Destination           Protocol Length Info
     17 4.118805000    192.168.0.101         192.168.0.10          TCP      66     58822 > sip [ACK] Seq=4128 Ack=2937 Win=8156 Len=0 TSval=1339435291 TSecr=191126

Frame 17: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 58822 (58822), Dst Port: sip (5060), Seq: 4128, Ack: 2937, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     18 4.543888000    192.168.0.101         224.0.0.251           MDNS     91     Standard query 0x0000  PTR _airplay._tcp.local, "QU" question PTR _raop._tcp.local, "QU" question

Frame 18: 91 bytes on wire (728 bits), 91 bytes captured (728 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: IPv4mcast_00:00:fb (01:00:5e:00:00:fb)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 224.0.0.251 (224.0.0.251)
User Datagram Protocol, Src Port: mdns (5353), Dst Port: mdns (5353)
Domain Name System (query)

No.     Time           Source                Destination           Protocol Length Info
     19 4.543969000    fe80::1088:ed89:22fe:2e3a ff02::fb              MDNS     111    Standard query 0x0000  PTR _airplay._tcp.local, "QU" question PTR _raop._tcp.local, "QU" question

Frame 19: 111 bytes on wire (888 bits), 111 bytes captured (888 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: IPv6mcast_00:00:00:fb (33:33:00:00:00:fb)
Internet Protocol Version 6, Src: fe80::1088:ed89:22fe:2e3a (fe80::1088:ed89:22fe:2e3a), Dst: ff02::fb (ff02::fb)
User Datagram Protocol, Src Port: mdns (5353), Dst Port: mdns (5353)
Domain Name System (query)

No.     Time           Source                Destination           Protocol Length Info
     20 5.584815000    192.168.0.101         224.0.0.251           MDNS     91     Standard query 0x0000  PTR _airplay._tcp.local, "QM" question PTR _raop._tcp.local, "QM" question

Frame 20: 91 bytes on wire (728 bits), 91 bytes captured (728 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: IPv4mcast_00:00:fb (01:00:5e:00:00:fb)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 224.0.0.251 (224.0.0.251)
User Datagram Protocol, Src Port: mdns (5353), Dst Port: mdns (5353)
Domain Name System (query)

No.     Time           Source                Destination           Protocol Length Info
     21 5.584883000    fe80::1088:ed89:22fe:2e3a ff02::fb              MDNS     111    Standard query 0x0000  PTR _airplay._tcp.local, "QM" question PTR _raop._tcp.local, "QM" question

Frame 21: 111 bytes on wire (888 bits), 111 bytes captured (888 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: IPv6mcast_00:00:00:fb (33:33:00:00:00:fb)
Internet Protocol Version 6, Src: fe80::1088:ed89:22fe:2e3a (fe80::1088:ed89:22fe:2e3a), Dst: ff02::fb (ff02::fb)
User Datagram Protocol, Src Port: mdns (5353), Dst Port: mdns (5353)
Domain Name System (query)

No.     Time           Source                Destination           Protocol Length Info
     22 6.458735000    192.168.0.10          192.168.0.101         SIP/SDP  926    Status: 200 OK | 

Frame 22: 926 bytes on wire (7408 bits), 926 bytes captured (7408 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 58822 (58822), Seq: 2937, Ack: 4128, Len: 860
Session Initiation Protocol (200)

No.     Time           Source                Destination           Protocol Length Info
     23 6.519345000    192.168.0.101         192.168.0.10          TCP      66     58822 > sip [ACK] Seq=4128 Ack=3797 Win=8138 Len=0 TSval=1339437689 TSecr=191713

Frame 23: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 58822 (58822), Dst Port: sip (5060), Seq: 4128, Ack: 3797, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     24 6.521375000    192.168.0.101         192.168.0.10          RTCP     106    Receiver Report   Source description   

Frame 24: 106 bytes on wire (848 bits), 106 bytes captured (848 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: newoak (4001), Dst Port: 17229 (17229)
Real-time Transport Control Protocol (Receiver Report)
Real-time Transport Control Protocol (Source description)
[RTCP frame length check: OK - 64 bytes]

No.     Time           Source                Destination           Protocol Length Info
     25 6.522905000    192.168.0.101         192.168.0.10          RTP      54     PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24020, Time=296027755

Frame 25: 54 bytes on wire (432 bits), 54 bytes captured (432 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     26 6.522939000    192.168.0.101         192.168.0.10          RTCP     106    Receiver Report   Source description   

Frame 26: 106 bytes on wire (848 bits), 106 bytes captured (848 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: newoak (4001), Dst Port: 17229 (17229)
Real-time Transport Control Protocol (Receiver Report)
Real-time Transport Control Protocol (Source description)
[RTCP frame length check: OK - 64 bytes]

No.     Time           Source                Destination           Protocol Length Info
     27 6.522950000    192.168.0.101         192.168.0.10          RTCP     106    Receiver Report   Source description   

Frame 27: 106 bytes on wire (848 bits), 106 bytes captured (848 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: newoak (4001), Dst Port: 17229 (17229)
Real-time Transport Control Protocol (Receiver Report)
Real-time Transport Control Protocol (Source description)
[RTCP frame length check: OK - 64 bytes]

No.     Time           Source                Destination           Protocol Length Info
     28 6.522963000    192.168.0.101         192.168.0.10          SIP      631    Request: ACK sip:maxim@192.168.0.10:5060;transport=TCP | 

Frame 28: 631 bytes on wire (5048 bits), 631 bytes captured (5048 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
Transmission Control Protocol, Src Port: 58822 (58822), Dst Port: sip (5060), Seq: 4128, Ack: 3797, Len: 565
Session Initiation Protocol (ACK)

No.     Time           Source                Destination           Protocol Length Info
     29 6.524881000    192.168.0.101         192.168.0.10          RTP      54     PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24021, Time=296027755

Frame 29: 54 bytes on wire (432 bits), 54 bytes captured (432 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     30 6.524914000    192.168.0.101         192.168.0.10          RTCP     106    Receiver Report   Source description   

Frame 30: 106 bytes on wire (848 bits), 106 bytes captured (848 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: newoak (4001), Dst Port: 17229 (17229)
Real-time Transport Control Protocol (Receiver Report)
Real-time Transport Control Protocol (Source description)
[RTCP frame length check: OK - 64 bytes]

No.     Time           Source                Destination           Protocol Length Info
     31 6.526551000    192.168.0.101         192.168.0.10          RTP      134    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24022, Time=296027915, Mark

Frame 31: 134 bytes on wire (1072 bits), 134 bytes captured (1072 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     32 6.536909000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24023, Time=296028075

Frame 32: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     33 6.559964000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24024, Time=296028235

Frame 33: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     34 6.561089000    192.168.0.10          192.168.0.101         TCP      66     sip > 58822 [ACK] Seq=3797 Ack=4693 Win=635 Len=0 TSval=191739 TSecr=1339437692

Frame 34: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 58822 (58822), Seq: 3797, Ack: 4693, Len: 0

No.     Time           Source                Destination           Protocol Length Info
     35 6.584044000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24025, Time=296028395

Frame 35: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     36 6.595535000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24026, Time=296028555

Frame 36: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     37 6.621474000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24027, Time=296028715

Frame 37: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     38 6.642408000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24028, Time=296028875

Frame 38: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     39 6.666681000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24029, Time=296029035

Frame 39: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     40 6.677660000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24030, Time=296029195

Frame 40: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     41 6.694133000    fe80::1088:ed89:22fe:2e3a ff02::fb              MDNS     111    Standard query 0x0000  PTR _airplay._tcp.local, "QU" question PTR _raop._tcp.local, "QU" question

Frame 41: 111 bytes on wire (888 bits), 111 bytes captured (888 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: IPv6mcast_00:00:00:fb (33:33:00:00:00:fb)
Internet Protocol Version 6, Src: fe80::1088:ed89:22fe:2e3a (fe80::1088:ed89:22fe:2e3a), Dst: ff02::fb (ff02::fb)
User Datagram Protocol, Src Port: mdns (5353), Dst Port: mdns (5353)
Domain Name System (query)

No.     Time           Source                Destination           Protocol Length Info
     42 6.700824000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24031, Time=296029355

Frame 42: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     43 6.723463000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24032, Time=296029515

Frame 43: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     44 6.747943000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24033, Time=296029675

Frame 44: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     45 6.763593000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24034, Time=296029835

Frame 45: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     46 6.782225000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24035, Time=296029995

Frame 46: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     47 6.805468000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24036, Time=296030155

Frame 47: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     48 6.816861000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24037, Time=296030315

Frame 48: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     49 6.840573000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24038, Time=296030475

Frame 49: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     50 6.864300000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24039, Time=296030635

Frame 50: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     51 6.886169000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24040, Time=296030795

Frame 51: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     52 6.900377000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24041, Time=296030955

Frame 52: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     53 6.921858000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24042, Time=296031115

Frame 53: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     54 6.944131000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24043, Time=296031275

Frame 54: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     55 6.956672000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24044, Time=296031435

Frame 55: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     56 6.978997000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24045, Time=296031595

Frame 56: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     57 7.002317000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24046, Time=296031755

Frame 57: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     58 7.024921000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24047, Time=296031915

Frame 58: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     59 7.036749000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24048, Time=296032075

Frame 59: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     60 7.062446000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24049, Time=296032235

Frame 60: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     61 7.083961000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24050, Time=296032395

Frame 61: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     62 7.106778000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24051, Time=296032555

Frame 62: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     63 7.118060000    192.168.0.10          192.168.0.101         RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x5C512CBE, Seq=46251, Time=160, Mark

Frame 63: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
User Datagram Protocol, Src Port: 17228 (17228), Dst Port: terabase (4000)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     64 7.118232000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24052, Time=296032715

Frame 64: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     65 7.137319000    192.168.0.10          192.168.0.101         RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x5C512CBE, Seq=46252, Time=320

Frame 65: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
User Datagram Protocol, Src Port: 17228 (17228), Dst Port: terabase (4000)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     66 7.143115000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24053, Time=296032875

Frame 66: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     67 7.157183000    192.168.0.10          192.168.0.101         RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x5C512CBE, Seq=46253, Time=480

Frame 67: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
User Datagram Protocol, Src Port: 17228 (17228), Dst Port: terabase (4000)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     68 7.167049000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24054, Time=296033035

Frame 68: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     69 7.177158000    192.168.0.10          192.168.0.101         RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x5C512CBE, Seq=46254, Time=640

Frame 69: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
User Datagram Protocol, Src Port: 17228 (17228), Dst Port: terabase (4000)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     70 7.181187000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24055, Time=296033195

Frame 70: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     71 7.197449000    192.168.0.10          192.168.0.101         RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x5C512CBE, Seq=46255, Time=800

Frame 71: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
User Datagram Protocol, Src Port: 17228 (17228), Dst Port: terabase (4000)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     72 7.199988000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24056, Time=296033355

Frame 72: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     73 7.217801000    192.168.0.10          192.168.0.101         RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x5C512CBE, Seq=46256, Time=960

Frame 73: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
User Datagram Protocol, Src Port: 17228 (17228), Dst Port: terabase (4000)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     74 7.223095000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24057, Time=296033515

Frame 74: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     75 7.238125000    192.168.0.10          192.168.0.101         RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x5C512CBE, Seq=46257, Time=1120

Frame 75: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
User Datagram Protocol, Src Port: 17228 (17228), Dst Port: terabase (4000)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     76 7.246970000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24058, Time=296033675

Frame 76: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     77 7.257758000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24059, Time=296033835

Frame 77: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     78 7.258657000    192.168.0.10          192.168.0.101         RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x5C512CBE, Seq=46258, Time=1280

Frame 78: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
User Datagram Protocol, Src Port: 17228 (17228), Dst Port: terabase (4000)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     79 7.278767000    192.168.0.10          192.168.0.101         RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x5C512CBE, Seq=46259, Time=1440

Frame 79: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f), Dst: Apple_74:b6:f6 (9c:20:7b:74:b6:f6)
Internet Protocol Version 4, Src: 192.168.0.10 (192.168.0.10), Dst: 192.168.0.101 (192.168.0.101)
User Datagram Protocol, Src Port: 17228 (17228), Dst Port: terabase (4000)
Real-Time Transport Protocol

No.     Time           Source                Destination           Protocol Length Info
     80 7.281189000    192.168.0.101         192.168.0.10          RTP      214    PT=ITU-T G.711 PCMU, SSRC=0x7AB2BAC4, Seq=24060, Time=296033995

Frame 80: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) on interface 0
Ethernet II, Src: Apple_74:b6:f6 (9c:20:7b:74:b6:f6), Dst: HonHaiPr_5d:2f:2f (c0:f8:da:5d:2f:2f)
Internet Protocol Version 4, Src: 192.168.0.101 (192.168.0.101), Dst: 192.168.0.10 (192.168.0.10)
User Datagram Protocol, Src Port: terabase (4000), Dst Port: 17228 (17228)
Real-Time Transport Protocol

By the way, thanks a lot for trying to help with this :smile:

Hello,

Has anyone been able to solve this issue? I am using Asterisk 13.1.0 and I am also not able to configure TCP on PJSIP. Client is Zoiper, I have tried both on Android and Mac.

With UDP everything is fine. With TCP, incoming calls do not get through with the same problems described above.

With one client using UDP and the other TCP it is only possible to establish the call TCP - > UPD. TCP does not get incoming calls.

Thanks,

Rodrigo

After struggling quite much with PJSIP and TCP (TLS), I managed to find the answer for the issue.
The problem was, that calls initiated from a SIP client (using TLS/TCP) were fine, but incoming calls have never arrived to the same client (“TLS connect() error: Connection timed out”).
The reason, why calls didn’t arrive to the client, is that Asterisk PJSIP stack tried to open a new TCP connection to the SIP client, instead of reusing the current active TCP connection (which was initiated by the SIP client when it registered to Asterisk).
Why PJSIP wanted to make a new TCP connection, which of course failed (same port as outbound + NAT).
The answer is in the endpoint configuration. [size=150]DO NOT[/size] specify the “transport=” in the client endpoint configuration, and outbound calls (from Asterisk server’s perspective) will work!
SIP client will be able to register using whatever transport is enabled in PJSIP configuration, you shouldn’t specify the transport type for the endpoints!
I hope I could help.

Attila