[Freeswitch-svn] [commit] r11303 - freeswitch/trunk/src/mod/endpoints/mod_opal

FreeSWITCH SVN robertj at freeswitch.org
Mon Jan 19 16:49:48 PST 2009


Author: robertj
Date: Mon Jan 19 18:49:48 2009
New Revision: 11303

Log:
Made sure RTP timestamp, ssrc and marker bit are transferred from FS to OPAL structure.

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp

Modified: freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp	Mon Jan 19 18:49:48 2009
@@ -1229,6 +1229,9 @@
         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;



More information about the Freeswitch-svn mailing list