From 61ee3131913e13af38f04904752ad0f92a6dbf3b Mon Sep 17 00:00:00 2001 From: Robert Joly Date: Tue, 20 Jan 2009 00:49:48 +0000 Subject: [PATCH] Made sure RTP timestamp, ssrc and marker bit are transferred from FS to OPAL structure. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11303 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_opal/mod_opal.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/endpoints/mod_opal/mod_opal.cpp b/src/mod/endpoints/mod_opal/mod_opal.cpp index 606e4d0e82..b461ad8dd6 100644 --- a/src/mod/endpoints/mod_opal/mod_opal.cpp +++ b/src/mod/endpoints/mod_opal/mod_opal.cpp @@ -1229,6 +1229,9 @@ switch_status_t FSMediaStream::write_frame(const switch_frame_t *frame, switch_i RTP_DataFrame rtp; rtp.SetPayloadType(mediaFormat.GetPayloadType()); rtp.SetPayloadSize(frame->datalen); + rtp.SetTimestamp(frame->timestamp); + rtp.SetSyncSource(frame->ssrc); + rtp.SetMarker(frame->m); memcpy(rtp.GetPayloadPtr(), frame->data, frame->datalen); if (GetPatch()->PushFrame(rtp)) return SWITCH_STATUS_SUCCESS;