Cyber mega phone 2K: no video stream for the echo conference

Hi,

I try to use native webrtc + pjsip through websocket to build a native client equal to the cyber mega phone 2K, now there’s no video appears but only audio, I think I have some mistake but I dont know what’s the root cause, following is the log from the asterisk console:

<— Received SIP request (3933 bytes) from WSS:46.101.0.44:55136 —>
INVITE sip:echo@rtc.hfmtx.com SIP/2.0
Via: SIP/2.0/WSS rtc.hfmtx.com;branch=z9hG4bKnashds8
Max-Forwards: 69
To: sip:echo@rtc.hfmtx.com
From: sip:6001@rtc.hfmtx.com;tag=isATag
Call-ID: 12345678901234567890@bar
CSeq: 5766 INVITE
Contact: sip:6001@rtc.hfmtx.com;expires=360
Content-Type: application/sdp
Content-Length: 3592

v=0
o=- 7800357880942217536 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS stream_id
m=audio 54916 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 46.101.0.44
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:1281016865 1 udp 1686052607 46.101.0.44 54916 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-id 1
a=ice-ufrag:A0ge
a=ice-pwd:JCcT3+0D2gd+iSWIHSREXoDt
a=ice-options:trickle
a=fingerprint:sha-256 77:14:30:A1:52:8D:6B:5B:CF:63:00:44:3F:CB:A5:28:F7:61:96:FD:A7:C1:E4:E0:AB:26:CF:F8:1B:1F:A7:78
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:438857074 cname:APgFB7CElKCpnMDU
a=ssrc:438857074 msid:stream_id audio_label
a=ssrc:438857074 mslabel:stream_id
a=ssrc:438857074 label:audio_label
m=video 54918 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 127 123 125 122 124
c=IN IP4 46.101.0.44
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:1281016865 1 udp 1686052607 46.101.0.44 54918 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-id 1
a=ice-ufrag:A0ge
a=ice-pwd:JCcT3+0D2gd+iSWIHSREXoDt
a=ice-options:trickle
a=fingerprint:sha-256 77:14:30:A1:52:8D:6B:5B:CF:63:00:44:3F:CB:A5:28:F7:61:96:FD:A7:C1:E4:E0:AB:26:CF:F8:1B:1F:A7:78
a=setup:actpass
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 urn:3gpp:video-orientation
a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 H264/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:123 rtx/90000
a=fmtp:123 apt=127
a=rtpmap:125 red/90000
a=rtpmap:122 rtx/90000
a=fmtp:122 apt=125
a=rtpmap:124 ulpfec/90000
a=ssrc-group:FID 721575048 1557303849
a=ssrc:721575048 cname:APgFB7CElKCpnMDU
a=ssrc:721575048 msid:stream_id video_label
a=ssrc:721575048 mslabel:stream_id
a=ssrc:721575048 label:video_label
a=ssrc:1557303849 cname:APgFB7CElKCpnMDU
a=ssrc:1557303849 msid:stream_id video_label
a=ssrc:1557303849 mslabel:stream_id
a=ssrc:1557303849 label:video_label

== Setting global variable ‘SIPDOMAIN’ to ‘rtc.hfmtx.com
<— Transmitting SIP response (285 bytes) to WSS:46.101.0.44:55136 —>
SIP/2.0 100 Trying
Via: SIP/2.0/WSS rtc.hfmtx.com;rport=55136;received=46.101.0.44;branch=z9hG4bKnashds8
Call-ID: 12345678901234567890@bar
From: sip:6001@rtc.hfmtx.com;tag=isATag
To: sip:echo@rtc.hfmtx.com
CSeq: 5766 INVITE
Server: Asterisk PBX 15.5.0
Content-Length: 0

== DTLS ECDH initialized (automatic), faster PFS enabled
[Oct 7 21:30:36] ERROR[4072]: res_pjsip_sdp_rtp.c:1501 create_outgoing_sdp_stream: -------------------------------------------> create outgoing sdp
[Oct 7 21:30:36] ERROR[4072]: res_pjsip_sdp_rtp.c:1624 create_outgoing_sdp_stream: The host ip is 47.99.81.32 direct media enable: 0
[Oct 7 21:30:36] ERROR[4072]: res_pjsip_sdp_rtp.c:1501 create_outgoing_sdp_stream: -------------------------------------------> create outgoing sdp
– Executing [echo@default:1] Answer(“PJSIP/6001-0000004e”, “”) in new stack
> 0x7f364c150130 – Strict RTP learning after remote address set to: 46.101.0.44:54916
> 0x7f364c0f1aa0 – Strict RTP learning after remote address set to: 46.101.0.44:54916
<— Transmitting SIP response (2005 bytes) to WSS:46.101.0.44:55136 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS rtc.hfmtx.com;rport=55136;received=46.101.0.44;branch=z9hG4bKnashds8
Call-ID: 12345678901234567890@bar
From: sip:6001@rtc.hfmtx.com;tag=isATag
To: sip:echo@rtc.hfmtx.com;tag=50b4bdbf-7e6d-4e96-8a40-c4c1aebbc2bd
CSeq: 5766 INVITE
Server: Asterisk PBX 15.5.0
Contact: sip:172.16.188.33:8089;transport=ws
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 1442

v=0
o=- 645581120 4 IN IP4 47.99.81.32
s=Asterisk
c=IN IP4 47.99.81.32
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE audio video
m=audio 15828 UDP/TLS/RTP/SAVPF 0 126
a=connection:new
a=setup:active
a=fingerprint:SHA-256 4A:34:58:49:5C:F6:0A:21:C1:3A:AB:7D:91:D7:8A:8B:D6:30:E4:C4:38:FF:81:57:60:19:62:D3:B5:D7:89:68
a=ice-ufrag:31471ea55d28522155b85f745c3368b6
a=ice-pwd:40c5527736e9e46f7a93678b6a0dc5d1
a=candidate:Hac10bc21 1 UDP 2130706431 47.99.81.32 15828 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=rtcp-mux
a=ssrc:726310233 cname:e8168dd1-4224-4487-8612-1bb4e0f9f28c
a=msid:35084189-1b73-4594-b8c2-161243d99934 d4f26fce-4584-4a18-9bf4-c6f7a03196c9
a=mid:audio
m=video 15828 UDP/TLS/RTP/SAVPF 100
a=connection:new
a=setup:active
a=fingerprint:SHA-256 4A:34:58:49:5C:F6:0A:21:C1:3A:AB:7D:91:D7:8A:8B:D6:30:E4:C4:38:FF:81:57:60:19:62:D3:B5:D7:89:68
a=ice-ufrag:31471ea55d28522155b85f745c3368b6
a=ice-pwd:40c5527736e9e46f7a93678b6a0dc5d1
a=rtpmap:100 H264/90000
a=fmtp:100 packetization-mode=1;level-asymmetry-allowed=1
a=sendrecv
a=rtcp-mux
a=ssrc:1232986800 cname:2825f4ce-d85c-45e5-92e0-8207b47d9210
a=msid:35084189-1b73-4594-b8c2-161243d99934 9c1728ec-aff5-401b-973e-8f6992c1d1fc
a=rtcp-fb:* ccm fir
a=rtcp-fb:* goog-remb
a=rtcp-fb:* nack
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=mid:video

<— Transmitting SIP response (2005 bytes) to WSS:46.101.0.44:55136 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS rtc.hfmtx.com;rport=55136;received=46.101.0.44;branch=z9hG4bKnashds8
Call-ID: 12345678901234567890@bar
From: sip:6001@rtc.hfmtx.com;tag=isATag
To: sip:echo@rtc.hfmtx.com;tag=50b4bdbf-7e6d-4e96-8a40-c4c1aebbc2bd
CSeq: 5766 INVITE
Server: Asterisk PBX 15.5.0
Contact: sip:172.16.188.33:8089;transport=ws
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 1442

v=0
o=- 645581120 4 IN IP4 47.99.81.32
s=Asterisk
c=IN IP4 47.99.81.32
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE audio video
m=audio 15828 UDP/TLS/RTP/SAVPF 0 126
a=connection:new
a=setup:active
a=fingerprint:SHA-256 4A:34:58:49:5C:F6:0A:21:C1:3A:AB:7D:91:D7:8A:8B:D6:30:E4:C4:38:FF:81:57:60:19:62:D3:B5:D7:89:68
a=ice-ufrag:31471ea55d28522155b85f745c3368b6
a=ice-pwd:40c5527736e9e46f7a93678b6a0dc5d1
a=candidate:Hac10bc21 1 UDP 2130706431 47.99.81.32 15828 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=rtcp-mux
a=ssrc:726310233 cname:e8168dd1-4224-4487-8612-1bb4e0f9f28c
a=msid:35084189-1b73-4594-b8c2-161243d99934 d4f26fce-4584-4a18-9bf4-c6f7a03196c9
a=mid:audio
m=video 15828 UDP/TLS/RTP/SAVPF 100
a=connection:new
a=setup:active
a=fingerprint:SHA-256 4A:34:58:49:5C:F6:0A:21:C1:3A:AB:7D:91:D7:8A:8B:D6:30:E4:C4:38:FF:81:57:60:19:62:D3:B5:D7:89:68
a=ice-ufrag:31471ea55d28522155b85f745c3368b6
a=ice-pwd:40c5527736e9e46f7a93678b6a0dc5d1
a=rtpmap:100 H264/90000
a=fmtp:100 packetization-mode=1;level-asymmetry-allowed=1
a=sendrecv
a=rtcp-mux
a=ssrc:1232986800 cname:2825f4ce-d85c-45e5-92e0-8207b47d9210
a=msid:35084189-1b73-4594-b8c2-161243d99934 9c1728ec-aff5-401b-973e-8f6992c1d1fc
a=rtcp-fb:* ccm fir
a=rtcp-fb:* goog-remb
a=rtcp-fb:* nack
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=mid:video

-- Executing [echo@default:2] StreamEcho("PJSIP/6001-0000004e", "2") in new stack

<— Received SIP request (283 bytes) from WSS:46.101.0.44:55136 —>
ACK sip:echo@rtc.hfmtx.com SIP/2.0
Via: SIP/2.0/WSS rtc.hfmtx.com;rport;branch=z9hG4bKnashds8
Call-ID: 12345678901234567890@bar
From: sip:6001@rtc.hfmtx.com;tag=isATag
To: sip:echo@rtc.hfmtx.com;tag=50b4bdbf-7e6d-4e96-8a40-c4c1aebbc2bd
CSeq: 5766 ACK
Content-Length: 0

[Oct 7 21:30:36] ERROR[4072]: res_pjsip_sdp_rtp.c:1501 create_outgoing_sdp_stream: -------------------------------------------> create outgoing sdp
[Oct 7 21:30:36] ERROR[4072]: res_pjsip_sdp_rtp.c:1624 create_outgoing_sdp_stream: The host ip is 47.99.81.32 direct media enable: 0
[Oct 7 21:30:36] ERROR[4072]: res_pjsip_sdp_rtp.c:1501 create_outgoing_sdp_stream: -------------------------------------------> create outgoing sdp
[Oct 7 21:30:36] ERROR[4072]: res_pjsip_sdp_rtp.c:1501 create_outgoing_sdp_stream: -------------------------------------------> create outgoing sdp
<— Transmitting SIP request (2808 bytes) to WSS:46.101.0.44:55136 —>
INVITE sip:6001@46.101.0.44:55136;transport=ws SIP/2.0
Via: SIP/2.0/WSS 172.16.188.33:8089;rport;branch=z9hG4bKPjca8d0b20-cfec-4f78-9728-167bd2967753;alias
From: sip:echo@rtc.hfmtx.com;tag=50b4bdbf-7e6d-4e96-8a40-c4c1aebbc2bd
To: sip:6001@rtc.hfmtx.com;tag=isATag
Contact: sip:172.16.188.33:8089;transport=ws
Call-ID: 12345678901234567890@bar
CSeq: 26561 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
Max-Forwards: 70
User-Agent: Asterisk PBX 15.5.0
Content-Type: application/sdp
Content-Length: 2132

v=0
o=- 645581120 5 IN IP4 47.99.81.32
s=Asterisk
c=IN IP4 47.99.81.32
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE audio video video-2
m=audio 15828 UDP/TLS/RTP/SAVPF 0 126
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 4A:34:58:49:5C:F6:0A:21:C1:3A:AB:7D:91:D7:8A:8B:D6:30:E4:C4:38:FF:81:57:60:19:62:D3:B5:D7:89:68
a=ice-ufrag:31471ea55d28522155b85f745c3368b6
a=ice-pwd:40c5527736e9e46f7a93678b6a0dc5d1
a=candidate:Hac10bc21 1 UDP 2130706431 47.99.81.32 15828 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=rtcp-mux
a=ssrc:726310233 cname:e8168dd1-4224-4487-8612-1bb4e0f9f28c
a=msid:35084189-1b73-4594-b8c2-161243d99934 d4f26fce-4584-4a18-9bf4-c6f7a03196c9
a=mid:audio
m=video 15828 UDP/TLS/RTP/SAVPF 100
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 4A:34:58:49:5C:F6:0A:21:C1:3A:AB:7D:91:D7:8A:8B:D6:30:E4:C4:38:FF:81:57:60:19:62:D3:B5:D7:89:68
a=ice-ufrag:31471ea55d28522155b85f745c3368b6
a=ice-pwd:40c5527736e9e46f7a93678b6a0dc5d1
a=rtpmap:100 H264/90000
a=fmtp:100 packetization-mode=1;level-asymmetry-allowed=1
a=sendrecv
a=rtcp-mux
a=ssrc:1232986800 cname:2825f4ce-d85c-45e5-92e0-8207b47d9210
a=msid:35084189-1b73-4594-b8c2-161243d99934 9c1728ec-aff5-401b-973e-8f6992c1d1fc
a=rtcp-fb:* ccm fir
a=rtcp-fb:* goog-remb
a=rtcp-fb:* nack
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=mid:video
m=video 15828 UDP/TLS/RTP/SAVPF 100
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 4A:34:58:49:5C:F6:0A:21:C1:3A:AB:7D:91:D7:8A:8B:D6:30:E4:C4:38:FF:81:57:60:19:62:D3:B5:D7:89:68
a=ice-ufrag:31471ea55d28522155b85f745c3368b6
a=ice-pwd:40c5527736e9e46f7a93678b6a0dc5d1
a=rtpmap:100 H264/90000
a=fmtp:100 packetization-mode=1;level-asymmetry-allowed=1
a=sendrecv
a=rtcp-mux
a=ssrc:151739718 cname:fc7d96a3-3ea9-4aeb-966d-db4a2a1eff59
a=msid:04506d75-52f8-44c9-ae57-ae086c16eefa 9c1728ec-aff5-401b-973e-8f6992c1d1fc
a=rtcp-fb:* ccm fir
a=rtcp-fb:* goog-remb
a=rtcp-fb:* nack
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=mid:video-2

<— Received SIP request (283 bytes) from WSS:46.101.0.44:55136 —>
ACK sip:echo@rtc.hfmtx.com SIP/2.0
Via: SIP/2.0/WSS rtc.hfmtx.com;rport;branch=z9hG4bKnashds8
Call-ID: 12345678901234567890@bar
From: sip:6001@rtc.hfmtx.com;tag=isATag
To: sip:echo@rtc.hfmtx.com;tag=50b4bdbf-7e6d-4e96-8a40-c4c1aebbc2bd
CSeq: 5766 ACK
Content-Length: 0

   > 0x7f364c150130 -- Strict RTP learning after remote address set to: 46.101.0.44:1024
   > 0x7f364c0f1aa0 -- Strict RTP learning after ICE completion

<— Received SIP response (2763 bytes) from WSS:46.101.0.44:55136 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS 172.16.188.33:8089;rport;branch=z9hG4bKPjca8d0b20-cfec-4f78-9728-167bd2967753;alias
From: sip:echo@rtc.hfmtx.com;tag=50b4bdbf-7e6d-4e96-8a40-c4c1aebbc2bd
To: sip:6001@rtc.hfmtx.com;tag=isATag
Call-ID: 12345678901234567890@bar
CSeq: 26561 INVITE
Content-Type: application/sdp
Content-Length: 2420

v=0
o=- 7800357880942217536 3 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS stream_id
m=audio 54916 UDP/TLS/RTP/SAVPF 0 126
c=IN IP4 46.101.0.44
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:1281016865 1 udp 1686052607 46.101.0.44 54916 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-id 1
a=ice-ufrag:A0ge
a=ice-pwd:JCcT3+0D2gd+iSWIHSREXoDt
a=ice-options:trickle
a=fingerprint:sha-256 77:14:30:A1:52:8D:6B:5B:CF:63:00:44:3F:CB:A5:28:F7:61:96:FD:A7:C1:E4:E0:AB:26:CF:F8:1B:1F:A7:78
a=setup:passive
a=mid:audio
a=sendrecv
a=rtcp-mux
a=rtpmap:0 PCMU/8000
a=rtpmap:126 telephone-event/8000
a=ssrc:438857074 cname:APgFB7CElKCpnMDU
a=ssrc:438857074 msid:stream_id audio_label
a=ssrc:438857074 mslabel:stream_id
a=ssrc:438857074 label:audio_label
m=video 54918 UDP/TLS/RTP/SAVPF 100
c=IN IP4 46.101.0.44
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:1281016865 1 udp 1686052607 46.101.0.44 54918 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-id 1
a=ice-ufrag:A0ge
a=ice-pwd:JCcT3+0D2gd+iSWIHSREXoDt
a=ice-options:trickle
a=fingerprint:sha-256 77:14:30:A1:52:8D:6B:5B:CF:63:00:44:3F:CB:A5:28:F7:61:96:FD:A7:C1:E4:E0:AB:26:CF:F8:1B:1F:A7:78
a=setup:passive
a=mid:video
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendrecv
a=rtcp-mux
a=rtpmap:100 H264/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=ssrc-group:FID 721575048 1557303849
a=ssrc:721575048 cname:APgFB7CElKCpnMDU
a=ssrc:721575048 msid:stream_id video_label
a=ssrc:721575048 mslabel:stream_id
a=ssrc:721575048 label:video_label
a=ssrc:1557303849 cname:APgFB7CElKCpnMDU
a=ssrc:1557303849 msid:stream_id video_label
a=ssrc:1557303849 mslabel:stream_id
a=ssrc:1557303849 label:video_label
m=video 0 UDP/TLS/RTP/SAVPF 100
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:we1l
a=ice-pwd:qIoa6CD8lZ0USDaKv9mlI7RG
a=ice-options:trickle
a=fingerprint:sha-256 77:14:30:A1:52:8D:6B:5B:CF:63:00:44:3F:CB:A5:28:F7:61:96:FD:A7:C1:E4:E0:AB:26:CF:F8:1B:1F:A7:78
a=setup:active
a=mid:video-2
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=inactive
a=rtcp-mux
a=rtpmap:100 H264/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f

   > 0x7f364c150130 -- Strict RTP learning after remote address set to: 46.101.0.44:54916
   > 0x7f364c0f1aa0 -- Strict RTP learning after remote address set to: 46.101.0.44:54916

== DTLS ECDH initialized (automatic), faster PFS enabled
> 0x7f364c13cf00 – Strict RTP learning after remote address set to: 0.0.0.0:0
<— Transmitting SIP request (394 bytes) to WSS:46.101.0.44:55136 —>
ACK sip:6001@46.101.0.44:55136;transport=ws SIP/2.0
Via: SIP/2.0/WSS 172.16.188.33:8089;rport;branch=z9hG4bKPjf53aca3e-9eda-45a6-aea4-95665169925a;alias
From: sip:echo@rtc.hfmtx.com;tag=50b4bdbf-7e6d-4e96-8a40-c4c1aebbc2bd
To: sip:6001@rtc.hfmtx.com;tag=isATag
Call-ID: 12345678901234567890@bar
CSeq: 26561 ACK
Max-Forwards: 70
User-Agent: Asterisk PBX 15.5.0
Content-Length: 0

   > 0x7f364c0f1aa0 -- Strict RTP qualifying stream type: audio
   > 0x7f364c0f1aa0 -- Strict RTP switching source address to 46.101.0.44:1024
   > 0x7f364c0f1aa0 -- Strict RTP learning complete - Locking on source address 46.101.0.44:1024

i

Your browser appears to have rejected the additional video stream. I’d suggest focusing on that side instead.

Yes, client tells me that the video was rejected:

(channel.cc:986): Setting remote video description
(webrtcvideoengine.cc:753): SetSendParameters: {codecs: [VideoCodec[100:H264]], conference_mode: no, extensions: [{uri: http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time, id: 3}], max_bandwidth_bps: -1, mid: video}
(video_send_stream.cc:126): VideoSendStream::UpdateActiveSimulcastLayers
(video_send_stream_impl.cc:509): VideoSendStream::UpdateActiveSimulcastLayers
(channel.cc:922): Changing video state, send=1
(peerconnection.cc:4762): Non-rejected SCTP m= section is needed to get the SSL Role of the SCTP transport.
(mediasession.cc:2225): Video m= section ‘video-2’ being rejected in answer.

Hi,

I check the answer sdp created from the client side, should the “a=candidate” line behind the “m=video” cause the video not work?

I checked the network traffic and only the audio stream send from the asterisk server to the client.

o=- 435048541239183565 3 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1 video-2
a=msid-semantic: WMS stream_id
m=audio 15378 UDP/TLS/RTP/SAVPF 0 126
c=IN IP4 114.102.184.250
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:1511920713 1 udp 2122260223 192.168.0.2 51039 typ host generation 0 network-id 1
a=candidate:4081163164 1 udp 1686052607 114.102.184.250 15378 typ srflx raddr 192.168.0.2 rport 51039 generation 0 network-id 1
a=ice-ufrag:8Ze0
a=ice-pwd:LTmBj8PFcNTjJMKJgnSw/zkf
a=ice-options:trickle
a=fingerprint:sha-256 03:F3:00:01:51:FA:8A:F6:BF:E4:CE:79:E0:07:46:FC:C4:4D:A0:A5:51:C5:41:1B:3B:CB:33:3B:1C:C4:29:B6
a=setup:passive
a=mid:0
a=sendrecv
a=msid:stream_id audio_label
a=rtcp-mux
a=rtpmap:0 PCMU/8000
a=rtpmap:126 telephone-event/8000
a=ssrc:18438222 cname:szvQyFSshUCWcIOV
m=video 15379 UDP/TLS/RTP/SAVPF 100
c=IN IP4 114.102.184.250
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:1511920713 1 udp 2122260223 192.168.0.2 51040 typ host generation 0 network-id 1
a=candidate:4081163164 1 udp 1686052607 114.102.184.250 15379 typ srflx raddr 192.168.0.2 rport 51040 generation 0 network-id 1
a=ice-ufrag:8Ze0
a=ice-pwd:LTmBj8PFcNTjJMKJgnSw/zkf
a=ice-options:trickle
a=fingerprint:sha-256 03:F3:00:01:51:FA:8A:F6:BF:E4:CE:79:E0:07:46:FC:C4:4D:A0:A5:51:C5:41:1B:3B:CB:33:3B:1C:C4:29:B6
a=setup:passive
a=mid:1
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendrecv
a=msid:stream_id video_label
a=rtcp-mux
a=rtpmap:100 H264/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=ssrc-group:FID 2110870254 2983450195
a=ssrc:2110870254 cname:szvQyFSshUCWcIOV
a=ssrc:2983450195 cname:szvQyFSshUCWcIOV
m=video 9 UDP/TLS/RTP/SAVPF 100
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:8Ze0
a=ice-pwd:LTmBj8PFcNTjJMKJgnSw/zkf
a=ice-options:trickle
a=fingerprint:sha-256 03:F3:00:01:51:FA:8A:F6:BF:E4:CE:79:E0:07:46:FC:C4:4D:A0:A5:51:C5:41:1B:3B:CB:33:3B:1C:C4:29:B6
a=setup:passive
a=mid:video-2
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=recvonly
a=rtcp-mux
a=rtpmap:100 H264/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f

You responded on a Saturday when I don’t normally work, and there is no guarantee on any response time or if you will receive a response. It’s also impolite to tag someone like that. If I have anything to add to something on here then I’ll post.

Forgive my roudeness and thanks for your response.

I found that you are almost the most active one to answer the question and I was suffered from the issue for a long time. Sorry for it again.

Sincerely
Xiemin

I found the root cause of the ‘a=ssrc-group’ cause the asterisk to reject to send the video stream.
After I remove the ssrc-group from the client side then it works fine. Thanks for your help again.