[POSSIBLE BUG] Can't perform video calls with video from only one side

Hello,
I’m working on a project which needs to establish video calls between two SIP agents.
When both agents have a camera everything is working fine. However, when only one of the agent has a camera, the call fails, and while checking the SDP headers I have found what seems to be a bug in Asterisk’s SDP handling.

To explain and show the problem, I will only focus in one of the two use cases: the caller doesn’t have a camera but it wants to perform a video call so that there is bi-directional voice and it receives video from the callee.
In this case, the procedure should be the following one:

  1. The caller will initiate the call, and its SIP Invite message will have a SDP offer which will include: the audio information with an a=sendrecv line, and the video information with an a=recvonly line.
  2. Asterisk will answer the caller with a Trying SIP message.
  3. Asterisk will send and Invite to the callee. That invite should include the SDP body specifying that the caller wants bidirecctional audio and to receive video (the two a lines previously commented).
  4. The callee will then answer Asterisk with an OK SIP message including its SDP information which should contain the audio information with an a=sendrecv line, and the video information with an a=sendonly line.
  5. After some more steps the call should be initiated and should work propperly.

However, this is not what is happening. If you take a look at the logs at the end of this post, where this exact use case is performed, you can see that the step 3 is failing. Somewhere on the Asterisk SDP management, the a=recvonly line is changed to a=sendonly, and that wrong SDP body is what is sent to the callee, instead of the right one.

I have spend a long part of my day trying to solve this issue, but I coulnd’t find anything. It really seems it’s some king of bug, but could this be related to some king of Asterisk configuration?
Has somebody found this problem before?
Thanks a lot!

<--- Received SIP request (7187 bytes) from WS:192.168.0.12:32946 --->
INVITE sip:axis_local@192.168.0.32 SIP/2.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKoeT48ldktGF0R6HUbioXqsWM1MPXC6Qs;rport
From: <sip:Use2@192.168.0.32>;tag=sHKhOyExhnCwe6Ix6gmb
To: <sip:axis_local@192.168.0.32>
Contact: <sip:Use2@df7jal23ls0d.invalid;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: fc455de6-91c4-2fa2-8ed9-4d578dac5c18
CSeq: 44461 INVITE
Content-Type: application/sdp
Content-Length: 6331
Max-Forwards: 70
Authorization: Digest username="Use2",realm="asterisk",nonce="1659707266/9cb0e86748350faaac64d48ce50d99b6",uri="sip:axis_local@192.168.0.32",response="d51ab14a4f6a959065fd61375d76c91e",algorithm=md5,cnonce="7011a4ae95b44996e310ae5e762c9260",opaque="0499948d0ed13152",qop=auth,nc=00000001
User-Agent: IM-client/OMA1.0 sipML5-v1.2016.03.04
Organization: Doubango Telecom

v=0
o=mozilla...THIS_IS_SDPARTA-99.0 6407858980220068000 0 IN IP4 127.0.0.1
s=Doubango Telecom - firefox
t=0 0
a=sendrecv
a=fingerprint:sha-256 11:36:38:5B:A0:EE:08:84:61:27:EE:C2:0D:27:7F:47:A9:1C:75:46:D9:EF:04:2E:4E:D0:CB:C3:4F:D8:99:DA
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 33108 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 192.168.56.1
a=candidate:0 1 UDP 2122187007 192.168.0.12 48944 typ host
a=candidate:1 1 UDP 2122121471 192.168.122.1 45343 typ host
a=candidate:2 1 UDP 2122055935 172.20.0.1 53787 typ host
a=candidate:3 1 UDP 2121990399 172.18.0.1 56135 typ host
a=candidate:4 1 UDP 2121924863 172.19.0.1 60623 typ host
a=candidate:5 1 UDP 2121859327 172.17.0.1 36279 typ host
a=candidate:6 1 UDP 2122252543 192.168.56.1 33108 typ host
a=candidate:7 1 TCP 2105458943 192.168.0.12 9 typ host tcptype active
a=candidate:8 1 TCP 2105393407 192.168.122.1 9 typ host tcptype active
a=candidate:9 1 TCP 2105327871 172.20.0.1 9 typ host tcptype active
a=candidate:10 1 TCP 2105262335 172.18.0.1 9 typ host tcptype active
a=candidate:11 1 TCP 2105196799 172.19.0.1 9 typ host tcptype active
a=candidate:12 1 TCP 2105131263 172.17.0.1 9 typ host tcptype active
a=candidate:13 1 TCP 2105524479 192.168.56.1 9 typ host tcptype active
a=candidate:0 2 UDP 2122187006 192.168.0.12 43364 typ host
a=candidate:1 2 UDP 2122121470 192.168.122.1 44602 typ host
a=candidate:2 2 UDP 2122055934 172.20.0.1 57719 typ host
a=candidate:3 2 UDP 2121990398 172.18.0.1 52649 typ host
a=candidate:4 2 UDP 2121924862 172.19.0.1 48347 typ host
a=candidate:5 2 UDP 2121859326 172.17.0.1 52844 typ host
a=candidate:6 2 UDP 2122252542 192.168.56.1 47045 typ host
a=candidate:7 2 TCP 2105458942 192.168.0.12 9 typ host tcptype active
a=candidate:8 2 TCP 2105393406 192.168.122.1 9 typ host tcptype active
a=candidate:9 2 TCP 2105327870 172.20.0.1 9 typ host tcptype active
a=candidate:10 2 TCP 2105262334 172.18.0.1 9 typ host tcptype active
a=candidate:11 2 TCP 2105196798 172.19.0.1 9 typ host tcptype active
a=candidate:12 2 TCP 2105131262 172.17.0.1 9 typ host tcptype active
a=candidate:13 2 TCP 2105524478 192.168.56.1 9 typ host tcptype active
a=sendrecv
a=end-of-candidates
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2/recvonly urn:ietf:params:rtp-hdrext:csrc-audio-level
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1
a=fmtp:101 0-15
a=ice-pwd:38902ac7ed5d4749bd4325ee31a4d83f
a=ice-ufrag:0730dec2
a=mid:0
a=msid:{0f35c7fc-e1aa-4165-bc49-46ba40351e19} {7077e186-222c-4b3b-89f1-4ccc6618ca71}
a=rtcp:47045 IN IP4 192.168.56.1
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=rtpmap:9 G722/8000/1
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=setup:actpass
a=ssrc:2650840728 cname:{6301cf2b-c2e1-44d6-8500-477fbb1fecf4}
m=video 40632 UDP/TLS/RTP/SAVPF 120 124 121 125 126 127 97 98
c=IN IP4 192.168.56.1
a=candidate:0 1 UDP 2122187007 192.168.0.12 34996 typ host
a=candidate:1 1 UDP 2122121471 192.168.122.1 46642 typ host
a=candidate:2 1 UDP 2122055935 172.20.0.1 56475 typ host
a=candidate:3 1 UDP 2121990399 172.18.0.1 53952 typ host
a=candidate:4 1 UDP 2121924863 172.19.0.1 50925 typ host
a=candidate:5 1 UDP 2121859327 172.17.0.1 46263 typ host
a=candidate:6 1 UDP 2122252543 192.168.56.1 40632 typ host
a=candidate:7 1 TCP 2105458943 192.168.0.12 9 typ host tcptype active
a=candidate:8 1 TCP 2105393407 192.168.122.1 9 typ host tcptype active
a=candidate:9 1 TCP 2105327871 172.20.0.1 9 typ host tcptype active
a=candidate:10 1 TCP 2105262335 172.18.0.1 9 typ host tcptype active
a=candidate:11 1 TCP 2105196799 172.19.0.1 9 typ host tcptype active
a=candidate:12 1 TCP 2105131263 172.17.0.1 9 typ host tcptype active
a=candidate:13 1 TCP 2105524479 192.168.56.1 9 typ host tcptype active
a=candidate:0 2 UDP 2122187006 192.168.0.12 54217 typ host
a=candidate:1 2 UDP 2122121470 192.168.122.1 56911 typ host
a=candidate:2 2 UDP 2122055934 172.20.0.1 60058 typ host
a=candidate:3 2 UDP 2121990398 172.18.0.1 51025 typ host
a=candidate:4 2 UDP 2121924862 172.19.0.1 39660 typ host
a=candidate:5 2 UDP 2121859326 172.17.0.1 59333 typ host
a=candidate:6 2 UDP 2122252542 192.168.56.1 56774 typ host
a=candidate:7 2 TCP 2105458942 192.168.0.12 9 typ host tcptype active
a=candidate:8 2 TCP 2105393406 192.168.122.1 9 typ host tcptype active
a=candidate:9 2 TCP 2105327870 172.20.0.1 9 typ host tcptype active
a=candidate:10 2 TCP 2105262334 172.18.0.1 9 typ host tcptype active
a=candidate:11 2 TCP 2105196798 172.19.0.1 9 typ host tcptype active
a=candidate:12 2 TCP 2105131262 172.17.0.1 9 typ host tcptype active
a=candidate:13 2 TCP 2105524478 192.168.56.1 9 typ host tcptype active
a=recvonly
a=end-of-candidates
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 urn:ietf:params:rtp-hdrext:toffset
a=extmap:6/recvonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
a=fmtp:120 max-fs=12288;max-fr=60
a=fmtp:124 apt=120
a=fmtp:121 max-fs=12288;max-fr=60
a=fmtp:125 apt=121
a=fmtp:127 apt=126
a=fmtp:98 apt=97
a=ice-pwd:38902ac7ed5d4749bd4325ee31a4d83f
a=ice-ufrag:0730dec2
a=mid:1
a=rtcp:56774 IN IP4 192.168.56.1
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 transport-cc
a=rtcp-fb:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=rtcp-fb:121 goog-remb
a=rtcp-fb:121 transport-cc
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 ccm fir
a=rtcp-fb:126 goog-remb
a=rtcp-fb:126 transport-cc
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 goog-remb
a=rtcp-fb:97 transport-cc
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:120 VP8/90000
a=rtpmap:124 rtx/90000
a=rtpmap:121 VP9/90000
a=rtpmap:125 rtx/90000
a=rtpmap:126 H264/90000
a=rtpmap:127 rtx/90000
a=rtpmap:97 H264/90000
a=rtpmap:98 rtx/90000
a=setup:actpass
a=ssrc:1164111410 cname:{6301cf2b-c2e1-44d6-8500-477fbb1fecf4}

<--- Transmitting SIP response (349 bytes) to WS:192.168.0.12:32946 --->
SIP/2.0 100 Trying
Via: SIP/2.0/WS df7jal23ls0d.invalid;rport=32946;received=192.168.0.12;branch=z9hG4bKoeT48ldktGF0R6HUbioXqsWM1MPXC6Qs
Call-ID: fc455de6-91c4-2fa2-8ed9-4d578dac5c18
From: <sip:Use2@192.168.0.32>;tag=sHKhOyExhnCwe6Ix6gmb
To: <sip:axis_local@192.168.0.32>
CSeq: 44461 INVITE
Server: FPBX-16.0.19(19.3.0)
Content-Length:  0


  == DTLS ECDH initialized (automatic), faster PFS enabled
    -- Executing [axis_local@default:1] Dial("PJSIP/Use2-00000000", "PJSIP/axis_local,20") in new stack
    -- Called PJSIP/axis_local
<--- Transmitting SIP request (1974 bytes) to UDP:192.168.0.26:5060 --->
INVITE sip:axis_local@192.168.0.26:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.32:5060;rport;branch=z9hG4bKPj79157466-4adc-40cd-85ce-2beeff1b2876
From: <sip:Use2@192.168.0.32>;tag=0648a5e5-1abf-416c-b4b1-ea82542061a1
To: <sip:axis_local@192.168.0.26;ob>
Contact: <sip:asterisk@192.168.0.32:5060>
Call-ID: f4a3a6ed-6915-48df-81a0-190af93ab63e
CSeq: 31985 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: FPBX-16.0.19(19.3.0)
Content-Type: application/sdp
Content-Length:  1295

v=0
o=- 183399448 183399448 IN IP4 192.168.0.32
s=Asterisk
c=IN IP4 192.168.0.32
t=0 0
m=audio 19204 RTP/AVP 0 8 107 101
a=ice-ufrag:2b26f68b431f230552c8783354f7df95
a=ice-pwd:664a97d82e3963d027901cbb7ae9cd88
a=candidate:Hc0a80020 1 UDP 2130706431 192.168.0.32 19204 typ host
a=candidate:H68935337 1 UDP 2130706431 fe80::a00:27ff:fed8:9e35 19204 typ host
a=candidate:Hc0a80020 2 UDP 2130706430 192.168.0.32 19205 typ host
a=candidate:H68935337 2 UDP 2130706430 fe80::a00:27ff:fed8:9e35 19205 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:107 opus/48000/2
a=fmtp:107 useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
m=video 10114 RTP/AVP 100 99
a=ice-ufrag:109ac9d32315156e5d1f057c47ac02c8
a=ice-pwd:49cb1c68122f9673183e30e90f9d14c9
a=candidate:Hc0a80020 1 UDP 2130706431 192.168.0.32 10114 typ host
a=candidate:H68935337 1 UDP 2130706431 fe80::a00:27ff:fed8:9e35 10114 typ host
a=candidate:Hc0a80020 2 UDP 2130706430 192.168.0.32 10115 typ host
a=candidate:H68935337 2 UDP 2130706430 fe80::a00:27ff:fed8:9e35 10115 typ host
a=rtpmap:100 VP8/90000
a=fmtp:100 max-fr=60;max-fs=12288
a=rtpmap:99 H264/90000
a=fmtp:99 packetization-mode=1;level-asymmetry-allowed=1;profile-level-id=42E01F
a=sendonly

<--- Received SIP response (341 bytes) from UDP:192.168.0.26:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.32:5060;rport=5060;received=192.168.0.32;branch=z9hG4bKPj79157466-4adc-40cd-85ce-2beeff1b2876
Call-ID: f4a3a6ed-6915-48df-81a0-190af93ab63e
From: <sip:Use2@192.168.0.32>;tag=0648a5e5-1abf-416c-b4b1-ea82542061a1
To: <sip:axis_local@192.168.0.26;ob>
CSeq: 31985 INVITE
Content-Length:  0


<--- Received SIP response (341 bytes) from UDP:192.168.0.26:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.32:5060;rport=5060;received=192.168.0.32;branch=z9hG4bKPj79157466-4adc-40cd-85ce-2beeff1b2876
Call-ID: f4a3a6ed-6915-48df-81a0-190af93ab63e
From: <sip:Use2@192.168.0.32>;tag=0648a5e5-1abf-416c-b4b1-ea82542061a1
To: <sip:axis_local@192.168.0.26;ob>
CSeq: 31985 INVITE
Content-Length:  0


<--- Received SIP response (1235 bytes) from UDP:192.168.0.26:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.32:5060;rport=5060;received=192.168.0.32;branch=z9hG4bKPj79157466-4adc-40cd-85ce-2beeff1b2876
Call-ID: f4a3a6ed-6915-48df-81a0-190af93ab63e
From: <sip:Use2@192.168.0.32>;tag=0648a5e5-1abf-416c-b4b1-ea82542061a1
To: <sip:axis_local@192.168.0.26;ob>;tag=1FvgEULTmGZq9E5wsLn3R.X9w4hoVhAQ
CSeq: 31985 INVITE
Contact: "Axis Local" <sip:axis_local@192.168.0.26:5060;ob>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub, answermode
Session-Expires: 1800;refresher=uac
Require: timer
Content-Type: application/sdp
Content-Length:   555

v=0
o=- 3868696077 3868696078 IN IP4 192.168.0.26
s=pjmedia
b=AS:699
t=0 0
a=X-nat:0
m=audio 4102 RTP/AVP 0 101
c=IN IP4 192.168.0.26
b=TIAS:650000
a=rtcp:4103 IN IP4 192.168.0.26
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ssrc:2079611727 cname:002c9e8b1f1646c5
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
m=video 4104 RTP/AVP 99
c=IN IP4 192.168.0.26
a=rtcp:4105 IN IP4 192.168.0.26
a=ssrc:791080956 cname:002c9e8b1f1646c5
a=rtcp-fb:* nack pli
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=42000d; packetization-mode=1
a=inactive

<--- Received SIP response (1235 bytes) from UDP:192.168.0.26:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.32:5060;rport=5060;received=192.168.0.32;branch=z9hG4bKPj79157466-4adc-40cd-85ce-2beeff1b2876
Call-ID: f4a3a6ed-6915-48df-81a0-190af93ab63e
From: <sip:Use2@192.168.0.32>;tag=0648a5e5-1abf-416c-b4b1-ea82542061a1
To: <sip:axis_local@192.168.0.26;ob>;tag=1FvgEULTmGZq9E5wsLn3R.X9w4hoVhAQ
CSeq: 31985 INVITE
Contact: "Axis Local" <sip:axis_local@192.168.0.26:5060;ob>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub, answermode
Session-Expires: 1800;refresher=uac
Require: timer
Content-Type: application/sdp
Content-Length:   555

v=0
o=- 3868696077 3868696078 IN IP4 192.168.0.26
s=pjmedia
b=AS:699
t=0 0
a=X-nat:0
m=audio 4102 RTP/AVP 0 101
c=IN IP4 192.168.0.26
b=TIAS:650000
a=rtcp:4103 IN IP4 192.168.0.26
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ssrc:2079611727 cname:002c9e8b1f1646c5
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
m=video 4104 RTP/AVP 99
c=IN IP4 192.168.0.26
a=rtcp:4105 IN IP4 192.168.0.26
a=ssrc:791080956 cname:002c9e8b1f1646c5
a=rtcp-fb:* nack pli
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=42000d; packetization-mode=1
a=inactive

       > 0x7fcca409e1e0 -- Strict RTP learning after remote address set to: 192.168.0.26:4102
       > 0x7fcca40a59d0 -- Strict RTP learning after remote address set to: 192.168.0.26:4104
<--- Transmitting SIP request (429 bytes) to UDP:192.168.0.26:5060 --->
ACK sip:axis_local@192.168.0.26:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.32:5060;rport;branch=z9hG4bKPjb889671f-d815-480c-bc1a-d6d8b82ec4c3
From: <sip:Use2@192.168.0.32>;tag=0648a5e5-1abf-416c-b4b1-ea82542061a1
To: <sip:axis_local@192.168.0.26;ob>;tag=1FvgEULTmGZq9E5wsLn3R.X9w4hoVhAQ
Call-ID: f4a3a6ed-6915-48df-81a0-190af93ab63e
CSeq: 31985 ACK
Max-Forwards: 70
User-Agent: FPBX-16.0.19(19.3.0)
Content-Length:  0


<--- Transmitting SIP request (429 bytes) to UDP:192.168.0.26:5060 --->
ACK sip:axis_local@192.168.0.26:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.32:5060;rport;branch=z9hG4bKPjb889671f-d815-480c-bc1a-d6d8b82ec4c3
From: <sip:Use2@192.168.0.32>;tag=0648a5e5-1abf-416c-b4b1-ea82542061a1
To: <sip:axis_local@192.168.0.26;ob>;tag=1FvgEULTmGZq9E5wsLn3R.X9w4hoVhAQ
Call-ID: f4a3a6ed-6915-48df-81a0-190af93ab63e
CSeq: 31985 ACK
Max-Forwards: 70
User-Agent: FPBX-16.0.19(19.3.0)
Content-Length:  0


    -- PJSIP/axis_local-00000001 answered PJSIP/Use2-00000000
       > 0x7fcca4052730 -- Strict RTP learning after remote address set to: 192.168.56.1:33108
       > 0x7fcca4089610 -- Strict RTP learning after remote address set to: 192.168.56.1:33108
<--- Transmitting SIP response (2441 bytes) to WS:192.168.0.12:32946 --->
SIP/2.0 200 OK
Via: SIP/2.0/WS df7jal23ls0d.invalid;rport=32946;received=192.168.0.12;branch=z9hG4bKoeT48ldktGF0R6HUbioXqsWM1MPXC6Qs
Call-ID: fc455de6-91c4-2fa2-8ed9-4d578dac5c18
From: <sip:Use2@192.168.0.32>;tag=sHKhOyExhnCwe6Ix6gmb
To: <sip:axis_local@192.168.0.32>;tag=1ddffae4-301a-4321-bcf8-3e48c227687f
CSeq: 44461 INVITE
Server: FPBX-16.0.19(19.3.0)
Contact: <sip:192.168.0.32:8088;transport=ws>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length:  1815

v=0
o=- 3469762720 2 IN IP4 192.168.0.32
s=Asterisk
c=IN IP4 192.168.0.32
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0 1
m=audio 10800 UDP/TLS/RTP/SAVPF 0 8 109 101
a=connection:new
a=setup:active
a=fingerprint:SHA-256 62:7E:80:4B:57:EA:DF:DD:08:34:76:27:88:C7:1E:B4:77:C3:A0:7D:34:52:77:E5:A0:26:4E:0D:CC:22:9F:E7
a=ice-ufrag:69c05ee630099cd250f50b6d13a127cc
a=ice-pwd:3466e0724427141d53cefdb21cb7c768
a=candidate:Hc0a80020 1 UDP 2130706431 192.168.0.32 10800 typ host
a=candidate:H68935337 1 UDP 2130706431 fe80::a00:27ff:fed8:9e35 10800 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:109 opus/48000/2
a=fmtp:109 useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:154572995 cname:9203d39a-cdb0-45e3-879b-c09fc9be9adc
a=msid:0d300f96-7c5c-436a-95ad-310c68130108 1cae49fc-ae8b-484f-a28d-eff0d7eef799
a=rtcp-fb:* transport-cc
a=mid:0
m=video 10800 UDP/TLS/RTP/SAVPF 120 126
a=connection:new
a=setup:active
a=fingerprint:SHA-256 62:7E:80:4B:57:EA:DF:DD:08:34:76:27:88:C7:1E:B4:77:C3:A0:7D:34:52:77:E5:A0:26:4E:0D:CC:22:9F:E7
a=ice-ufrag:69c05ee630099cd250f50b6d13a127cc
a=ice-pwd:3466e0724427141d53cefdb21cb7c768
a=rtpmap:120 VP8/90000
a=fmtp:120 max-fr=60;max-fs=12288
a=rtpmap:126 H264/90000
a=fmtp:126 packetization-mode=1;level-asymmetry-allowed=1;profile-level-id=42E01F
a=sendonly
a=rtcp-mux
a=ssrc:584363117 cname:cbeafe94-b0dc-44d9-b967-7815661b3feb
a=msid:a125a9a5-b4a1-41b7-9b1d-cd416c0b6ec8 69e53380-6ca9-4eab-aec4-3281522c05fa
a=rtcp-fb:* transport-cc
a=rtcp-fb:* ccm fir
a=rtcp-fb:* goog-remb
a=rtcp-fb:* nack
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=mid:1

    -- Channel PJSIP/axis_local-00000001 joined 'simple_bridge' basic-bridge <39f9ef67-7d58-44ca-a212-c8c332358d51>
    -- Channel PJSIP/Use2-00000000 joined 'simple_bridge' basic-bridge <39f9ef67-7d58-44ca-a212-c8c332358d51>
       > 0x7fcca4052730 -- Strict RTP learning after remote address set to: 192.168.0.12:48944
       > 0x7fcca4089610 -- Strict RTP learning after ICE completion
<--- Received SIP request (859 bytes) from WS:192.168.0.12:32946 --->
ACK sip:192.168.0.32:8088;transport=ws SIP/2.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKuKGarLJXP9fyyTc5nUfC;rport
From: <sip:Use2@192.168.0.32>;tag=sHKhOyExhnCwe6Ix6gmb
To: <sip:axis_local@192.168.0.32>;tag=1ddffae4-301a-4321-bcf8-3e48c227687f
Contact: <sip:Use2@df7jal23ls0d.invalid;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: fc455de6-91c4-2fa2-8ed9-4d578dac5c18
CSeq: 44461 ACK
Content-Length: 0
Max-Forwards: 70
Authorization: Digest username="Use2",realm="asterisk",nonce="1659707266/9cb0e86748350faaac64d48ce50d99b6",uri="sip:192.168.0.32:8088;transport=ws",response="0835dfe90671b4f612e069123cc8d724",algorithm=md5,cnonce="7011a4ae95b44996e310ae5e762c9260",opaque="0499948d0ed13152",qop=auth,nc=00000002
User-Agent: IM-client/OMA1.0 sipML5-v1.2016.03.04
Organization: Doubango Telecom


<--- Transmitting SIP request (2564 bytes) to WS:192.168.0.12:32946 --->
INVITE sip:Use2@192.168.0.12:32946;transport=ws;rtcweb-breaker=no;click2call=no SIP/2.0
Via: SIP/2.0/WS 192.168.0.32:8088;rport;branch=z9hG4bKPjf24e5f3d-01ab-4ed7-b6a6-8ade9362c0fc;alias
From: <sip:axis_local@192.168.0.32>;tag=1ddffae4-301a-4321-bcf8-3e48c227687f
To: <sip:Use2@192.168.0.32>;tag=sHKhOyExhnCwe6Ix6gmb
Contact: <sip:192.168.0.32:8088;transport=ws>
Call-ID: fc455de6-91c4-2fa2-8ed9-4d578dac5c18
CSeq: 27302 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: FPBX-16.0.19(19.3.0)
Content-Type: application/sdp
Content-Length:  1817

v=0
o=- 3469762720 3 IN IP4 192.168.0.32
s=Asterisk
c=IN IP4 192.168.0.32
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0 1
m=audio 10800 UDP/TLS/RTP/SAVPF 0 8 109 101
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 62:7E:80:4B:57:EA:DF:DD:08:34:76:27:88:C7:1E:B4:77:C3:A0:7D:34:52:77:E5:A0:26:4E:0D:CC:22:9F:E7
a=ice-ufrag:69c05ee630099cd250f50b6d13a127cc
a=ice-pwd:3466e0724427141d53cefdb21cb7c768
a=candidate:Hc0a80020 1 UDP 2130706431 192.168.0.32 10800 typ host
a=candidate:H68935337 1 UDP 2130706431 fe80::a00:27ff:fed8:9e35 10800 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:109 opus/48000/2
a=fmtp:109 useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:154572995 cname:9203d39a-cdb0-45e3-879b-c09fc9be9adc
a=msid:0d300f96-7c5c-436a-95ad-310c68130108 1cae49fc-ae8b-484f-a28d-eff0d7eef799
a=rtcp-fb:* transport-cc
a=mid:0
m=video 10800 UDP/TLS/RTP/SAVPF 120 126
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 62:7E:80:4B:57:EA:DF:DD:08:34:76:27:88:C7:1E:B4:77:C3:A0:7D:34:52:77:E5:A0:26:4E:0D:CC:22:9F:E7
a=ice-ufrag:69c05ee630099cd250f50b6d13a127cc
a=ice-pwd:3466e0724427141d53cefdb21cb7c768
a=rtpmap:120 VP8/90000
a=fmtp:120 max-fr=60;max-fs=12288
a=rtpmap:126 H264/90000
a=fmtp:126 packetization-mode=1;level-asymmetry-allowed=1;profile-level-id=42E01F
a=inactive
a=rtcp-mux
a=ssrc:584363117 cname:cbeafe94-b0dc-44d9-b967-7815661b3feb
a=msid:a125a9a5-b4a1-41b7-9b1d-cd416c0b6ec8 69e53380-6ca9-4eab-aec4-3281522c05fa
a=rtcp-fb:* transport-cc
a=rtcp-fb:* ccm fir
a=rtcp-fb:* goog-remb
a=rtcp-fb:* nack
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=mid:1

       > 0x7fcca4052730 -- Strict RTP learning after remote address set to: 192.168.0.12:48944
       > 0x7fcca4089610 -- Strict RTP learning after remote address set to: 192.168.0.12:48944
<--- Received SIP response (379 bytes) from WS:192.168.0.12:32946 --->
SIP/2.0 100 Trying (sent from the Transaction Layer)
Via: SIP/2.0/WS 192.168.0.32:8088;rport=8088;branch=z9hG4bKPjf24e5f3d-01ab-4ed7-b6a6-8ade9362c0fc;alias
From: <sip:axis_local@192.168.0.32>;tag=1ddffae4-301a-4321-bcf8-3e48c227687f
To: <sip:Use2@192.168.0.32>;tag=sHKhOyExhnCwe6Ix6gmb
Call-ID: fc455de6-91c4-2fa2-8ed9-4d578dac5c18
CSeq: 27302 INVITE
Content-Length: 0


       > 0x7fcca409e1e0 -- Strict RTP switching to RTP target address 192.168.0.26:4102 as source
       > 0x7fcca4089610 -- Strict RTP switching to RTP target address 192.168.0.12:48944 as source
<--- Received SIP response (6842 bytes) from WS:192.168.0.12:32946 --->
SIP/2.0 200 OK
Via: SIP/2.0/WS 192.168.0.32:8088;rport=8088;branch=z9hG4bKPjf24e5f3d-01ab-4ed7-b6a6-8ade9362c0fc;alias
From: <sip:axis_local@192.168.0.32>;tag=1ddffae4-301a-4321-bcf8-3e48c227687f
To: <sip:Use2@192.168.0.32>;tag=sHKhOyExhnCwe6Ix6gmb
Contact: <sip:Use2@df7jal23ls0d.invalid;transport=ws>
Call-ID: fc455de6-91c4-2fa2-8ed9-4d578dac5c18
CSeq: 27302 INVITE
Content-Type: application/sdp
Content-Length: 6331
Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE

v=0
o=mozilla...THIS_IS_SDPARTA-99.0 6407858980220068000 0 IN IP4 127.0.0.1
s=Doubango Telecom - firefox
t=0 0
a=sendrecv
a=fingerprint:sha-256 11:36:38:5B:A0:EE:08:84:61:27:EE:C2:0D:27:7F:47:A9:1C:75:46:D9:EF:04:2E:4E:D0:CB:C3:4F:D8:99:DA
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 33108 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 192.168.56.1
a=candidate:0 1 UDP 2122187007 192.168.0.12 48944 typ host
a=candidate:1 1 UDP 2122121471 192.168.122.1 45343 typ host
a=candidate:2 1 UDP 2122055935 172.20.0.1 53787 typ host
a=candidate:3 1 UDP 2121990399 172.18.0.1 56135 typ host
a=candidate:4 1 UDP 2121924863 172.19.0.1 60623 typ host
a=candidate:5 1 UDP 2121859327 172.17.0.1 36279 typ host
a=candidate:6 1 UDP 2122252543 192.168.56.1 33108 typ host
a=candidate:7 1 TCP 2105458943 192.168.0.12 9 typ host tcptype active
a=candidate:8 1 TCP 2105393407 192.168.122.1 9 typ host tcptype active
a=candidate:9 1 TCP 2105327871 172.20.0.1 9 typ host tcptype active
a=candidate:10 1 TCP 2105262335 172.18.0.1 9 typ host tcptype active
a=candidate:11 1 TCP 2105196799 172.19.0.1 9 typ host tcptype active
a=candidate:12 1 TCP 2105131263 172.17.0.1 9 typ host tcptype active
a=candidate:13 1 TCP 2105524479 192.168.56.1 9 typ host tcptype active
a=candidate:0 2 UDP 2122187006 192.168.0.12 43364 typ host
a=candidate:1 2 UDP 2122121470 192.168.122.1 44602 typ host
a=candidate:2 2 UDP 2122055934 172.20.0.1 57719 typ host
a=candidate:3 2 UDP 2121990398 172.18.0.1 52649 typ host
a=candidate:4 2 UDP 2121924862 172.19.0.1 48347 typ host
a=candidate:5 2 UDP 2121859326 172.17.0.1 52844 typ host
a=candidate:6 2 UDP 2122252542 192.168.56.1 47045 typ host
a=candidate:7 2 TCP 2105458942 192.168.0.12 9 typ host tcptype active
a=candidate:8 2 TCP 2105393406 192.168.122.1 9 typ host tcptype active
a=candidate:9 2 TCP 2105327870 172.20.0.1 9 typ host tcptype active
a=candidate:10 2 TCP 2105262334 172.18.0.1 9 typ host tcptype active
a=candidate:11 2 TCP 2105196798 172.19.0.1 9 typ host tcptype active
a=candidate:12 2 TCP 2105131262 172.17.0.1 9 typ host tcptype active
a=candidate:13 2 TCP 2105524478 192.168.56.1 9 typ host tcptype active
a=sendrecv
a=end-of-candidates
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2/recvonly urn:ietf:params:rtp-hdrext:csrc-audio-level
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1
a=fmtp:101 0-15
a=ice-pwd:38902ac7ed5d4749bd4325ee31a4d83f
a=ice-ufrag:0730dec2
a=mid:0
a=msid:{0f35c7fc-e1aa-4165-bc49-46ba40351e19} {7077e186-222c-4b3b-89f1-4ccc6618ca71}
a=rtcp:47045 IN IP4 192.168.56.1
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=rtpmap:9 G722/8000/1
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=setup:actpass
a=ssrc:2650840728 cname:{6301cf2b-c2e1-44d6-8500-477fbb1fecf4}
m=video 40632 UDP/TLS/RTP/SAVPF 120 124 121 125 126 127 97 98
c=IN IP4 192.168.56.1
a=candidate:0 1 UDP 2122187007 192.168.0.12 34996 typ host
a=candidate:1 1 UDP 2122121471 192.168.122.1 46642 typ host
a=candidate:2 1 UDP 2122055935 172.20.0.1 56475 typ host
a=candidate:3 1 UDP 2121990399 172.18.0.1 53952 typ host
a=candidate:4 1 UDP 2121924863 172.19.0.1 50925 typ host
a=candidate:5 1 UDP 2121859327 172.17.0.1 46263 typ host
a=candidate:6 1 UDP 2122252543 192.168.56.1 40632 typ host
a=candidate:7 1 TCP 2105458943 192.168.0.12 9 typ host tcptype active
a=candidate:8 1 TCP 2105393407 192.168.122.1 9 typ host tcptype active
a=candidate:9 1 TCP 2105327871 172.20.0.1 9 typ host tcptype active
a=candidate:10 1 TCP 2105262335 172.18.0.1 9 typ host tcptype active
a=candidate:11 1 TCP 2105196799 172.19.0.1 9 typ host tcptype active
a=candidate:12 1 TCP 2105131263 172.17.0.1 9 typ host tcptype active
a=candidate:13 1 TCP 2105524479 192.168.56.1 9 typ host tcptype active
a=candidate:0 2 UDP 2122187006 192.168.0.12 54217 typ host
a=candidate:1 2 UDP 2122121470 192.168.122.1 56911 typ host
a=candidate:2 2 UDP 2122055934 172.20.0.1 60058 typ host
a=candidate:3 2 UDP 2121990398 172.18.0.1 51025 typ host
a=candidate:4 2 UDP 2121924862 172.19.0.1 39660 typ host
a=candidate:5 2 UDP 2121859326 172.17.0.1 59333 typ host
a=candidate:6 2 UDP 2122252542 192.168.56.1 56774 typ host
a=candidate:7 2 TCP 2105458942 192.168.0.12 9 typ host tcptype active
a=candidate:8 2 TCP 2105393406 192.168.122.1 9 typ host tcptype active
a=candidate:9 2 TCP 2105327870 172.20.0.1 9 typ host tcptype active
a=candidate:10 2 TCP 2105262334 172.18.0.1 9 typ host tcptype active
a=candidate:11 2 TCP 2105196798 172.19.0.1 9 typ host tcptype active
a=candidate:12 2 TCP 2105131262 172.17.0.1 9 typ host tcptype active
a=candidate:13 2 TCP 2105524478 192.168.56.1 9 typ host tcptype active
a=recvonly
a=end-of-candidates
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 urn:ietf:params:rtp-hdrext:toffset
a=extmap:6/recvonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
a=fmtp:120 max-fs=12288;max-fr=60
a=fmtp:124 apt=120
a=fmtp:121 max-fs=12288;max-fr=60
a=fmtp:125 apt=121
a=fmtp:127 apt=126
a=fmtp:98 apt=97
a=ice-pwd:38902ac7ed5d4749bd4325ee31a4d83f
a=ice-ufrag:0730dec2
a=mid:1
a=rtcp:56774 IN IP4 192.168.56.1
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 transport-cc
a=rtcp-fb:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=rtcp-fb:121 goog-remb
a=rtcp-fb:121 transport-cc
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 ccm fir
a=rtcp-fb:126 goog-remb
a=rtcp-fb:126 transport-cc
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 goog-remb
a=rtcp-fb:97 transport-cc
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:120 VP8/90000
a=rtpmap:124 rtx/90000
a=rtpmap:121 VP9/90000
a=rtpmap:125 rtx/90000
a=rtpmap:126 H264/90000
a=rtpmap:127 rtx/90000
a=rtpmap:97 H264/90000
a=rtpmap:98 rtx/90000
a=setup:actpass
a=ssrc:1164111410 cname:{6301cf2b-c2e1-44d6-8500-477fbb1fecf4}

       > 0x7fcca4052730 -- Strict RTP learning after remote address set to: 192.168.56.1:33108
       > 0x7fcca4089610 -- Strict RTP learning after remote address set to: 192.168.56.1:33108
<--- Transmitting SIP request (456 bytes) to WS:192.168.0.12:32946 --->
ACK sip:Use2@192.168.0.12:32946;transport=ws;rtcweb-breaker=no;click2call=no SIP/2.0
Via: SIP/2.0/WS 192.168.0.32:8088;rport;branch=z9hG4bKPje033427f-ffc2-4fe1-a45c-2f71456725d3;alias
From: <sip:axis_local@192.168.0.32>;tag=1ddffae4-301a-4321-bcf8-3e48c227687f
To: <sip:Use2@192.168.0.32>;tag=sHKhOyExhnCwe6Ix6gmb
Call-ID: fc455de6-91c4-2fa2-8ed9-4d578dac5c18
CSeq: 27302 ACK
Max-Forwards: 70
User-Agent: FPBX-16.0.19(19.3.0)
Content-Length:  0


<--- Received SIP request (822 bytes) from WS:192.168.0.12:32946 --->
BYE sip:192.168.0.32:8088;transport=ws SIP/2.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKLzCpFO9aoWAWn3FgUynvwCpdPpLkEw52;rport
From: <sip:Use2@192.168.0.32>;tag=sHKhOyExhnCwe6Ix6gmb
To: <sip:axis_local@192.168.0.32>;tag=1ddffae4-301a-4321-bcf8-3e48c227687f
Call-ID: fc455de6-91c4-2fa2-8ed9-4d578dac5c18
CSeq: 44462 BYE
Content-Length: 0
Max-Forwards: 70
Accept-Contact: *;+g.oma.sip-im
Accept-Contact: *;language="en,fr"
Authorization: Digest username="Use2",realm="asterisk",nonce="1659707266/9cb0e86748350faaac64d48ce50d99b6",uri="sip:192.168.0.32:8088;transport=ws",response="9e2a698faecc554fc78703344f151dbd",algorithm=md5,cnonce="7011a4ae95b44996e310ae5e762c9260",opaque="0499948d0ed13152",qop=auth,nc=00000003
User-Agent: IM-client/OMA1.0 sipML5-v1.2016.03.04
Organization: Doubango Telecom


<--- Transmitting SIP response (383 bytes) to WS:192.168.0.12:32946 --->
SIP/2.0 200 OK
Via: SIP/2.0/WS df7jal23ls0d.invalid;rport=32946;received=192.168.0.12;branch=z9hG4bKLzCpFO9aoWAWn3FgUynvwCpdPpLkEw52
Call-ID: fc455de6-91c4-2fa2-8ed9-4d578dac5c18
From: <sip:Use2@192.168.0.32>;tag=sHKhOyExhnCwe6Ix6gmb
To: <sip:axis_local@192.168.0.32>;tag=1ddffae4-301a-4321-bcf8-3e48c227687f
CSeq: 44462 BYE
Server: FPBX-16.0.19(19.3.0)
Content-Length:  0


    -- Channel PJSIP/Use2-00000000 left 'simple_bridge' basic-bridge <39f9ef67-7d58-44ca-a212-c8c332358d51>

There have been fixes in this area in Asterisk[1][2] since 19.3.0. You really want to use the latest release of 16 to ensure you aren’t chasing old issues first.

[1] [ASTERISK-29655] res_pjsip_session: No video to caller if no camera available - Digium/Asterisk JIRA
[2] [ASTERISK-29638] res_pjsip_session: No video after early media - Digium/Asterisk JIRA

I think I’ve seen other people reporting this behaviour, but not analysing it so well.

I suspect this is because you are expecting SIP proxy behaviour, but Asterisk is back to back user agent. I suspect it is actually interpreting the non-sendrecv offer as putting the stream on hold, and it is a hold indication, not the direction, that is going across the Asterisk backbone.

I’m currently running Asterisk on a FreePBX virtual machine, whose latest Asterisk 19 release is the 19.3. Why do you recommend the latest 16 release instead of the latest 19?
Is there any way of installing that latest release without having to build it from code? Taking into account that it’s not included in the latest FreePBX distro

Sure, that’s exactly what I was thinking, as it’s the same that happens with some javascript SIP libraries

Ok, I have checked that the latest FreePBX version includes Asterisk 16.27.0, which includes those changes you mentioned, so I suppose that’s why you recommended that version.
Using that version the call is established, the caller receives video and the callee receives voice. However, the caller doesn’t receive audio. I have checked the logs and the SDP messages seem fine, I don’t know where the trouble could be


<--- Received SIP request (7187 bytes) from WS:192.168.0.12:56006 --->
INVITE sip:axis_local@192.168.0.32 SIP/2.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKqEG4tmeNzlGTxUNleoxHZuZLSOlK6sHi;rport
From: <sip:Use2@192.168.0.32>;tag=HdlhPIb1Xolt2OKUZ4T0
To: <sip:axis_local@192.168.0.32>
Contact: <sip:Use2@df7jal23ls0d.invalid;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: f22ed818-7723-9b21-d0c5-0db91d3dcc07
CSeq: 41212 INVITE
Content-Type: application/sdp
Content-Length: 6331
Max-Forwards: 70
Authorization: Digest username="Use2",realm="asterisk",nonce="1659713521/d0436910f001162ebf21acded6cb120d",uri="sip:axis_local@192.168.0.32",response="75a4d4cba650b2b7893550aaa2a7a87a",algorithm=MD5,cnonce="02e435067fd313ad0fc28f462e2b0ff4",opaque="0aac51727dec9198",qop=auth,nc=00000001
User-Agent: IM-client/OMA1.0 sipML5-v1.2016.03.04
Organization: Doubango Telecom

v=0
o=mozilla...THIS_IS_SDPARTA-99.0 6828860585362059000 0 IN IP4 127.0.0.1
s=Doubango Telecom - firefox
t=0 0
a=sendrecv
a=fingerprint:sha-256 B5:38:BE:8D:64:E7:6F:92:13:76:09:D6:C5:D7:0F:31:05:A9:2C:F3:DC:7F:04:9F:28:5E:FE:10:C0:21:22:9F
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 40815 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 192.168.56.1
a=candidate:0 1 UDP 2122187007 192.168.0.12 35552 typ host
a=candidate:1 1 UDP 2122121471 192.168.122.1 53258 typ host
a=candidate:2 1 UDP 2122055935 172.20.0.1 56355 typ host
a=candidate:3 1 UDP 2121990399 172.18.0.1 58646 typ host
a=candidate:4 1 UDP 2121924863 172.19.0.1 37503 typ host
a=candidate:5 1 UDP 2121859327 172.17.0.1 36494 typ host
a=candidate:6 1 UDP 2122252543 192.168.56.1 40815 typ host
a=candidate:7 1 TCP 2105458943 192.168.0.12 9 typ host tcptype active
a=candidate:8 1 TCP 2105393407 192.168.122.1 9 typ host tcptype active
a=candidate:9 1 TCP 2105327871 172.20.0.1 9 typ host tcptype active
a=candidate:10 1 TCP 2105262335 172.18.0.1 9 typ host tcptype active
a=candidate:11 1 TCP 2105196799 172.19.0.1 9 typ host tcptype active
a=candidate:12 1 TCP 2105131263 172.17.0.1 9 typ host tcptype active
a=candidate:13 1 TCP 2105524479 192.168.56.1 9 typ host tcptype active
a=candidate:0 2 UDP 2122187006 192.168.0.12 34697 typ host
a=candidate:1 2 UDP 2122121470 192.168.122.1 57166 typ host
a=candidate:2 2 UDP 2122055934 172.20.0.1 42557 typ host
a=candidate:3 2 UDP 2121990398 172.18.0.1 36502 typ host
a=candidate:4 2 UDP 2121924862 172.19.0.1 52214 typ host
a=candidate:5 2 UDP 2121859326 172.17.0.1 52913 typ host
a=candidate:6 2 UDP 2122252542 192.168.56.1 54756 typ host
a=candidate:7 2 TCP 2105458942 192.168.0.12 9 typ host tcptype active
a=candidate:8 2 TCP 2105393406 192.168.122.1 9 typ host tcptype active
a=candidate:9 2 TCP 2105327870 172.20.0.1 9 typ host tcptype active
a=candidate:10 2 TCP 2105262334 172.18.0.1 9 typ host tcptype active
a=candidate:11 2 TCP 2105196798 172.19.0.1 9 typ host tcptype active
a=candidate:12 2 TCP 2105131262 172.17.0.1 9 typ host tcptype active
a=candidate:13 2 TCP 2105524478 192.168.56.1 9 typ host tcptype active
a=sendrecv
a=end-of-candidates
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2/recvonly urn:ietf:params:rtp-hdrext:csrc-audio-level
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1
a=fmtp:101 0-15
a=ice-pwd:fe9668076431bc8f9d2aaa1c12a94925
a=ice-ufrag:eb5c334b
a=mid:0
a=msid:{b7a61ff9-7cb6-4f16-9cd5-ff1509b8ba02} {216b19cd-4267-4039-8b25-36f6532a91f1}
a=rtcp:54756 IN IP4 192.168.56.1
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=rtpmap:9 G722/8000/1
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=setup:actpass
a=ssrc:1788038487 cname:{199b88b7-2492-4493-8170-4cad4ff9ee99}
m=video 57149 UDP/TLS/RTP/SAVPF 120 124 121 125 126 127 97 98
c=IN IP4 192.168.56.1
a=candidate:0 1 UDP 2122187007 192.168.0.12 46064 typ host
a=candidate:1 1 UDP 2122121471 192.168.122.1 48409 typ host
a=candidate:2 1 UDP 2122055935 172.20.0.1 60073 typ host
a=candidate:3 1 UDP 2121990399 172.18.0.1 41599 typ host
a=candidate:4 1 UDP 2121924863 172.19.0.1 53013 typ host
a=candidate:5 1 UDP 2121859327 172.17.0.1 47973 typ host
a=candidate:6 1 UDP 2122252543 192.168.56.1 57149 typ host
a=candidate:7 1 TCP 2105458943 192.168.0.12 9 typ host tcptype active
a=candidate:8 1 TCP 2105393407 192.168.122.1 9 typ host tcptype active
a=candidate:9 1 TCP 2105327871 172.20.0.1 9 typ host tcptype active
a=candidate:10 1 TCP 2105262335 172.18.0.1 9 typ host tcptype active
a=candidate:11 1 TCP 2105196799 172.19.0.1 9 typ host tcptype active
a=candidate:12 1 TCP 2105131263 172.17.0.1 9 typ host tcptype active
a=candidate:13 1 TCP 2105524479 192.168.56.1 9 typ host tcptype active
a=candidate:0 2 UDP 2122187006 192.168.0.12 57495 typ host
a=candidate:1 2 UDP 2122121470 192.168.122.1 60636 typ host
a=candidate:2 2 UDP 2122055934 172.20.0.1 41186 typ host
a=candidate:3 2 UDP 2121990398 172.18.0.1 57633 typ host
a=candidate:4 2 UDP 2121924862 172.19.0.1 49199 typ host
a=candidate:5 2 UDP 2121859326 172.17.0.1 55129 typ host
a=candidate:6 2 UDP 2122252542 192.168.56.1 56515 typ host
a=candidate:7 2 TCP 2105458942 192.168.0.12 9 typ host tcptype active
a=candidate:8 2 TCP 2105393406 192.168.122.1 9 typ host tcptype active
a=candidate:9 2 TCP 2105327870 172.20.0.1 9 typ host tcptype active
a=candidate:10 2 TCP 2105262334 172.18.0.1 9 typ host tcptype active
a=candidate:11 2 TCP 2105196798 172.19.0.1 9 typ host tcptype active
a=candidate:12 2 TCP 2105131262 172.17.0.1 9 typ host tcptype active
a=candidate:13 2 TCP 2105524478 192.168.56.1 9 typ host tcptype active
a=recvonly
a=end-of-candidates
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 urn:ietf:params:rtp-hdrext:toffset
a=extmap:6/recvonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
a=fmtp:120 max-fs=12288;max-fr=60
a=fmtp:124 apt=120
a=fmtp:121 max-fs=12288;max-fr=60
a=fmtp:125 apt=121
a=fmtp:127 apt=126
a=fmtp:98 apt=97
a=ice-pwd:fe9668076431bc8f9d2aaa1c12a94925
a=ice-ufrag:eb5c334b
a=mid:1
a=rtcp:56515 IN IP4 192.168.56.1
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 transport-cc
a=rtcp-fb:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=rtcp-fb:121 goog-remb
a=rtcp-fb:121 transport-cc
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 ccm fir
a=rtcp-fb:126 goog-remb
a=rtcp-fb:126 transport-cc
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 goog-remb
a=rtcp-fb:97 transport-cc
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:120 VP8/90000
a=rtpmap:124 rtx/90000
a=rtpmap:121 VP9/90000
a=rtpmap:125 rtx/90000
a=rtpmap:126 H264/90000
a=rtpmap:127 rtx/90000
a=rtpmap:97 H264/90000
a=rtpmap:98 rtx/90000
a=setup:actpass
a=ssrc:2168025210 cname:{199b88b7-2492-4493-8170-4cad4ff9ee99}

<--- Transmitting SIP response (349 bytes) to WS:192.168.0.12:56006 --->
SIP/2.0 100 Trying
Via: SIP/2.0/WS df7jal23ls0d.invalid;rport=56006;received=192.168.0.12;branch=z9hG4bKqEG4tmeNzlGTxUNleoxHZuZLSOlK6sHi
Call-ID: f22ed818-7723-9b21-d0c5-0db91d3dcc07
From: <sip:Use2@192.168.0.32>;tag=HdlhPIb1Xolt2OKUZ4T0
To: <sip:axis_local@192.168.0.32>
CSeq: 41212 INVITE
Server: FPBX-16.0.19(19.3.0)
Content-Length:  0


  == DTLS ECDH initialized (automatic), faster PFS enabled
    -- Executing [axis_local@default:1] Dial("PJSIP/Use2-00000001", "PJSIP/axis_local,20") in new stack
    -- Called PJSIP/axis_local
<--- Transmitting SIP request (1974 bytes) to UDP:192.168.0.26:5060 --->
INVITE sip:axis_local@192.168.0.26:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.32:5060;rport;branch=z9hG4bKPj47a228be-9a54-4b82-9174-e18bbed8869a
From: <sip:Use2@192.168.0.32>;tag=3c1607fd-8c8b-4884-a8b4-df18e0c6dec3
To: <sip:axis_local@192.168.0.26;ob>
Contact: <sip:asterisk@192.168.0.32:5060>
Call-ID: 2d65b736-3ad4-4c69-a976-50d52829a164
CSeq: 12836 INVITE
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: FPBX-16.0.19(19.3.0)
Content-Type: application/sdp
Content-Length:  1295

v=0
o=- 783965309 783965309 IN IP4 192.168.0.32
s=Asterisk
c=IN IP4 192.168.0.32
t=0 0
m=audio 15178 RTP/AVP 0 8 107 101
a=ice-ufrag:5e438925202e743f10a5290e2ebfd91b
a=ice-pwd:07ca038c456ce2f4332ce75d1561818a
a=candidate:Hc0a80020 1 UDP 2130706431 192.168.0.32 15178 typ host
a=candidate:H68935337 1 UDP 2130706431 fe80::a00:27ff:fed8:9e35 15178 typ host
a=candidate:Hc0a80020 2 UDP 2130706430 192.168.0.32 15179 typ host
a=candidate:H68935337 2 UDP 2130706430 fe80::a00:27ff:fed8:9e35 15179 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:107 opus/48000/2
a=fmtp:107 useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
m=video 12542 RTP/AVP 100 99
a=ice-ufrag:15de1cbf061237886c36da1730c82a3b
a=ice-pwd:4134c43f02eb9ecd4c12912e6ab1ad4c
a=candidate:Hc0a80020 1 UDP 2130706431 192.168.0.32 12542 typ host
a=candidate:H68935337 1 UDP 2130706431 fe80::a00:27ff:fed8:9e35 12542 typ host
a=candidate:Hc0a80020 2 UDP 2130706430 192.168.0.32 12543 typ host
a=candidate:H68935337 2 UDP 2130706430 fe80::a00:27ff:fed8:9e35 12543 typ host
a=rtpmap:100 VP8/90000
a=fmtp:100 max-fr=60;max-fs=12288
a=rtpmap:99 H264/90000
a=fmtp:99 packetization-mode=1;level-asymmetry-allowed=1;profile-level-id=42E01F
a=recvonly

<--- Received SIP response (341 bytes) from UDP:192.168.0.26:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.32:5060;rport=5060;received=192.168.0.32;branch=z9hG4bKPj47a228be-9a54-4b82-9174-e18bbed8869a
Call-ID: 2d65b736-3ad4-4c69-a976-50d52829a164
From: <sip:Use2@192.168.0.32>;tag=3c1607fd-8c8b-4884-a8b4-df18e0c6dec3
To: <sip:axis_local@192.168.0.26;ob>
CSeq: 12836 INVITE
Content-Length:  0


<--- Received SIP response (341 bytes) from UDP:192.168.0.26:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.32:5060;rport=5060;received=192.168.0.32;branch=z9hG4bKPj47a228be-9a54-4b82-9174-e18bbed8869a
Call-ID: 2d65b736-3ad4-4c69-a976-50d52829a164
From: <sip:Use2@192.168.0.32>;tag=3c1607fd-8c8b-4884-a8b4-df18e0c6dec3
To: <sip:axis_local@192.168.0.26;ob>
CSeq: 12836 INVITE
Content-Length:  0


<--- Received SIP response (1235 bytes) from UDP:192.168.0.26:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.32:5060;rport=5060;received=192.168.0.32;branch=z9hG4bKPj47a228be-9a54-4b82-9174-e18bbed8869a
Call-ID: 2d65b736-3ad4-4c69-a976-50d52829a164
From: <sip:Use2@192.168.0.32>;tag=3c1607fd-8c8b-4884-a8b4-df18e0c6dec3
To: <sip:axis_local@192.168.0.26;ob>;tag=rAEjPIQb9SlAFZtdaGrx65OOJuZujWB9
CSeq: 12836 INVITE
Contact: "Axis Local" <sip:axis_local@192.168.0.26:5060;ob>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub, answermode
Session-Expires: 1800;refresher=uac
Require: timer
Content-Type: application/sdp
Content-Length:   555

v=0
o=- 3868702333 3868702334 IN IP4 192.168.0.26
s=pjmedia
b=AS:699
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 0 101
c=IN IP4 192.168.0.26
b=TIAS:650000
a=rtcp:4001 IN IP4 192.168.0.26
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ssrc:1850301683 cname:35615813349623bd
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
m=video 4002 RTP/AVP 99
c=IN IP4 192.168.0.26
a=rtcp:4003 IN IP4 192.168.0.26
a=sendonly
a=ssrc:811507024 cname:35615813349623bd
a=rtcp-fb:* nack pli
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=42000d; packetization-mode=1

<--- Received SIP response (1235 bytes) from UDP:192.168.0.26:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.32:5060;rport=5060;received=192.168.0.32;branch=z9hG4bKPj47a228be-9a54-4b82-9174-e18bbed8869a
Call-ID: 2d65b736-3ad4-4c69-a976-50d52829a164
From: <sip:Use2@192.168.0.32>;tag=3c1607fd-8c8b-4884-a8b4-df18e0c6dec3
To: <sip:axis_local@192.168.0.26;ob>;tag=rAEjPIQb9SlAFZtdaGrx65OOJuZujWB9
CSeq: 12836 INVITE
Contact: "Axis Local" <sip:axis_local@192.168.0.26:5060;ob>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub, answermode
Session-Expires: 1800;refresher=uac
Require: timer
Content-Type: application/sdp
Content-Length:   555

v=0
o=- 3868702333 3868702334 IN IP4 192.168.0.26
s=pjmedia
b=AS:699
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 0 101
c=IN IP4 192.168.0.26
b=TIAS:650000
a=rtcp:4001 IN IP4 192.168.0.26
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ssrc:1850301683 cname:35615813349623bd
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
m=video 4002 RTP/AVP 99
c=IN IP4 192.168.0.26
a=rtcp:4003 IN IP4 192.168.0.26
a=sendonly
a=ssrc:811507024 cname:35615813349623bd
a=rtcp-fb:* nack pli
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=42000d; packetization-mode=1

       > 0x7fbc680feed0 -- Strict RTP learning after remote address set to: 192.168.0.26:4000
       > 0x7fbc68106550 -- Strict RTP learning after remote address set to: 192.168.0.26:4002
<--- Transmitting SIP request (429 bytes) to UDP:192.168.0.26:5060 --->
ACK sip:axis_local@192.168.0.26:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.32:5060;rport;branch=z9hG4bKPja30ac804-fd8e-42aa-9527-6daacb64eb9b
From: <sip:Use2@192.168.0.32>;tag=3c1607fd-8c8b-4884-a8b4-df18e0c6dec3
To: <sip:axis_local@192.168.0.26;ob>;tag=rAEjPIQb9SlAFZtdaGrx65OOJuZujWB9
Call-ID: 2d65b736-3ad4-4c69-a976-50d52829a164
CSeq: 12836 ACK
Max-Forwards: 70
User-Agent: FPBX-16.0.19(19.3.0)
Content-Length:  0


<--- Transmitting SIP request (429 bytes) to UDP:192.168.0.26:5060 --->
ACK sip:axis_local@192.168.0.26:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.32:5060;rport;branch=z9hG4bKPja30ac804-fd8e-42aa-9527-6daacb64eb9b
From: <sip:Use2@192.168.0.32>;tag=3c1607fd-8c8b-4884-a8b4-df18e0c6dec3
To: <sip:axis_local@192.168.0.26;ob>;tag=rAEjPIQb9SlAFZtdaGrx65OOJuZujWB9
Call-ID: 2d65b736-3ad4-4c69-a976-50d52829a164
CSeq: 12836 ACK
Max-Forwards: 70
User-Agent: FPBX-16.0.19(19.3.0)
Content-Length:  0


    -- PJSIP/axis_local-00000002 answered PJSIP/Use2-00000001
       > 0x7fbc680ea1d0 -- Strict RTP learning after remote address set to: 192.168.56.1:40815
       > 0x7fbc68011620 -- Strict RTP learning after remote address set to: 192.168.56.1:40815
<--- Transmitting SIP response (2441 bytes) to WS:192.168.0.12:56006 --->
SIP/2.0 200 OK
Via: SIP/2.0/WS df7jal23ls0d.invalid;rport=56006;received=192.168.0.12;branch=z9hG4bKqEG4tmeNzlGTxUNleoxHZuZLSOlK6sHi
Call-ID: f22ed818-7723-9b21-d0c5-0db91d3dcc07
From: <sip:Use2@192.168.0.32>;tag=HdlhPIb1Xolt2OKUZ4T0
To: <sip:axis_local@192.168.0.32>;tag=40be3df8-079d-41a4-95a0-886745a8ef05
CSeq: 41212 INVITE
Server: FPBX-16.0.19(19.3.0)
Contact: <sip:192.168.0.32:8088;transport=ws>
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length:  1815

v=0
o=- 2200694520 2 IN IP4 192.168.0.32
s=Asterisk
c=IN IP4 192.168.0.32
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0 1
m=audio 12800 UDP/TLS/RTP/SAVPF 0 8 109 101
a=connection:new
a=setup:active
a=fingerprint:SHA-256 ED:2E:70:EB:EE:1E:73:0F:B4:74:EE:6A:7E:F8:E7:04:A1:72:FB:4A:AF:FD:3F:01:EA:93:C8:66:F9:7C:ED:C4
a=ice-ufrag:62453666145a496f3995f3cc2b300cb1
a=ice-pwd:77e20fea1e1d363f39027ce166700de5
a=candidate:Hc0a80020 1 UDP 2130706431 192.168.0.32 12800 typ host
a=candidate:H68935337 1 UDP 2130706431 fe80::a00:27ff:fed8:9e35 12800 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:109 opus/48000/2
a=fmtp:109 useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:449538537 cname:12f93d89-1cae-429f-b4e5-b6a4a400985c
a=msid:6cf8ed6f-040f-4ca6-8fb3-0f6635713e71 ed38c27e-83da-48d8-a74e-6803338e3744
a=rtcp-fb:* transport-cc
a=mid:0
m=video 12800 UDP/TLS/RTP/SAVPF 120 126
a=connection:new
a=setup:active
a=fingerprint:SHA-256 ED:2E:70:EB:EE:1E:73:0F:B4:74:EE:6A:7E:F8:E7:04:A1:72:FB:4A:AF:FD:3F:01:EA:93:C8:66:F9:7C:ED:C4
a=ice-ufrag:62453666145a496f3995f3cc2b300cb1
a=ice-pwd:77e20fea1e1d363f39027ce166700de5
a=rtpmap:120 VP8/90000
a=fmtp:120 max-fr=60;max-fs=12288
a=rtpmap:126 H264/90000
a=fmtp:126 packetization-mode=1;level-asymmetry-allowed=1;profile-level-id=42E01F
a=sendonly
a=rtcp-mux
a=ssrc:408709574 cname:cfdddc70-7e96-4dba-bc30-05bfbf50254c
a=msid:0029b939-968e-47fb-a936-d824293b19d4 c7ed8872-bcf5-4c9e-bc7d-e62fb5337aff
a=rtcp-fb:* transport-cc
a=rtcp-fb:* ccm fir
a=rtcp-fb:* goog-remb
a=rtcp-fb:* nack
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=mid:1

    -- Channel PJSIP/axis_local-00000002 joined 'simple_bridge' basic-bridge <48e5573f-72d6-4813-b1f7-ee34b8d29eea>
    -- Channel PJSIP/Use2-00000001 joined 'simple_bridge' basic-bridge <48e5573f-72d6-4813-b1f7-ee34b8d29eea>
<--- Received SIP request (859 bytes) from WS:192.168.0.12:56006 --->
ACK sip:192.168.0.32:8088;transport=ws SIP/2.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKeGTTxaV6NrIlHTPbJPwx;rport
From: <sip:Use2@192.168.0.32>;tag=HdlhPIb1Xolt2OKUZ4T0
To: <sip:axis_local@192.168.0.32>;tag=40be3df8-079d-41a4-95a0-886745a8ef05
Contact: <sip:Use2@df7jal23ls0d.invalid;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: f22ed818-7723-9b21-d0c5-0db91d3dcc07
CSeq: 41212 ACK
Content-Length: 0
Max-Forwards: 70
Authorization: Digest username="Use2",realm="asterisk",nonce="1659713521/d0436910f001162ebf21acded6cb120d",uri="sip:192.168.0.32:8088;transport=ws",response="8cdf6e83993244aef82dca7763bff251",algorithm=MD5,cnonce="02e435067fd313ad0fc28f462e2b0ff4",opaque="0aac51727dec9198",qop=auth,nc=00000002
User-Agent: IM-client/OMA1.0 sipML5-v1.2016.03.04
Organization: Doubango Telecom


       > 0x7fbc680ea1d0 -- Strict RTP learning after remote address set to: 192.168.0.12:35552
       > 0x7fbc68011620 -- Strict RTP learning after ICE completion
       > 0x7fbc680ea1d0 -- Strict RTP learning after remote address set to: 192.168.0.12:35552
       > 0x7fbc68011620 -- Strict RTP learning after remote address set to: 192.168.0.12:35552
       > 0x7fbc68106550 -- Strict RTP switching to RTP target address 192.168.0.26:4002 as source
<--- Transmitting SIP request (657 bytes) to UDP:192.168.0.26:5060 --->
INFO sip:axis_local@192.168.0.26:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.32:5060;rport;branch=z9hG4bKPj9c0a619d-1d37-4845-bba5-5eca03f2842e
From: <sip:Use2@192.168.0.32>;tag=3c1607fd-8c8b-4884-a8b4-df18e0c6dec3
To: <sip:axis_local@192.168.0.26;ob>;tag=rAEjPIQb9SlAFZtdaGrx65OOJuZujWB9
Call-ID: 2d65b736-3ad4-4c69-a976-50d52829a164
CSeq: 12837 INFO
Max-Forwards: 70
User-Agent: FPBX-16.0.19(19.3.0)
Content-Type: application/media_control+xml
Content-Length:   178

<?xml version="1.0" encoding="utf-8" ?>
 <media_control>
  <vc_primitive>
   <to_encoder>
    <picture_fast_update/>
   </to_encoder>
  </vc_primitive>
 </media_control>

<--- Received SIP response (372 bytes) from UDP:192.168.0.26:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.32:5060;rport=5060;received=192.168.0.32;branch=z9hG4bKPj9c0a619d-1d37-4845-bba5-5eca03f2842e
Call-ID: 2d65b736-3ad4-4c69-a976-50d52829a164
From: <sip:Use2@192.168.0.32>;tag=3c1607fd-8c8b-4884-a8b4-df18e0c6dec3
To: <sip:axis_local@192.168.0.26;ob>;tag=rAEjPIQb9SlAFZtdaGrx65OOJuZujWB9
CSeq: 12837 INFO
Content-Length:  0


<--- Received SIP response (372 bytes) from UDP:192.168.0.26:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.32:5060;rport=5060;received=192.168.0.32;branch=z9hG4bKPj9c0a619d-1d37-4845-bba5-5eca03f2842e
Call-ID: 2d65b736-3ad4-4c69-a976-50d52829a164
From: <sip:Use2@192.168.0.32>;tag=3c1607fd-8c8b-4884-a8b4-df18e0c6dec3
To: <sip:axis_local@192.168.0.26;ob>;tag=rAEjPIQb9SlAFZtdaGrx65OOJuZujWB9
CSeq: 12837 INFO
Content-Length:  0


       > 0x7fbc68011620 -- Strict RTP switching to RTP target address 192.168.0.12:35552 as source
       > 0x7fbc680feed0 -- Strict RTP switching to RTP target address 192.168.0.26:4000 as source
<--- Transmitting SIP request (657 bytes) to UDP:192.168.0.26:5060 --->
INFO sip:axis_local@192.168.0.26:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.32:5060;rport;branch=z9hG4bKPj0d0fd794-37bb-4ba9-b0be-2f0bd04114c1
From: <sip:Use2@192.168.0.32>;tag=3c1607fd-8c8b-4884-a8b4-df18e0c6dec3
To: <sip:axis_local@192.168.0.26;ob>;tag=rAEjPIQb9SlAFZtdaGrx65OOJuZujWB9
Call-ID: 2d65b736-3ad4-4c69-a976-50d52829a164
CSeq: 12838 INFO
Max-Forwards: 70
User-Agent: FPBX-16.0.19(19.3.0)
Content-Type: application/media_control+xml
Content-Length:   178

<?xml version="1.0" encoding="utf-8" ?>
 <media_control>
  <vc_primitive>
   <to_encoder>
    <picture_fast_update/>
   </to_encoder>
  </vc_primitive>
 </media_control>

<--- Received SIP response (372 bytes) from UDP:192.168.0.26:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.32:5060;rport=5060;received=192.168.0.32;branch=z9hG4bKPj0d0fd794-37bb-4ba9-b0be-2f0bd04114c1
Call-ID: 2d65b736-3ad4-4c69-a976-50d52829a164
From: <sip:Use2@192.168.0.32>;tag=3c1607fd-8c8b-4884-a8b4-df18e0c6dec3
To: <sip:axis_local@192.168.0.26;ob>;tag=rAEjPIQb9SlAFZtdaGrx65OOJuZujWB9
CSeq: 12838 INFO
Content-Length:  0

Is there any way of installing that latest release without having to build it from code?

I see you already installed a different version, but for your reference:

You could apply the patch(es) for those issues manually to your system and then recompile. That’s probably the quickest and easiest way, though it might fail if the divergence is too large.

In general, Asterisk should be compiled from source so that is the best way to install it. If you want to use FreePBX, it is possible to manually install the FreePBX GUI on top of the latest version of Asterisk. There are instructions to do this somewhere on their wiki, I think. PhreakScript[1] also supports it with the --freepbx flag*.

Taking into account that it’s not included in the latest FreePBX distro

(If you are not willing or able to install from source, then you are at the mercy of those project maintainers and when they choose to release bundled packages/distros or whatever their release format is. These often lag many versions behind Asterisk. You also can’t apply your own build modifications.)

*All that said, I don’t use FreePBX and have never recommended that anybody use it.

[1] GitHub - InterLinked1/phreakscript: A utility to automate the installation, maintenance, and debugging of Asterisk/DAHDI, while integrating additional patches to provide the richest telephony experience

1 Like

I actually meant 19, but wrote down 16. Basically the latest version of the respective branch. As for audio, you’d want to eliminate video initially and confirm audio flows without it first. Generally the issues I’ve seen have all been client side in regards to audio issues with WebRTC.

Okay, so I’ll try to build it myself. I only was using FreePBX to save some time.
Thanks for all the information and the link! I really appreciate it

Yes, that’s the problem. If I perform a call with bi-directional video, everything works perfectly, video and audio. If I perform a voice-only call, it works too. It’s only when the video is uni-directional that the caller (which doesn’t send video) can’t receive audio.
Both devices are on the same local network and I’m not using any ice server, so I don’t really know what could be causing the problem.

Examine the RTP traffic to ensure it is flowing. If it is, then it would most likely be an issue on the WebRTC client side.

Taking a look at some wireshark traces I can see that there is audio in both direction between Asterisk and the callee, and video in only one direction. However, when the caller (the webrtc client) opens the remote stream, that webrtc stream doesn’t include audio (altough both sdp headers specify bidirectional audio). It just has a video track.
I have tried with multiple SIP WebRTC clients, and it happens on all of them. I would say this is a bug on how asterisk is handling WebRTC, but don’t really know what other steps I could use to confirm it.

What does “that webrtc stream doesn’t include audio” mean? To provide some information on how it works - there are multiple streams, all bundled together over the same ICE IP/port.

Ultimately for something like this it requires a deep dive on both the browser and likely Asterisk. I will say I’ve also encountered weird behavior in the browser in the past adding/removing/changing streams within the browser itself, and have talked to others who experienced the same.

Okay, I think I used the wrong terms. On the caller WebRTC session, there is only a remote video stream, and there are no audio streams.
Finally, using a special flag to disable srtp on webrtc and capturing the traffic I can see that the audio is clearly flowing between asterisk and the WebRTC client of the caller in both directions, so I assume it must be a problem on the WebRTC side. However, I can’t manage to found the problem. As you mentioned that you have found weird behavious, what tools or practices would you recomment to debug this problem? I’m a bit lost
Thanks a lot!

I don’t know current recommendations for the browser side of things I’m afraid. That’s a whole different world.

I’ve finally manage to solve it. Just in case it helps somebody on the future:
The problem was that the used library expected all the tracks to be on the same WebRTC MediaStream. However, in this specific case there were two different streams, one for audio and one for video. Once a new MediaStream is created to join both tracks, the problem was solved.

Thanks a lot for all your help!