pjsip logo pjsip.org
Open source SIP stack and media stack for presence, im/instant messaging, and multimedia communication
Loading

HOME

SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port

FAQ

Documentation

Licensing

Download

Development (Trac)

Projects using pjsip

Mailing List

Open Source Links


About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono
<bennylp@pjsip.org>


 

Home --> Documentations --> PJMEDIA Reference

Loopback Media Transport
[Media Transport]

Loopback transport for testing. More...

Functions

PJ_BEGIN_DECL pj_status_t pjmedia_transport_loop_create (pjmedia_endpt *endpt, pjmedia_transport **p_tp)
pj_status_t pjmedia_transport_loop_disable_rx (pjmedia_transport *tp, void *user, pj_bool_t disabled)

Detailed Description

This is the loopback media transport, where packets sent to this transport will be sent back to the streams attached to this transport. Unlike the other PJMEDIA transports, the loop transport may be attached to multiple streams (in other words, application should specify the same loop transport instance when calling pjmedia_stream_create()). Any RTP or RTCP packets sent by one stream to this transport by default will be sent back to all streams that are attached to this transport, including to the stream that sends the packet. Application may individually select which stream to receive packets by calling pjmedia_transport_loop_disable_rx().


Function Documentation

PJ_BEGIN_DECL pj_status_t pjmedia_transport_loop_create ( pjmedia_endpt endpt,
pjmedia_transport **  p_tp 
)

Create the loopback transport.

Parameters:
endpt The media endpoint instance.
p_tp Pointer to receive the transport instance.
Returns:
PJ_SUCCESS on success.
pj_status_t pjmedia_transport_loop_disable_rx ( pjmedia_transport tp,
void *  user,
pj_bool_t  disabled 
)

Set this stream as the receiver of incoming packets.

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.