Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
ast_rtp_engine_test Struct Reference

Structure that represents the test functionality for res_rtp_asterisk unit tests. More...

#include <rtp_engine.h>

Data Fields

int packets_to_drop
 
size_t(* recv_buffer_count )(struct ast_rtp_instance *instance)
 
size_t(* recv_buffer_max )(struct ast_rtp_instance *instance)
 
int sdes_received
 
size_t(* send_buffer_count )(struct ast_rtp_instance *instance)
 
int send_report
 
void(* set_schedid )(struct ast_rtp_instance *instance, int id)
 

Detailed Description

Structure that represents the test functionality for res_rtp_asterisk unit tests.

Definition at line 595 of file rtp_engine.h.

Field Documentation

◆ packets_to_drop

int packets_to_drop

Drops RTP packets while this has a value greater than 0

Definition at line 597 of file rtp_engine.h.

Referenced by __rtp_recvfrom(), ast_rtp_instance_drop_packets(), and ast_rtp_instance_reset_test_engine().

◆ recv_buffer_count

size_t(* recv_buffer_count) (struct ast_rtp_instance *instance)

Get the number of packets in the receive buffer for a RTP instance

Definition at line 603 of file rtp_engine.h.

Referenced by ast_rtp_instance_get_recv_buffer_count().

◆ recv_buffer_max

size_t(* recv_buffer_max) (struct ast_rtp_instance *instance)

Get the maximum number of packets the receive buffer can hold for a RTP instance

Definition at line 605 of file rtp_engine.h.

Referenced by ast_rtp_instance_get_recv_buffer_max().

◆ sdes_received

int sdes_received

Set to 1 whenever SDES is received

Definition at line 601 of file rtp_engine.h.

Referenced by ast_rtcp_interpret(), ast_rtp_instance_get_sdes_received(), and ast_rtp_instance_reset_test_engine().

◆ send_buffer_count

size_t(* send_buffer_count) (struct ast_rtp_instance *instance)

Get the number of packets in the send buffer for a RTP instance

Definition at line 607 of file rtp_engine.h.

Referenced by ast_rtp_instance_get_send_buffer_count().

◆ send_report

int send_report

Sends a SR/RR instead of RTP the next time RTP would be sent

Definition at line 599 of file rtp_engine.h.

Referenced by ast_rtp_instance_queue_report(), ast_rtp_instance_reset_test_engine(), and rtp_raw_write().

◆ set_schedid

void(* set_schedid) (struct ast_rtp_instance *instance, int id)

Set the schedid for RTCP

Definition at line 609 of file rtp_engine.h.

Referenced by ast_rtp_instance_set_schedid().


The documentation for this struct was generated from the following file: