Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions daemon/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -4470,6 +4470,7 @@ int monologue_publish(struct call_monologue *ml, sdp_streams_q *streams, sdp_ng_
media_update_type(media, sp);
media_update_protocol(media, sp);
media_update_media_id(media, sp);
media_update_label(media, flags, &sp->label);
media_loop_protect(sp, media);
media_update_flags(media, sp);
media_update_crypto(media, sp, flags);
Expand Down
56 changes: 56 additions & 0 deletions t/auto-daemon-tests-pubsub.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4987,5 +4987,61 @@
snd($sock_a, $port_a, rtp(8, 2001, 4160, 0x3456, "\x00" x 160));
rcv($sock_b, $port_b, rtpm(8, 2001, 4160, 0x3456, "\x00" x 160));


new_call;

publish('publish with a=label',
{ }, <<SDP);
v=0
o=- 1545997027 1 IN IP4 198.51.100.1
s=tester
t=0 0
m=audio 6200 RTP/AVP 0
c=IN IP4 198.51.100.14
a=label:1
a=sendonly
m=audio 6202 RTP/AVP 0
c=IN IP4 198.51.100.14
a=label:2
a=sendonly
----------------------------------
v=0
o=- SDP_VERSION IN IP4 203.0.113.1
s=RTPE_VERSION
t=0 0
m=audio PORT RTP/AVP 0
c=IN IP4 203.0.113.1
a=label:1
a=rtpmap:0 PCMU/8000
a=recvonly
a=rtcp:PORT
m=audio PORT RTP/AVP 0
c=IN IP4 203.0.113.1
a=label:2
a=rtpmap:0 PCMU/8000
a=recvonly
a=rtcp:PORT
SDP

subscribe_request('publish with a=label',
{ 'from-tag' => ft() }, <<SDP);
v=0
o=- SDP_VERSION IN IP4 198.51.100.1
s=tester
t=0 0
m=audio PORT RTP/AVP 0
c=IN IP4 203.0.113.1
a=label:1
a=rtpmap:0 PCMU/8000
a=sendonly
a=rtcp:PORT
m=audio PORT RTP/AVP 0
c=IN IP4 203.0.113.1
a=label:2
a=rtpmap:0 PCMU/8000
a=sendonly
a=rtcp:PORT
SDP

done_testing();
#done_testing;NGCP::Rtpengine::AutoTest::terminate('f00');exit;
Loading