386 #define sdp_e_email_get sdp_message_e_email_get
Structure for referencing a list of elements.
char * sdp_message_m_port_get(sdp_message_t *sdp, int pos_media)
Get the port number ('m' field) of a SDP packet.
int sdp_message_k_key_set(sdp_message_t *sdp, int pos_media, char *keytype, char *keydata)
Add a key in a SDP packet.
int sdp_message_r_repeat_add(sdp_message_t *sdp, int pos_time_descr, char *value)
Set the repeat information ('r' field) in a SDP packet.
int sdp_message_m_payload_add(sdp_message_t *sdp, int pos_media, char *payload)
Set the payload in a SDP packet.
void sdp_message_free(sdp_message_t *sdp)
Free a SDP packet.
int sdp_message_b_bandwidth_add(sdp_message_t *sdp, int pos_media, char *bwtype, char *bandwidth)
Set the version in a SDP packet.
char * sdp_message_c_addr_multicast_ttl_get(sdp_message_t *sdp, int pos_media, int pos)
Get the multicast ttl ('c' field) of a SDP packet.
int sdp_message_v_version_set(sdp_message_t *sdp, char *value)
Set the version in a SDP packet.
char * c_nettype
Network Type.
char * o_username
Username.
char * sdp_message_z_adjustments_get(sdp_message_t *sdp)
Get the adjustments ('z' field) of a SDP packet.
int sdp_message_m_payload_del(sdp_message_t *sdp, int pos_media, int pos)
Remove a payload in a SDP packet.
char * sdp_message_m_payload_get(sdp_message_t *sdp, int pos_media, int pos)
Get one of the payload number ('m' field) of a SDP packet.
void sdp_connection_free(sdp_connection_t *elem)
Free a connection element.
char * b_bandwidth
bandwidth value
char * a_att_field
attribute field
char * z_adjustments
Time adjustment header.
int sdp_message_a_attribute_del(sdp_message_t *sdp, int pos_media, char *att_field)
delete all attribute fields specified by att_field.
int sdp_connection_init(sdp_connection_t **elem)
Allocate a connection element.
int sdp_message_endof_media(sdp_message_t *sdp, int pos)
Check if there is more media lines a SDP packet.
int sdp_message_i_info_set(sdp_message_t *sdp, int pos_media, char *value)
Set the version in a SDP packet.
char * t_stop_time
stop time
int sdp_message_a_attribute_del_at_index(sdp_message_t *sdp, int pos_media, char *att_field, int pos_attr)
delete one specific attribute fields specified by att_field.
SDP bandwidth definition.
char * i_info
Information header.
void sdp_attribute_free(sdp_attribute_t *elem)
Free a attribute element.
char * sdp_message_a_att_value_get(sdp_message_t *sdp, int pos_media, int pos)
Get the attribute value ('a' field) of a SDP packet.
char * sdp_message_o_sess_version_get(sdp_message_t *sdp)
Get the session version ('o' field) of a SDP packet.
osip_list_t b_bandwidths
list of bandwidth info (sdp_bandwidth_t)
sdp_key_t * k_key
Key information header.
char * sdp_message_o_username_get(sdp_message_t *sdp)
Get the username ('o' field) of a SDP packet.
char * sdp_message_c_addr_multicast_int_get(sdp_message_t *sdp, int pos_media, int pos)
Get the multicast int info ('c' field) of a SDP packet.
char * sdp_message_u_uri_get(sdp_message_t *sdp)
Get the uri ('u' field) of a SDP packet.
char * sdp_message_m_media_get(sdp_message_t *sdp, int pos_media)
Get the media type ('m' field) of a SDP packet.
char * sdp_message_b_bwtype_get(sdp_message_t *sdp, int pos_media, int pos)
Get the bandwidth type ('b' field) of a SDP packet.
int sdp_message_parse(sdp_message_t *sdp, const char *buf)
Parse a SDP packet.
char * b_bwtype
bandwidth type
int sdp_key_init(sdp_key_t **elem)
Allocate a key element.
void sdp_key_free(sdp_key_t *elem)
Free a key element.
char * c_addrtype
Network Address Type.
osip_list_t e_emails
list of mail address
char * sdp_message_m_number_of_port_get(sdp_message_t *sdp, int pos_media)
Get the number of port ('m' field) of a SDP packet.
sdp_connection_t * c_connection
Connection information.
SDP connection definition.
int sdp_message_z_adjustments_set(sdp_message_t *sdp, char *value)
Set the adjustments ('z' field) of a SDP packet.
osip_list_t t_descrs
list of time description (sdp_time_descr_t)
char * sdp_message_b_bandwidth_get(sdp_message_t *sdp, int pos_media, int pos)
Get the bandwidth value ('b' field) of a SDP packet.
int sdp_message_t_time_descr_add(sdp_message_t *sdp, char *start, char *stop)
Set the version in a SDP packet.
int sdp_message_u_uri_set(sdp_message_t *sdp, char *value)
Set the session info in a SDP packet.
void sdp_media_free(sdp_media_t *elem)
Free a media element.
char * sdp_message_m_proto_get(sdp_message_t *sdp, int pos_media)
Get the protocol ('m' field) of a SDP packet.
char * sdp_message_o_sess_id_get(sdp_message_t *sdp)
Get the session id ('o' field) of a SDP packet.
char * c_addr_multicast_int
Number of multicast address.
char * t_start_time
start time
char * o_nettype
Network type.
osip_list_t p_phones
list of phone numbers *
char * sdp_message_e_email_get(sdp_message_t *sdp, int pos)
Get one of the email ('e' field) of a SDP packet.
int sdp_message_m_port_set(sdp_message_t *sdp, int pos_media, char *port)
Set the port number ('m' field) of a SDP packet.
osip_list_t r_repeats
repeat headers
int sdp_bandwidth_init(sdp_bandwidth_t **elem)
Allocate a bandwidth element.
int sdp_message_clone(sdp_message_t *sdp, sdp_message_t **dest)
Clone a SDP packet.
osip_list_t a_attributes
list of global attributes (sdp_attribute_t)
int sdp_message_s_name_set(sdp_message_t *sdp, char *value)
Set the session name in a SDP packet.
osip_list_t m_medias
list of supported media (sdp_media_t)
char * sdp_message_t_start_time_get(sdp_message_t *sdp, int pos_td)
Get the start time value ('t' field) of a SDP packet.
char * sdp_message_o_addr_get(sdp_message_t *sdp)
Get the addr ('o' field) of a SDP packet.
int sdp_message_p_phone_add(sdp_message_t *sdp, char *value)
Set the version in a SDP packet.
SDP attribute definition.
char * sdp_message_v_version_get(sdp_message_t *sdp)
Get the version ('v' field) of a SDP packet.
char * o_sess_version
Version of session.
sdp_bandwidth_t * sdp_message_bandwidth_get(sdp_message_t *sdp, int pos_media, int pos)
Get the bandwidth ('b' field) of a SDP packet.
void sdp_bandwidth_free(sdp_bandwidth_t *elem)
Free a bandwidth element.
char * sdp_message_k_keydata_get(sdp_message_t *sdp, int pos_media)
Get the key value ('k' field) of a SDP packet.
char * sdp_message_k_keytype_get(sdp_message_t *sdp, int pos_media)
Get the key type ('k' field) of a SDP packet.
SDP Time description definition.
int sdp_time_descr_init(sdp_time_descr_t **elem)
Allocate a time description element.
char * o_sess_id
Identifier for session.
char * sdp_message_o_nettype_get(sdp_message_t *sdp)
Get the nettype ('o' field) of a SDP packet.
int sdp_message_init(sdp_message_t **sdp)
Allocate a SDP packet.
char * c_addr_multicast_ttl
TTL value for multicast address.
char * sdp_message_r_repeat_get(sdp_message_t *sdp, int pos_time_descr, int pos_repeat)
Get the repeat information ('r' field) in a SDP packet.
char * k_keytype
Key Type (prompt, clear, base64, uri)
int sdp_message_a_attribute_add(sdp_message_t *sdp, int pos_media, char *att_field, char *att_value)
Set the version in a SDP packet.
int sdp_message_m_media_add(sdp_message_t *sdp, char *media, char *port, char *number_of_port, char *proto)
Add a media line in a SDP packet.
int sdp_message_e_email_add(sdp_message_t *sdp, char *value)
Set the version in a SDP packet.
char * sdp_message_i_info_get(sdp_message_t *sdp, int pos_media)
Get the session info ('i' field) of a SDP packet.
int sdp_message_to_str(sdp_message_t *sdp, char **dest)
Get a string representation of a SDP packet.
char * sdp_message_s_name_get(sdp_message_t *sdp)
Get the session name ('s' field) of a SDP packet.
char * v_version
version header
char * a_att_value
attribute value (optional)
char * sdp_message_p_phone_get(sdp_message_t *sdp, int pos)
Get one of the phone ('p' field) of a SDP packet.
sdp_attribute_t * sdp_message_attribute_get(sdp_message_t *sdp, int pos_media, int pos)
Get one of the attribute ('a' field) of a SDP packet.
char * sdp_message_a_att_field_get(sdp_message_t *sdp, int pos_media, int pos)
Get the attribute name ('a' field) of a SDP packet.
void sdp_time_descr_free(sdp_time_descr_t *elem)
Free a time description element.
sdp_connection_t * sdp_message_connection_get(sdp_message_t *sdp, int pos_media, int pos)
char * sdp_message_t_stop_time_get(sdp_message_t *sdp, int pos_td)
Get the stop time value ('t' field) of a SDP packet.
int sdp_message_c_connection_add(sdp_message_t *sdp, int pos_media, char *nettype, char *addrtype, char *addr, char *addr_multicast_ttl, char *addr_multicast_int)
Set the version in a SDP packet.
char * sdp_message_c_nettype_get(sdp_message_t *sdp, int pos_media, int pos)
Get the network type ('c' field) of a SDP packet.
char * sdp_message_o_addrtype_get(sdp_message_t *sdp)
Get the addrtype ('o' field) of a SDP packet.
char * o_addrtype
Address type.
int sdp_message_o_origin_set(sdp_message_t *sdp, char *username, char *sess_id, char *sess_version, char *nettype, char *addrtype, char *addr)
Set the origin field in a SDP packet.
char * sdp_message_c_addrtype_get(sdp_message_t *sdp, int pos_media, int pos)
Get the address type ('c' field) of a SDP packet.
char * s_name
Subject header.
int sdp_attribute_init(sdp_attribute_t **elem)
Allocate an attribute element.
int sdp_media_init(sdp_media_t **elem)
Allocate a media element.
char * sdp_message_c_addr_get(sdp_message_t *sdp, int pos_media, int pos)
Get the address ('c' field) of a SDP packet.