diff options
author | Autobuilder at buildslave-ubuntu-12-32 <magnus@alkit.se> | 2013-11-08 08:17:21 (GMT) |
---|---|---|
committer | Autobuilder at buildslave-ubuntu-12-32 <magnus@alkit.se> | 2013-11-08 08:17:21 (GMT) |
commit | 37bfae41ae210cbf100fac9783ebaa962053edd9 (patch) | |
tree | 744c7c1482f57cdf60389deaf8d14b7f4b0a4d9c /src/uscxml/plugins/invoker/miles/MilesSessionInvoker.cpp | |
parent | ff20ef307ab7fe199a19e687579319a4de66f186 (diff) | |
download | uscxml-37bfae41ae210cbf100fac9783ebaa962053edd9.zip uscxml-37bfae41ae210cbf100fac9783ebaa962053edd9.tar.gz uscxml-37bfae41ae210cbf100fac9783ebaa962053edd9.tar.bz2 |
CNAME of outgoing streams set
Diffstat (limited to 'src/uscxml/plugins/invoker/miles/MilesSessionInvoker.cpp')
-rw-r--r-- | src/uscxml/plugins/invoker/miles/MilesSessionInvoker.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/uscxml/plugins/invoker/miles/MilesSessionInvoker.cpp b/src/uscxml/plugins/invoker/miles/MilesSessionInvoker.cpp index d51e94e..87f6e1e 100644 --- a/src/uscxml/plugins/invoker/miles/MilesSessionInvoker.cpp +++ b/src/uscxml/plugins/invoker/miles/MilesSessionInvoker.cpp @@ -337,11 +337,17 @@ void MilesSessionInvoker::processEventStart(const std::string& origin, const std out_rtp_video_stream = miles_rtp_setup_outgoing_stream(video_session, video_rtp_out_socket, 0, MILES_RTP_PAYLOAD_TYPE_JPEG); out_rtp_video_stream->codec_ctx = video_encoder; out_rtcp_video_stream = miles_rtp_setup_outgoing_rtcp_stream(video_session->rtcp_session, video_rtcp_out_socket, out_rtp_video_stream->ssrc); + if(out_rtp_video_stream->sdes.cname) + free(out_rtp_video_stream->sdes.cname); + out_rtp_video_stream->sdes.cname = strdup(userid.c_str()); } /* Set up outgoing RTP stream for audio */ if(audio_available) { out_rtp_audio_stream = miles_rtp_setup_outgoing_stream(audio_session, audio_rtp_out_socket, 0, MILES_RTP_PAYLOAD_TYPE_L16); + if(out_rtp_audio_stream->sdes.cname) + free(out_rtp_audio_stream->sdes.cname); + out_rtp_audio_stream->sdes.cname = strdup(userid.c_str()); /* Associate RTP stream with codec context */ out_rtp_audio_stream->codec_ctx = audio_encoder; |