If you want a clean procedure look in B2BMediaInterface.cxx file and
override the following method. This is the place where both reading
and writing of RTP frames are done.
void B2BMediaInterface::OpalMediaThread::Main()
{
PTRACE( 3, "RTP_UDP\tStarted Media Stream" );
for(;;)
{
if( !m_IsPaused )
{
RTP_DataFrame frame;
if( !m_Leg1->ReadData( frame ) )
break;
if( !m_Leg2->WriteData( frame ) )
break;
}
}
PTRACE( 3, "RTP_UDP\tClosing Media Stream" );
I suggest that you introduce a new function call to CallSession base
class. Something like
m_Call->OnRTPWriteData( frame ) and m_Call->OnRTPReadData( frame )
and propagate it up to the UserAgent level so applications can have a
direct virtual method to override. You may then hijack it using the
SBCCalea useragent.
Joegen
Raman Chan wrote:
Hi Joegen,
Thanks for your reply.
Now I want to have a testing demo about CALEA.
I need the function of intercepting RTP frames in real time, and
don't care the QoS.
Can you give me some instruction about how to implementation?
The function hooks or something else.
Thanks,
Raman
On Tue, Apr 22, 2008 at 5:50 PM, Joegen E. Baclor
wrote:
Hi Raman,
RTP Information is indeed missing. Past experiments showed that voice
quality is not acceptable if we write RTP frames to a pcap file in
real
time. Ideally, OpenSBC should just launch an external shell
script that
would perform the capture and be able to kill it when the call has
ended. This is something that is planned in future versions.
Joegen
Raman Chan wrote:
my friend give me another version of OpenSBC(v1.1.5,checkout several
months ago).
Compile successful and web-admin page shows it support CALEA.
but when two subscribers successfully create SIP session,
Only SIP-Msg was saved in /obj_linux_x86_r/calea/pcap/caleafile.pcap
where is the RTP infromation?
Thanks,
Raman
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to
save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensipstack-osbcdevel mailing list
Opensipstack-osbcdevel@lists.sourceforge.net
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.2/1389 - Release Date:
4/21/2008 8:34 AM
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save
$100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensipstack-osbcdevel mailing list
Opensipstack-osbcdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-osbcdevel
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.5/1399 - Release Date: 4/26/2008 2:17 PM
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensipstack-osbcdevel mailing list
Opensipstack-osbcdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-osbcdevel