Asterisk 16.11 StreamEcho()

Hi all,

When using StreamEcho(6) I’m getting back just 1 stream and a bunch of inactive streams, here’s the streams from the channel, note the additional streams are of State “inactive” and Group “-1”.

Shouldn’t StreamEcho(6) be giving me 6 active streams? :: confused ::

Any insight appreciated!

Name: audio
    Type: audio
    State: sendrecv
    Group: 0
    Formats: (opus|g722|ulaw)
    Metadata:
        MSID:LABEL: a8538e2d-2015-4855-9262-afd1c7de47f7
Name: video
    Type: video
    State: sendrecv
    Group: 0
    Formats: (vp8)
    Metadata:
        MSID:LABEL: bae7ea5b-cf92-43d6-b515-4778c4e5f0df
Name: video
    Type: video
    State: inactive
    Group: -1
    Formats: (vp8)
    Metadata:
        MSID:LABEL: 2b20a563-43d5-4e91-8e54-50b76397a2be
Name: video
    Type: video
    State: inactive
    Group: -1
    Formats: (vp8)
    Metadata:
        MSID:LABEL: 14e8628d-2c09-4c99-86d0-1f9dbce1fef3
Name: video
    Type: video
    State: inactive
    Group: -1
    Formats: (vp8)
    Metadata:
        MSID:LABEL: a03b282e-1d2e-43cb-a97a-ec0ffc8dcd0f
Name: video
    Type: video
    State: inactive
    Group: -1
    Formats: (vp8)
    Metadata:
        MSID:LABEL: c8079172-0d13-4b2e-810e-169960124fa5
Name: video
    Type: video
    State: inactive
    Group: -1
    Formats: (vp8)
    Metadata:
        MSID:LABEL: 6d47d02a-969f-444a-b9c1-6fb5caa7873f

You’d need to provide the full SDP negotiation, because ultimately it’s up to what the other side allows when a re-negotiation occurs.

Okay, this is helpful. I’m using JsSIP 3.5, going to dig in to the packets and report back. Thanks!

Just as a datapoint (still digging) but the same thing happens in the CMP2K demo when run against Asterisk 16.11 using Chrome or Firefox.

I wanted so bad to figure this one out on my own, but the issue escapes me.

Here’s the SDP’s, thanks for any insight, as always, very much appreciated.

v=0
o=mozilla...THIS_IS_SDPARTA-78.0 3704053488133090975 0 IN IP4 0.0.0.0
s=-
t=0 0
a=sendrecv
a=fingerprint:sha-256 60:58:96:7F:F1:61:3B:F0:C1:E1:77:38:3D:AC:5C:1A:A7:AE:9B:23:AF:C1:22:00:59:90:82:70:52:5F:90:B3
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 58565 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 192.168.1.127
a=candidate:0 1 UDP 2122252543 192.168.1.127 58565 typ host
a=candidate:1 1 UDP 2122187007 192.168.96.1 65060 typ host
a=candidate:2 1 UDP 2122121471 192.168.200.1 51716 typ host
a=candidate:3 1 TCP 2105524479 192.168.1.127 9 typ host tcptype active
a=candidate:4 1 TCP 2105458943 192.168.96.1 9 typ host tcptype active
a=candidate:5 1 TCP 2105393407 192.168.200.1 9 typ host tcptype active
a=candidate:0 2 UDP 2122252542 192.168.1.127 55552 typ host
a=candidate:1 2 UDP 2122187006 192.168.96.1 60228 typ host
a=candidate:2 2 UDP 2122121470 192.168.200.1 62628 typ host
a=candidate:3 2 TCP 2105524478 192.168.1.127 9 typ host tcptype active
a=candidate:4 2 TCP 2105458942 192.168.96.1 9 typ host tcptype active
a=candidate:5 2 TCP 2105393406 192.168.200.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:e92974accc4a762de4baaad0fe4802a8
a=ice-ufrag:f4e181fd
a=mid:0
a=msid:{5f274ee4-99a2-8a4b-951d-912258bda46b} {04aaf783-085a-b045-b5d0-02a64127e593}
a=rtcp:55552 IN IP4 192.168.1.127
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:1164173146 cname:{c9bf4b9f-c9da-6046-a4d7-db225ba92d07}
m=video 52992 UDP/TLS/RTP/SAVPF 120 121 126 97
c=IN IP4 192.168.1.127
a=candidate:0 1 UDP 2122252543 192.168.1.127 52992 typ host
a=candidate:1 1 UDP 2122187007 192.168.96.1 61305 typ host
a=candidate:2 1 UDP 2122121471 192.168.200.1 65297 typ host
a=candidate:3 1 TCP 2105524479 192.168.1.127 9 typ host tcptype active
a=candidate:4 1 TCP 2105458943 192.168.96.1 9 typ host tcptype active
a=candidate:5 1 TCP 2105393407 192.168.200.1 9 typ host tcptype active
a=candidate:0 2 UDP 2122252542 192.168.1.127 56749 typ host
a=candidate:1 2 UDP 2122187006 192.168.96.1 61248 typ host
a=candidate:2 2 UDP 2122121470 192.168.200.1 65409 typ host
a=candidate:3 2 TCP 2105524478 192.168.1.127 9 typ host tcptype active
a=candidate:4 2 TCP 2105458942 192.168.96.1 9 typ host tcptype active
a=candidate:5 2 TCP 2105393406 192.168.200.1 9 typ host tcptype active
a=sendrecv
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=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:121 max-fs=12288;max-fr=60
a=ice-pwd:e92974accc4a762de4baaad0fe4802a8
a=ice-ufrag:f4e181fd
a=mid:1
a=msid:{5f274ee4-99a2-8a4b-951d-912258bda46b} {6e4f7366-cca1-4d46-8d42-b40896ae9094}
a=rtcp:56749 IN IP4 192.168.1.127
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:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=rtcp-fb:121 goog-remb
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:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 goog-remb
a=rtcp-mux
a=rtpmap:120 VP8/90000
a=rtpmap:121 VP9/90000
a=rtpmap:126 H264/90000
a=rtpmap:97 H264/90000
a=setup:actpass
a=ssrc:3610190438 cname:{c9bf4b9f-c9da-6046-a4d7-db225ba92d07}
v=0
o=- 3308793503 2 IN IP4 192.168.1.131
s=Asterisk
c=IN IP4 192.168.1.131
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0 1
m=audio 13048 UDP/TLS/RTP/SAVPF 109 9 0 101
a=connection:new
a=setup:active
a=fingerprint:SHA-256 3A:0B:D1:A1:F3:0B:36:7C:AC:AA:F3:E9:A2:BC:84:BF:40:AE:D6:83:00:A7:31:7E:42:AC:09:48:3F:9B:9D:01
a=ice-ufrag:6792148b693214bb59b4542e274402b0
a=ice-pwd:2282bc8b5e3abb6808192b6a3e1c1179
a=candidate:Hc0a80183 1 UDP 2130706431 192.168.1.131 13048 typ host
a=candidate:H46020763 1 UDP 2130706431 fe80::9dc2:1e4e:1899:5554 13048 typ host
a=rtpmap:109 opus/48000/2
a=fmtp:109 useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:1042557593 cname:f5e68900-cb21-4783-a7bb-63d87c198660
a=msid:c9e47bee-9c32-4bf3-a58b-6bcdcc56337b db4ad323-335f-49dd-bfe5-ef89070434a4
a=rtcp-fb:* transport-cc
a=mid:0
m=video 13048 UDP/TLS/RTP/SAVPF 120
a=connection:new
a=setup:active
a=fingerprint:SHA-256 3A:0B:D1:A1:F3:0B:36:7C:AC:AA:F3:E9:A2:BC:84:BF:40:AE:D6:83:00:A7:31:7E:42:AC:09:48:3F:9B:9D:01
a=ice-ufrag:6792148b693214bb59b4542e274402b0
a=ice-pwd:2282bc8b5e3abb6808192b6a3e1c1179
a=rtpmap:120 VP8/90000
a=fmtp:120 max-fr=60;max-fs=12288
a=sendrecv
a=rtcp-mux
a=ssrc:17029962 cname:e92a3efd-9fc1-4d57-9515-5f3b279a3eff
a=msid:c9e47bee-9c32-4bf3-a58b-6bcdcc56337b eced0736-066d-4730-9428-69aa748e2bda
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=mid:1
v=0
o=- 3308793503 3 IN IP4 192.168.1.131
s=Asterisk
c=IN IP4 192.168.1.131
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0 1 video-2 video-3
m=audio 13048 UDP/TLS/RTP/SAVPF 109 9 0 101
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 3A:0B:D1:A1:F3:0B:36:7C:AC:AA:F3:E9:A2:BC:84:BF:40:AE:D6:83:00:A7:31:7E:42:AC:09:48:3F:9B:9D:01
a=ice-ufrag:6792148b693214bb59b4542e274402b0
a=ice-pwd:2282bc8b5e3abb6808192b6a3e1c1179
a=candidate:Hc0a80183 1 UDP 2130706431 192.168.1.131 13048 typ host
a=candidate:H46020763 1 UDP 2130706431 fe80::9dc2:1e4e:1899:5554 13048 typ host
a=rtpmap:109 opus/48000/2
a=fmtp:109 useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:1042557593 cname:f5e68900-cb21-4783-a7bb-63d87c198660
a=msid:c9e47bee-9c32-4bf3-a58b-6bcdcc56337b db4ad323-335f-49dd-bfe5-ef89070434a4
a=rtcp-fb:* transport-cc
a=mid:0
m=video 13048 UDP/TLS/RTP/SAVPF 120
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 3A:0B:D1:A1:F3:0B:36:7C:AC:AA:F3:E9:A2:BC:84:BF:40:AE:D6:83:00:A7:31:7E:42:AC:09:48:3F:9B:9D:01
a=ice-ufrag:6792148b693214bb59b4542e274402b0
a=ice-pwd:2282bc8b5e3abb6808192b6a3e1c1179
a=rtpmap:120 VP8/90000
a=fmtp:120 max-fr=60;max-fs=12288
a=sendrecv
a=rtcp-mux
a=ssrc:17029962 cname:e92a3efd-9fc1-4d57-9515-5f3b279a3eff
a=msid:c9e47bee-9c32-4bf3-a58b-6bcdcc56337b eced0736-066d-4730-9428-69aa748e2bda
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=mid:1
m=video 13048 UDP/TLS/RTP/SAVPF 120
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 3A:0B:D1:A1:F3:0B:36:7C:AC:AA:F3:E9:A2:BC:84:BF:40:AE:D6:83:00:A7:31:7E:42:AC:09:48:3F:9B:9D:01
a=ice-ufrag:6792148b693214bb59b4542e274402b0
a=ice-pwd:2282bc8b5e3abb6808192b6a3e1c1179
a=rtpmap:120 VP8/90000
a=fmtp:120 max-fr=60;max-fs=12288
a=recvonly
a=rtcp-mux
a=ssrc:423602279 cname:6c883bfa-c845-4f19-a6fc-b3752fd7c695
a=msid:2a319da2-a4ba-4bb1-b33e-e892b635e319 28fd92ae-817e-4582-8f66-6e6122c7baf3
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:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=mid:video-2
m=video 13048 UDP/TLS/RTP/SAVPF 120
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 3A:0B:D1:A1:F3:0B:36:7C:AC:AA:F3:E9:A2:BC:84:BF:40:AE:D6:83:00:A7:31:7E:42:AC:09:48:3F:9B:9D:01
a=ice-ufrag:6792148b693214bb59b4542e274402b0
a=ice-pwd:2282bc8b5e3abb6808192b6a3e1c1179
a=rtpmap:120 VP8/90000
a=fmtp:120 max-fr=60;max-fs=12288
a=recvonly
a=rtcp-mux
a=ssrc:1707540391 cname:bdd9370b-2762-4340-bab2-3aea6b635e34
a=msid:b5ab0bcf-22d9-46c9-a819-9d62769126d5 1d977ccc-07ef-4d12-8d03-120bd263babb
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:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=mid:video-3
v=0
o=mozilla...THIS_IS_SDPARTA-78.0 3704053488133090975 1 IN IP4 0.0.0.0
s=-
t=0 0
a=sendrecv
a=fingerprint:sha-256 60:58:96:7F:F1:61:3B:F0:C1:E1:77:38:3D:AC:5C:1A:A7:AE:9B:23:AF:C1:22:00:59:90:82:70:52:5F:90:B3
a=group:BUNDLE 0 1 video-2 video-3
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 58565 UDP/TLS/RTP/SAVPF 109 9 0 101
c=IN IP4 192.168.1.127
a=candidate:0 1 UDP 2122252543 192.168.1.127 58565 typ host
a=candidate:1 1 UDP 2122187007 192.168.96.1 65060 typ host
a=candidate:2 1 UDP 2122121471 192.168.200.1 51716 typ host
a=candidate:3 1 TCP 2105524479 192.168.1.127 9 typ host tcptype active
a=candidate:4 1 TCP 2105458943 192.168.96.1 9 typ host tcptype active
a=candidate:5 1 TCP 2105393407 192.168.200.1 9 typ host tcptype active
a=sendrecv
a=end-of-candidates
a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1
a=fmtp:101 0-15
a=ice-pwd:e92974accc4a762de4baaad0fe4802a8
a=ice-ufrag:f4e181fd
a=mid:0
a=msid:{5f274ee4-99a2-8a4b-951d-912258bda46b} {04aaf783-085a-b045-b5d0-02a64127e593}
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=rtpmap:9 G722/8000/1
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=setup:passive
a=ssrc:1164173146 cname:{c9bf4b9f-c9da-6046-a4d7-db225ba92d07}
m=video 9 UDP/TLS/RTP/SAVPF 120
c=IN IP4 0.0.0.0
a=sendrecv
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=fmtp:120 max-fs=12288;max-fr=60
a=ice-pwd:e92974accc4a762de4baaad0fe4802a8
a=ice-ufrag:f4e181fd
a=mid:1
a=msid:{5f274ee4-99a2-8a4b-951d-912258bda46b} {6e4f7366-cca1-4d46-8d42-b40896ae9094}
a=rtcp-fb:120 nack
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-mux
a=rtpmap:120 VP8/90000
a=setup:passive
a=ssrc:3610190438 cname:{c9bf4b9f-c9da-6046-a4d7-db225ba92d07}
m=video 9 UDP/TLS/RTP/SAVPF 120
c=IN IP4 0.0.0.0
a=inactive
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=fmtp:120 max-fs=12288;max-fr=60
a=ice-pwd:e92974accc4a762de4baaad0fe4802a8
a=ice-ufrag:f4e181fd
a=mid:video-2
a=rtcp-fb:120 nack
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-mux
a=rtpmap:120 VP8/90000
a=setup:active
a=ssrc:2863470157 cname:{c9bf4b9f-c9da-6046-a4d7-db225ba92d07}
m=video 9 UDP/TLS/RTP/SAVPF 120
c=IN IP4 0.0.0.0
a=inactive
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=fmtp:120 max-fs=12288;max-fr=60
a=ice-pwd:e92974accc4a762de4baaad0fe4802a8
a=ice-ufrag:f4e181fd
a=mid:video-3
a=rtcp-fb:120 nack
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-mux
a=rtpmap:120 VP8/90000
a=setup:active
a=ssrc:3018740243 cname:{c9bf4b9f-c9da-6046-a4d7-db225ba92d07}

If you open the apps/app_stream_echo.c source file and replace AST_STREAM_STATE_RECVONLY with AST_STREAM_STATE_SENDONLY, recompile and install, does it resolve the problem?

Boom! Yep :slight_smile: :slight_smile: :slight_smile:

You’re the man!

This of course also fixes the CMP2K demo.

Please file an issue[1] with it, just mention that I’ll sort it out. I’ll upload the fix tomorrow morning on code review.

[1] https://issues.asterisk.org/jira

Will do and thanks again!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.