20 #ifndef rtpsession_priv_h
21 #define rtpsession_priv_h
25 #define IP_UDP_OVERHEAD (20 + 8)
26 #define IP6_UDP_OVERHEAD (40 + 8)
28 #define RTCP_XR_GMIN 16
31 RTP_SESSION_RECV_SYNC=1,
32 RTP_SESSION_FIRST_PACKET_DELIVERED=1<<1,
33 RTP_SESSION_SCHEDULED=1<<2,
34 RTP_SESSION_BLOCKING_MODE=1<<3,
35 RTP_SESSION_RECV_NOT_STARTED=1<<4,
36 RTP_SESSION_SEND_NOT_STARTED=1<<5,
37 RTP_SESSION_IN_SCHEDULER=1<<6,
38 RTP_SESSION_USING_EXT_SOCKETS=1<<7,
39 RTP_SOCKET_CONNECTED=1<<8,
40 RTCP_SOCKET_CONNECTED=1<<9,
41 RTP_SESSION_USING_TRANSPORT=1<<10,
42 RTCP_OVERRIDE_LOST_PACKETS=1<<11,
43 RTCP_OVERRIDE_JITTER=1<<12,
44 RTCP_OVERRIDE_DELAY=1<<13,
45 RTP_SESSION_RECV_SEQ_INIT=1<<14,
46 RTP_SESSION_FLUSH=1<<15
49 #define rtp_session_using_transport(s, stream) (((s)->flags & RTP_SESSION_USING_TRANSPORT) && (s->stream.gs.tr != 0))
51 int rtp_session_rtp_recv_abstract(ortp_socket_t socket,
mblk_t *msg,
int flags,
struct sockaddr *from, socklen_t *fromlen);
53 void rtp_session_update_payload_type(
RtpSession * session,
int pt);
56 int rtp_session_rtp_recv(
RtpSession * session, uint32_t ts);
57 int rtp_session_rtcp_recv(
RtpSession * session);
61 void rtp_session_rtp_parse(
RtpSession *session,
mblk_t *mp, uint32_t local_str_ts,
struct sockaddr *addr, socklen_t addrlen);
63 void rtp_session_run_rtcp_send_scheduler(
RtpSession *session);
64 void update_avg_rtcp_size(
RtpSession *session,
int bytes);
76 bool_t rtcp_is_RTPFB_internal(
const mblk_t *m);
77 bool_t rtcp_is_PSFB_internal(
const mblk_t *m);
78 bool_t rtp_session_has_fb_packets_to_send(
RtpSession *session);
79 void rtp_session_send_regular_rtcp_packet_and_reschedule(
RtpSession *session, uint64_t tc);
80 void rtp_session_send_fb_rtcp_packet_and_reschedule(
RtpSession *session);
82 void ortp_stream_clear_aux_addresses(
OrtpStream *os);
88 ORTP_PUBLIC bool_t rtp_profile_is_telephone_event(
const RtpProfile *prof,
int pt);
Definition: rtpsession.h:348
Definition: str_utils.h:49
Definition: str_utils.h:78
Definition: rtpsession.h:147
Definition: rtpsession.h:109
Definition: rtpsession.h:265
Definition: rtpprofile.h:41