#include "ortp/port.h"
#include "ortp/b64.h"
#include <bctoolbox/defs.h>
#include <assert.h>
#include <string.h>
|
#define | B64_VER_C_B64_MAJOR 1 |
|
#define | B64_VER_C_B64_MINOR 2 |
|
#define | B64_VER_C_B64_REVISION 3 |
|
#define | B64_VER_C_B64_EDIT 17 |
|
#define | NUM_PLAIN_DATA_BYTES (3) |
|
#define | NUM_ENCODED_DATA_BYTES (4) |
|
#define | NUM_ELEMENTS(x) (sizeof(x) / sizeof(x[0])) |
|
#define | SEVERITY_STR_DECL(rc, desc) |
|
#define | SEVERITY_STR_ENTRY(rc) |
|
|
size_t | b64_encode (void const *src, size_t srcSize, char *dest, size_t destLen) |
| Encodes a block of binary data into Base-64. More...
|
|
size_t | b64_encode2 (void const *src, size_t srcSize, char *dest, size_t destLen, unsigned flags, int lineLen, B64_RC *rc) |
| Encodes a block of binary data into Base-64. More...
|
|
size_t | b64_decode (char const *src, size_t srcLen, void *dest, size_t destSize) |
| Decodes a sequence of Base-64 into a block of binary data. More...
|
|
size_t | b64_decode2 (char const *src, size_t srcLen, void *dest, size_t destSize, unsigned flags, char const **badChar, B64_RC *rc) |
| Decodes a sequence of Base-64 into a block of binary data. More...
|
|
const char * | b64_getErrorString (B64_RC code) |
| Returns the textual description of the error. More...
|
|
size_t | b64_getErrorStringLength (B64_RC code) |
| Returns the length of the textual description of the error. More...
|
|
Implementation file for the b64 library
◆ SEVERITY_STR_DECL
#define SEVERITY_STR_DECL |
( |
|
rc, |
|
|
|
desc |
|
) |
| |
Value:\
static const char s_str##rc[] = desc; \
static
const b64ErrorString_t_ s_rct##rc = { rc, s_str##rc, NUM_ELEMENTS(s_str##rc) - 1 }
◆ SEVERITY_STR_ENTRY
#define SEVERITY_STR_ENTRY |
( |
|
rc | ) |
|
◆ b64_decode()
size_t b64_decode |
( |
char const * |
src, |
|
|
size_t |
srcLen, |
|
|
void * |
dest, |
|
|
size_t |
destSize |
|
) |
| |
Decodes a sequence of Base-64 into a block of binary data.
- Parameters
-
src | Pointer to the Base-64 block to be decoded. May not be NULL, except when dest is NULL, in which case it is ignored. If dest is NULL, and src is not NULL, then the returned value is calculated exactly, otherwise a value is returned that is guaranteed to be large enough to hold the decoded block. |
srcLen | Length of block to be encoded. Must be an integral of 4, the Base-64 encoding quantum, otherwise the Base-64 block is assumed to be invalid |
dest | Pointer to the buffer into which the result is to be written. May be NULL, in which case the function returns the required length |
destSize | Length of the buffer into which the result is to be written. Must be at least as large as that indicated by the return value from b64_decode(src, srcSize, NULL, 0) , even in the case where the encoded form contains a number of characters that will be ignored, resulting in a lower total length of converted form. |
- Returns
- 0 if the size of the buffer was insufficient, or the length of the converted buffer was longer than
destSize
- Note
- The function returns the required length if
dest
is NULL. The returned size might be larger than the actual required size, but will never be smaller.
-
The behaviour of both b64_encode2() and b64_decode2() are undefined if the line length is not a multiple of 4.
-
Threading: The function is fully re-entrant.
- See also
- b64::decode()
◆ b64_decode2()
size_t b64_decode2 |
( |
char const * |
src, |
|
|
size_t |
srcLen, |
|
|
void * |
dest, |
|
|
size_t |
destSize, |
|
|
unsigned |
flags, |
|
|
char const ** |
badChar, |
|
|
B64_RC * |
rc |
|
) |
| |
Decodes a sequence of Base-64 into a block of binary data.
- Parameters
-
src | Pointer to the Base-64 block to be decoded. May not be NULL, except when dest is NULL, in which case it is ignored. If dest is NULL, and src is not NULL, then the returned value is calculated exactly, otherwise a value is returned that is guaranteed to be large enough to hold the decoded block. |
srcLen | Length of block to be encoded. Must be an integral of 4, the Base-64 encoding quantum, otherwise the Base-64 block is assumed to be invalid |
dest | Pointer to the buffer into which the result is to be written. May be NULL, in which case the function returns the required length |
destSize | Length of the buffer into which the result is to be written. Must be at least as large as that indicated by the return value from b64_decode(src, srcSize, NULL, 0) , even in the case where the encoded form contains a number of characters that will be ignored, resulting in a lower total length of converted form. |
flags | A combination of the B64_FLAGS enumeration, that moderate the behaviour of the function. |
rc | The return code representing the status of the operation. May be NULL. |
badChar | If the flags parameter does not contain B64_F_STOP_ON_NOTHING, this parameter specifies the address of a pointer that will be set to point to any character in the sequence that stops the parsing, as dictated by the flags parameter. May be NULL. |
- Returns
- 0 if the size of the buffer was insufficient, or the length of the converted buffer was longer than
destSize
, or a bad character stopped parsing.
- Note
- The function returns the required length if
dest
is NULL. The returned size might be larger than the actual required size, but will never be smaller.
-
The behaviour of both b64_encode2() and b64_decode2() are undefined if the line length is not a multiple of 4.
-
Threading: The function is fully re-entrant.
- See also
- b64::decode()
◆ b64_encode()
size_t b64_encode |
( |
void const * |
src, |
|
|
size_t |
srcSize, |
|
|
char * |
dest, |
|
|
size_t |
destLen |
|
) |
| |
Encodes a block of binary data into Base-64.
- Parameters
-
src | Pointer to the block to be encoded. May not be NULL, except when dest is NULL, in which case it is ignored. |
srcSize | Length of block to be encoded |
dest | Pointer to the buffer into which the result is to be written. May be NULL, in which case the function returns the required length |
destLen | Length of the buffer into which the result is to be written. Must be at least as large as that indicated by the return value from b64_encode(NULL, srcSize, NULL, 0). |
- Returns
- 0 if the size of the buffer was insufficient, or the length of the converted buffer was longer than
destLen
- Note
- The function returns the required length if
dest
is NULL
-
The function returns the required length if
dest
is NULL. The returned size might be larger than the actual required size, but will never be smaller.
-
Threading: The function is fully re-entrant.
- See also
- b64::encode()
◆ b64_encode2()
size_t b64_encode2 |
( |
void const * |
src, |
|
|
size_t |
srcSize, |
|
|
char * |
dest, |
|
|
size_t |
destLen, |
|
|
unsigned |
flags, |
|
|
int |
lineLen, |
|
|
B64_RC * |
rc |
|
) |
| |
Encodes a block of binary data into Base-64.
- Parameters
-
src | Pointer to the block to be encoded. May not be NULL, except when dest is NULL, in which case it is ignored. |
srcSize | Length of block to be encoded |
dest | Pointer to the buffer into which the result is to be written. May be NULL, in which case the function returns the required length |
destLen | Length of the buffer into which the result is to be written. Must be at least as large as that indicated by the return value from b64_encode2(NULL, srcSize, NULL, 0, flags, lineLen, rc). |
flags | A combination of the B64_FLAGS enumeration, that moderate the behaviour of the function |
lineLen | If the flags parameter contains B64_F_LINE_LEN_USE_PARAM, then this parameter represents the length of the lines into which the encoded form is split, with a hard line break ('\r\n'). If this value is 0, then the line is not split. If it is <0, then the RFC-1113 recommended line length of 64 is used |
rc | The return code representing the status of the operation. May be NULL. |
- Returns
- 0 if the size of the buffer was insufficient, or the length of the converted buffer was longer than
destLen
- Note
- The function returns the required length if
dest
is NULL. The returned size might be larger than the actual required size, but will never be smaller.
-
Threading: The function is fully re-entrant.
- See also
- b64::encode()
◆ b64_getErrorString()
const char* b64_getErrorString |
( |
B64_RC |
code | ) |
|
Returns the textual description of the error.
- Parameters
-
◆ b64_getErrorStringLength()
size_t b64_getErrorStringLength |
( |
B64_RC |
code | ) |
|
void rtp_session_set_profile(RtpSession *session, RtpProfile *profile)
Definition: rtpsession.c:449
void rtp_session_set_source_description(RtpSession *session, const char *cname, const char *name, const char *email, const char *phone, const char *loc, const char *tool, const char *note)
Definition: rtcp.c:127
bool_t fmtp_get_value(const char *fmtp, const char *param_name, char *result, size_t result_len)
Definition: payloadtype.c:189
void session_set_destroy(SessionSet *set)
Definition: sessionset.c:43
int rtp_session_get_dscp(const RtpSession *session)
Definition: rtpsession_inet.c:735
void rtp_session_set_recv_buf_size(RtpSession *session, int bufsize)
Definition: rtpsession.c:570
void rtp_session_set_seq_number(RtpSession *session, uint16_t seq)
Definition: rtpsession.c:672
int meta_rtp_transport_modifier_inject_packet_to_recv(RtpTransport *t, RtpTransportModifier *tpm, mblk_t *msg, int flags)
Definition: rtpsession.c:2290
Definition: rtpsession.h:251
void rtp_session_rtcp_set_jitter_value(RtpSession *session, const unsigned int value)
For test purpose only, sets a constant interarrival_jitter value within all RTCP output packets....
Definition: rtpsession.c:1725
Definition: videobandwidthestimator.h:37
void rtp_session_set_blocking_mode(RtpSession *session, int yesno)
Definition: rtpsession.c:430
uint16_t trr_interval
Definition: payloadtype.h:70
Definition: str_utils.h:77
void ortp_set_log_thread_id(unsigned long thread_id)
Definition: logging.c:151
int meta_rtp_transport_modifier_inject_packet_to_send(RtpTransport *t, RtpTransportModifier *tpm, mblk_t *msg, int flags)
Definition: rtpsession.c:2188
int64_t last_packet_sent_count
Definition: rtcp.h:542
void rtp_session_resync(RtpSession *session)
Definition: rtpsession.c:1643
uint32_t latency
Definition: rtpsession.h:163
const char * b64_getErrorString(B64_RC code)
Returns the textual description of the error.
Definition: b64.c:597
Definition: rtpsession.h:286
size_t b64_decode2(char const *src, size_t srcLen, void *dest, size_t destSize, unsigned flags, char const **badChar, B64_RC *rc)
Decodes a sequence of Base-64 into a block of binary data.
Definition: b64.c:490
void rtp_session_set_scheduling_mode(RtpSession *session, int yesno)
Definition: rtpsession.c:395
OrtpJitterBufferAlgorithm buffer_algorithm
Definition: rtpsession.h:74
int rtp_session_recv_telephone_events_supported(RtpSession *session)
Definition: telephonyevents.c:76
int rtp_session_add_aux_remote_addr_full(RtpSession *session, const char *rtp_addr, int rtp_port, const char *rtcp_addr, int rtcp_port)
Definition: rtpsession_inet.c:939
int rtp_session_rtcp_sendm_raw(RtpSession *session, mblk_t *m)
Definition: rtpsession_inet.c:1253
void ortp_set_log_level_mask(const char *domain, int levelmask)
Definition: logging.c:119
Definition: videobandwidthestimator.h:28
void rtp_session_enable_rtcp(RtpSession *session, bool_t yesno)
Definition: rtpsession.c:464
void rtp_session_set_send_ts_offset(RtpSession *s, uint32_t offset)
Definition: rtpsession.c:554
int rtp_session_set_payload_type(RtpSession *session, int pt)
Definition: rtpsession.c:833
int rtp_session_send_dtmf(RtpSession *session, char dtmf, uint32_t userts)
Definition: telephonyevents.c:188
void rtp_session_register_event_queue(RtpSession *session, OrtpEvQueue *q)
Definition: rtpsession.c:1529
Definition: rtpsession.h:291
const char * str
Definition: b64.c:526
Definition: rtpsession.h:261
void * rtp_session_get_data(const RtpSession *session)
Definition: rtpsession.c:1774
void(* t_destroy)(struct _RtpTransport *transport)
Definition: rtpsession.h:142
const rtp_stats_t * rtp_session_get_stats(const RtpSession *session)
Definition: rtpsession.c:1695
const jitter_stats_t * rtp_session_get_jitter_stats(const RtpSession *session)
Definition: rtpsession.c:1702
Definition: src/utils.h:32
Definition: telephonyevents.h:33
float rtp_session_get_recv_bandwidth(RtpSession *session)
Definition: rtpsession.c:1870
Definition: payloadtype.h:65
Definition: dll_entry.c:7
void rtp_session_set_rtcp_report_interval(RtpSession *session, int value_ms)
Definition: rtpsession.c:476
mblk_t * rtp_session_create_telephone_event_packet(RtpSession *session, int start)
Definition: telephonyevents.c:95
Definition: logging.c:244
void rtp_session_set_data(RtpSession *session, void *data)
Definition: rtpsession.c:1766
int enabled
Definition: rtpsession.h:456
General purpose library functions.
void ortp_set_log_level(const char *domain, OrtpLogLevel level)
Definition: logging.c:125
void rtp_session_set_rtp_socket_recv_buffer_size(RtpSession *session, unsigned int size)
Definition: rtpsession.c:587
size_t b64_getErrorStringLength(B64_RC code)
Returns the length of the textual description of the error.
Definition: b64.c:602
void(* t_destroy)(struct _RtpTransportModifier *transport)
Definition: rtpsession.h:127
void payload_type_set_send_fmtp(PayloadType *pt, const char *fmtp)
Definition: payloadtype.c:91
Definition of payload types.
unsigned int packets_size_max
Definition: rtpsession.h:458
mblk_t * rtp_session_pick_with_cseq(RtpSession *session, const uint16_t sequence_number)
Definition: rtpsession.c:1120
size_t b64_encode2(void const *src, size_t srcSize, char *dest, size_t destLen, unsigned flags, int lineLen, B64_RC *rc)
Encodes a block of binary data into Base-64.
Definition: b64.c:435
void rtp_session_set_rtp_socket_send_buffer_size(RtpSession *session, unsigned int size)
Definition: rtpsession.c:578
void rtp_session_set_recv_profile(RtpSession *session, RtpProfile *profile)
Definition: rtpsession.c:516
mblk_t * rtp_session_recvm_with_ts(RtpSession *session, uint32_t user_ts)
Definition: rtpsession.c:1183
void rtp_session_set_jitter_compensation(RtpSession *session, int milisec)
Definition: jitterctl.c:131
int code
Definition: b64.c:525
void rtp_session_rtcp_set_lost_packet_value(RtpSession *session, const int value)
For test purpose only, sets a constant lost packet value within all RTCP output packets....
Definition: rtpsession.c:1713
Definition: rtpsession.h:192
float consecutive_loss_probability
Definition: rtpsession.h:164
void meta_rtp_transport_set_endpoint(RtpTransport *transport, RtpTransport *endpoint)
Definition: rtpsession.c:2419
Definition: str_utils.h:56
float max_bandwidth
Definition: rtpsession.h:158
int channels
Definition: payloadtype.h:83
Definition: rtpsession.h:156
int64_t last_dup_packet_sent_count
Definition: rtcp.h:537
Definition: rtpsession.h:130
Definition: rtpsession.h:358
char * mime_type
Definition: payloadtype.h:82
void rtp_session_set_ssrc(RtpSession *session, uint32_t ssrc)
Definition: rtpsession.c:711
size_t b64_getErrorStringLength(B64_RC code)
Returns the length of the textual description of the error.
Definition: b64.c:602
Definition: str_utils.h:41
int rtp_session_set_send_payload_type(RtpSession *session, int paytype)
Definition: rtpsession.c:762
int rtp_session_set_remote_addr(RtpSession *session, const char *addr, int port)
Definition: rtpsession_inet.c:772
RtpProfile * rtp_session_get_send_profile(RtpSession *session)
Definition: rtpsession.c:540
#define session_set_clr(ss, rtpsession)
Definition: sessionset.h:121
void rtp_session_set_connected_mode(RtpSession *session, bool_t yesno)
Definition: rtpsession.c:1814
bool_t pad[3]
Definition: rtpsession.h:168
Definition: include/ortp/utils.h:61
int rtp_session_set_send_telephone_event_payload_type(RtpSession *session, int paytype)
Definition: rtpsession.c:786
[C/C++] Header file for the b64 library.
int rtp_session_add_telephone_event(RtpSession *session, mblk_t *packet, uint8_t event, int end, uint8_t volume, uint16_t duration)
Definition: telephonyevents.c:152
Definition: rtpsession.h:115
Definition: congestiondetector.h:36
void rtp_session_rtcp_set_delay_value(RtpSession *session, const unsigned int value)
For test purpose only, simulates a constant RTT (Round Trip Time) value by setting the LSR field with...
Definition: rtpsession.c:1751
int rtp_session_signal_connect(RtpSession *session, const char *signal_name, RtpCallback cb, void *user_data)
Definition: rtpsession.c:627
void rtp_session_set_target_upload_bandwidth(RtpSession *session, int target_bandwidth)
Definition: rtpsession.c:481
void rtp_profile_set_payload(RtpProfile *prof, int idx, PayloadType *pt)
Definition: rtpprofile.c:159
B64_RC
Return codes (from b64_encode2() / b64_decode2())
Definition: b64.h:165
struct _OrtpNetworkSimulatorParams OrtpNetworkSimulatorParams
Definition: rtpsession.h:148
void rtp_session_reset(RtpSession *session)
Definition: rtpsession.c:1666
int rtp_session_telephone_events_supported(RtpSession *session)
Definition: telephonyevents.c:45
RtpTransport * meta_rtp_transport_get_endpoint(const RtpTransport *transport)
Definition: rtpsession.c:2415
float jitter_strength
Definition: rtpsession.h:166
size_t len
Definition: b64.c:527
int type
Definition: payloadtype.h:75
void ortp_logv_flush(void)
Definition: logging.c:277
RtpProfile * rtp_session_get_profile(RtpSession *session)
Definition: rtpsession.c:529
OrtpNetworkSimulatorMode mode
Definition: rtpsession.h:169
Definition: scheduler.h:28
int max_buffer_size
Definition: rtpsession.h:161
Sending and receiving multiple streams together with only one thread.
mblk_t * rtp_session_create_packet(RtpSession *session, size_t header_size, const uint8_t *payload, size_t payload_size)
Definition: rtpsession.c:865
size_t b64_encode(void const *src, size_t srcSize, char *dest, size_t destLen)
Encodes a block of binary data into Base-64.
Definition: b64.c:425
Definition: rtpsession.h:66
const char * b64_getErrorString(B64_RC code)
Returns the textual description of the error.
Definition: b64.c:597
Definition: str_utils.h:157
Receiving and sending telephone events (RFC2833)
void rtp_profile_set_name(RtpProfile *prof, const char *name)
Definition: rtpprofile.c:186
mblk_t * rtp_session_create_packet_in_place(RtpSession *session, uint8_t *buffer, size_t size, void(*freefn)(void *))
Definition: rtpsession.c:946
Definition: rtpsession.h:382
void rtp_session_set_ssrc_changed_threshold(RtpSession *session, int numpackets)
Definition: rtpsession.c:1633
size_t b64_decode(char const *src, size_t srcLen, void *dest, size_t destSize)
Decodes a sequence of Base-64 into a block of binary data.
Definition: b64.c:479
Definition: rtptimer.h:35
int rtp_session_get_multicast_loopback(RtpSession *session)
Definition: rtpsession_inet.c:622
int enabled
Definition: rtpsession.h:157
Definition: src/utils.h:71
int rtp_session_send_with_ts(RtpSession *session, const uint8_t *buffer, int len, uint32_t userts)
Definition: rtpsession.c:1084
SessionSet * session_set_new(void)
Definition: sessionset.c:30
Definition: include/ortp/utils.h:33
int clock_rate
Definition: payloadtype.h:76
unsigned char features
Definition: payloadtype.h:66
int rtp_session_set_recv_payload_type(RtpSession *session, int pt)
Definition: rtpsession.c:803
Definition: include/ortp/utils.h:74
size_t b64_decode(char const *src, size_t srcLen, void *dest, size_t destSize)
Decodes a sequence of Base-64 into a block of binary data.
Definition: b64.c:479
#define session_set_set(ss, rtpsession)
Definition: sessionset.h:104
void rtp_session_set_time_jump_limit(RtpSession *session, int miliseconds)
Definition: rtpsession.c:1472
struct _OrtpVideoBandwidthEstimatorParams OrtpVideoBandwidthEstimatorParams
int rtp_session_recv_with_ts(RtpSession *session, uint8_t *buffer, int len, uint32_t ts, int *have_more)
Definition: rtpsession.c:1371
float rtp_session_get_round_trip_propagation(RtpSession *session)
Definition: rtpsession.c:1936
uint32_t rtp_session_get_current_recv_ts(RtpSession *session)
Definition: rtpsession.c:1445
uint32_t rtp_session_get_recv_ssrc(RtpSession *session)
Definition: rtpsession.c:732
void rtp_session_flush_sockets(RtpSession *session)
Definition: rtpsession_inet.c:988
void ortp_scheduler_init(void)
Definition: ortp.c:94
Definition: rtpsession.h:149
int rtp_session_get_local_port(const RtpSession *session)
Definition: rtpsession_inet.c:751
uint32_t rtp_session_get_rcv_ext_seq_number(RtpSession *session)
Definition: rtpsession.c:692
uint32_t rtp_session_get_current_send_ts(RtpSession *session)
Definition: rtpsession.c:1419
float jitter_burst_density
Definition: rtpsession.h:165
uint32_t rtp_session_get_send_ssrc(RtpSession *session)
Definition: rtpsession.c:722
void rtp_session_set_symmetric_rtp(RtpSession *session, bool_t yesno)
Definition: rtpsession.c:1788
bool_t ortp_min_version_required(int major, int minor, int micro)
Definition: ortp.c:196
void ortp_set_log_file(FILE *file)
Definition: logging.c:66
void payload_type_set_recv_fmtp(PayloadType *pt, const char *fmtp)
Definition: payloadtype.c:78
void rtp_session_get_last_recv_time(RtpSession *session, struct timeval *tv)
Definition: rtpsession.c:2037
void payload_type_destroy(PayloadType *pt)
Definition: payloadtype.c:140
int rtp_session_set_multicast_ttl(RtpSession *session, int ttl)
Definition: rtpsession_inet.c:500
void rtp_profile_clear_all(RtpProfile *prof)
Definition: rtpprofile.c:172
Definition: str_utils.h:50
int rtp_session_read_telephone_event(RtpSession *session, mblk_t *packet, telephone_event_t **tab)
Definition: telephonyevents.c:319
void rtp_session_refresh_sockets(RtpSession *session)
Definition: rtpsession_inet.c:406
uint16_t rtp_session_get_seq_number(RtpSession *session)
Definition: rtpsession.c:685
float rtp_session_get_send_bandwidth(RtpSession *session)
Definition: rtpsession.c:1883
Definition: rtpsession.h:318
int meta_rtp_transport_modifier_inject_packet_to_send_to(RtpTransport *t, RtpTransportModifier *tpm, mblk_t *msg, int flags, const struct sockaddr *to, socklen_t tolen)
Definition: rtpsession.c:2211
int session_set_select(SessionSet *recvs, SessionSet *sends, SessionSet *errors)
Definition: sessionset.c:113
Definition: src/utils.h:61
Definition: rtpsession.h:81
void ortp_set_log_handler(OrtpLogFunc func)
Definition: logging.c:75
Definition: rtpsession.h:147
Definition: payloadtype.h:73
int rtp_session_get_send_payload_type(const RtpSession *session)
Definition: rtpsession.c:773
int rtp_session_set_pktinfo(RtpSession *session, int activate)
Definition: rtpsession_inet.c:433
Definition: rtpsession.h:172
void ortp_global_stats_display(void)
Definition: ortp.c:146
float loss_rate
Definition: rtpsession.h:162
int rtp_session_bye(RtpSession *session, const char *reason)
Definition: rtcp.c:637
mblk_t * rtp_session_create_packet_raw(const uint8_t *packet, size_t packet_size)
Definition: rtpsession.c:887
struct _JBParameters JBParameters
void rtp_stats_display(const rtp_stats_t *stats, const char *header)
Definition: ortp.c:157
mblk_t * rtp_session_create_packet_with_data(RtpSession *session, uint8_t *payload, size_t payload_size, void(*freefn)(void *))
Definition: rtpsession.c:914
Definition: rtpsession.h:455
int rtp_session_signal_disconnect_by_callback(RtpSession *session, const char *signal_name, RtpCallback cb)
Definition: rtpsession.c:651
Definition: rtpsession.h:107
RtpProfile * rtp_session_get_recv_profile(RtpSession *session)
Definition: rtpsession.c:550
B64_FLAGS
Coding behaviour modification flags (for b64_encode2() / b64_decode2())
Definition: b64.h:182
unsigned int trust_percentage
Definition: rtpsession.h:459
int rtp_session_send_dtmf2(RtpSession *session, char dtmf, uint32_t userts, int duration)
Definition: telephonyevents.c:202
Definition: rtpsignaltable.h:27
int rtp_session_set_local_addr(RtpSession *session, const char *addr, int rtp_port, int rtcp_port)
Definition: rtpsession_inet.c:347
double lambda
Definition: include/ortp/utils.h:67
unsigned char avpf_features
Definition: rtpsession.h:444
RtpSession * rtp_session_new(int mode)
Definition: rtpsession.c:368
int rtp_session_set_remote_addr_full(RtpSession *session, const char *rtp_addr, int rtp_port, const char *rtcp_addr, int rtcp_port)
Definition: rtpsession_inet.c:792
void ortp_exit(void)
Definition: ortp.c:118
void ortp_init(void)
Definition: ortp.c:73
_OrtpNetworkSimulatorMode
Definition: rtpsession.h:145
int rtp_session_send_telephone_events_supported(RtpSession *session)
Definition: telephonyevents.c:64
int rtp_session_set_multicast_loopback(RtpSession *session, int yesno)
Definition: rtpsession_inet.c:566
void rtp_session_destroy(RtpSession *session)
Definition: rtpsession.c:1946
int rtp_session_get_recv_payload_type(const RtpSession *session)
Definition: rtpsession.c:820
Definition: sessionset.h:88
void rtp_session_release_sockets(RtpSession *session)
Definition: rtpsession.c:1513
Using and creating standart and custom RTP profiles.
Definition: rtpsession.h:296
size_t b64_decode2(char const *src, size_t srcLen, void *dest, size_t destSize, unsigned flags, char const **badChar, B64_RC *rc)
Decodes a sequence of Base-64 into a block of binary data.
Definition: b64.c:490
int rtp_session_get_cum_loss(RtpSession *session)
Definition: rtpsession.c:699
int rtp_session_get_multicast_ttl(RtpSession *session)
Definition: rtpsession_inet.c:551
void rtp_session_set_send_profile(RtpSession *session, RtpProfile *profile)
Definition: rtpsession.c:498
Definition: rtpprofile.h:41
int rtp_session_sendm_with_ts(RtpSession *session, mblk_t *mp, uint32_t userts)
Definition: rtpsession.c:1065
size_t b64_encode2(void const *src, size_t srcSize, char *dest, size_t destLen, unsigned flags, int lineLen, B64_RC *rc)
Encodes a block of binary data into Base-64.
Definition: b64.c:435
Definition: rtpsession.h:210
size_t b64_encode(void const *src, size_t srcSize, char *dest, size_t destLen)
Encodes a block of binary data into Base-64.
Definition: b64.c:425
int rtp_session_set_dscp(RtpSession *session, int dscp)
Definition: rtpsession_inet.c:637