Commit cbd27503 authored by Simon Morlat's avatar Simon Morlat

add API to retreive incoming ssrc.

parent 95d976c2
......@@ -36,7 +36,9 @@ EXPORTS
rtp_session_signal_connect
rtp_session_signal_disconnect_by_callback
rtp_session_set_ssrc
rtp_session_set_ssrc
rtp_session_get_send_ssrc
rtp_session_get_recv_ssrc
rtp_session_set_seq_number
rtp_session_get_seq_number
rtp_session_set_jitter_compensation
......@@ -221,9 +223,7 @@ EXPORTS
srtp_transport_new
ortp_srtp_init
rtp_session_get_send_ssrc
ortp_srtp_create_configure_session
rtp_session_get_send_ssrc
ortp_srtp_supported
rtp_session_pick_with_cseq
rtp_session_enable_network_simulation
......
......@@ -266,6 +266,7 @@ int rtp_session_signal_connect(RtpSession *session,const char *signal_name, RtpC
int rtp_session_signal_disconnect_by_callback(RtpSession *session,const char *signal_name, RtpCallback cb);
void rtp_session_set_ssrc(RtpSession *session, uint32_t ssrc);
uint32_t rtp_session_get_send_ssrc(RtpSession* session);
uint32_t rtp_session_get_recv_ssrc(RtpSession *session);
void rtp_session_set_seq_number(RtpSession *session, uint16_t seq);
uint16_t rtp_session_get_seq_number(RtpSession *session);
......
......@@ -620,13 +620,26 @@ rtp_session_set_ssrc (RtpSession * session, uint32_t ssrc)
session->snd.ssrc = ssrc;
}
/**
* Get the SSRC for the outgoing stream.
*
* @param session a rtp session.
**/
uint32_t
rtp_session_get_send_ssrc (RtpSession* session)
{
return session->snd.ssrc;
}
/**
* Get the SSRC for the incoming stream.
*
* If no packets have been received yet, 0 is returned.
**/
uint32_t rtp_session_get_recv_ssrc(RtpSession *session){
return session->rcv.ssrc;
}
void rtp_session_update_payload_type(RtpSession *session, int paytype){
/* check if we support this payload type */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment