SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
oSIP SDP parser Handling

Data Structures

struct  sdp_bandwidth
 SDP bandwidth definition. More...
 
struct  sdp_time_descr
 SDP Time description definition. More...
 
struct  sdp_key
 SDP key definition. More...
 
struct  sdp_attribute
 SDP attribute definition. More...
 
struct  sdp_connection
 SDP connection definition. More...
 
struct  sdp_media
 SDP media definition. More...
 
struct  sdp_message
 SDP message definition. More...
 

Macros

#define sdp_e_email_get   sdp_message_e_email_get
 OBSOLETE: see sdp_message_e_email_get. More...
 

Typedefs

typedef struct sdp_bandwidth sdp_bandwidth_t
 Structure for referencing bandwidth header. More...
 
typedef struct sdp_time_descr sdp_time_descr_t
 Structure for referencing time description header. More...
 
typedef struct sdp_key sdp_key_t
 Structure for referencing key header. More...
 
typedef struct sdp_attribute sdp_attribute_t
 Structure for referencing an attribute header. More...
 
typedef struct sdp_connection sdp_connection_t
 Structure for referencing a connection header. More...
 
typedef struct sdp_media sdp_media_t
 Structure for referencing a media header. More...
 
typedef struct sdp_message sdp_message_t
 Structure for referencing a SDP packet. More...
 

Functions

int sdp_bandwidth_init (sdp_bandwidth_t **elem)
 Allocate a bandwidth element. More...
 
void sdp_bandwidth_free (sdp_bandwidth_t *elem)
 Free a bandwidth element. More...
 
int sdp_time_descr_init (sdp_time_descr_t **elem)
 Allocate a time description element. More...
 
void sdp_time_descr_free (sdp_time_descr_t *elem)
 Free a time description element. More...
 
int sdp_key_init (sdp_key_t **elem)
 Allocate a key element. More...
 
void sdp_key_free (sdp_key_t *elem)
 Free a key element. More...
 
int sdp_attribute_init (sdp_attribute_t **elem)
 Allocate an attribute element. More...
 
void sdp_attribute_free (sdp_attribute_t *elem)
 Free a attribute element. More...
 
int sdp_connection_init (sdp_connection_t **elem)
 Allocate a connection element. More...
 
void sdp_connection_free (sdp_connection_t *elem)
 Free a connection element. More...
 
int sdp_media_init (sdp_media_t **elem)
 Allocate a media element. More...
 
void sdp_media_free (sdp_media_t *elem)
 Free a media element. More...
 
int sdp_message_init (sdp_message_t **sdp)
 Allocate a SDP packet. More...
 
int sdp_message_parse (sdp_message_t *sdp, const char *buf)
 Parse a SDP packet. More...
 
int sdp_message_to_str (sdp_message_t *sdp, char **dest)
 Get a string representation of a SDP packet. More...
 
void sdp_message_free (sdp_message_t *sdp)
 Free a SDP packet. More...
 
int sdp_message_clone (sdp_message_t *sdp, sdp_message_t **dest)
 Clone a SDP packet. More...
 
int sdp_message_v_version_set (sdp_message_t *sdp, char *value)
 Set the version in a SDP packet. More...
 
char * sdp_message_v_version_get (sdp_message_t *sdp)
 Get the version ('v' field) of a SDP packet. More...
 
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. More...
 
char * sdp_message_o_username_get (sdp_message_t *sdp)
 Get the username ('o' field) of a SDP packet. More...
 
char * sdp_message_o_sess_id_get (sdp_message_t *sdp)
 Get the session id ('o' field) of a SDP packet. More...
 
char * sdp_message_o_sess_version_get (sdp_message_t *sdp)
 Get the session version ('o' field) of a SDP packet. More...
 
char * sdp_message_o_nettype_get (sdp_message_t *sdp)
 Get the nettype ('o' field) of a SDP packet. More...
 
char * sdp_message_o_addrtype_get (sdp_message_t *sdp)
 Get the addrtype ('o' field) of a SDP packet. More...
 
char * sdp_message_o_addr_get (sdp_message_t *sdp)
 Get the addr ('o' field) of a SDP packet. More...
 
int sdp_message_s_name_set (sdp_message_t *sdp, char *value)
 Set the session name in a SDP packet. More...
 
char * sdp_message_s_name_get (sdp_message_t *sdp)
 Get the session name ('s' field) of a SDP packet. More...
 
int sdp_message_i_info_set (sdp_message_t *sdp, int pos_media, char *value)
 Set the version in a SDP packet. More...
 
char * sdp_message_i_info_get (sdp_message_t *sdp, int pos_media)
 Get the session info ('i' field) of a SDP packet. More...
 
int sdp_message_u_uri_set (sdp_message_t *sdp, char *value)
 Set the session info in a SDP packet. More...
 
char * sdp_message_u_uri_get (sdp_message_t *sdp)
 Get the uri ('u' field) of a SDP packet. More...
 
int sdp_message_e_email_add (sdp_message_t *sdp, char *value)
 Set the version in a SDP packet. More...
 
char * sdp_message_e_email_get (sdp_message_t *sdp, int pos)
 Get one of the email ('e' field) of a SDP packet. More...
 
int sdp_message_p_phone_add (sdp_message_t *sdp, char *value)
 Set the version in a SDP packet. More...
 
char * sdp_message_p_phone_get (sdp_message_t *sdp, int pos)
 Get one of the phone ('p' field) of a SDP packet. More...
 
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. More...
 
sdp_connection_tsdp_message_connection_get (sdp_message_t *sdp, int pos_media, int pos)
 
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. More...
 
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. More...
 
char * sdp_message_c_addr_get (sdp_message_t *sdp, int pos_media, int pos)
 Get the address ('c' field) of a SDP packet. More...
 
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. More...
 
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. More...
 
int sdp_message_b_bandwidth_add (sdp_message_t *sdp, int pos_media, char *bwtype, char *bandwidth)
 Set the version in a SDP packet. More...
 
sdp_bandwidth_tsdp_message_bandwidth_get (sdp_message_t *sdp, int pos_media, int pos)
 Get the bandwidth ('b' field) of a SDP packet. More...
 
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. More...
 
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. More...
 
int sdp_message_t_time_descr_add (sdp_message_t *sdp, char *start, char *stop)
 Set the version in a SDP packet. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
int sdp_message_z_adjustments_set (sdp_message_t *sdp, char *value)
 Set the adjustments ('z' field) of a SDP packet. More...
 
char * sdp_message_z_adjustments_get (sdp_message_t *sdp)
 Get the adjustments ('z' field) of a SDP packet. More...
 
int sdp_message_k_key_set (sdp_message_t *sdp, int pos_media, char *keytype, char *keydata)
 Add a key in a SDP packet. More...
 
char * sdp_message_k_keytype_get (sdp_message_t *sdp, int pos_media)
 Get the key type ('k' field) of a SDP packet. More...
 
char * sdp_message_k_keydata_get (sdp_message_t *sdp, int pos_media)
 Get the key value ('k' field) of a SDP packet. More...
 
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. More...
 
int sdp_message_a_attribute_del (sdp_message_t *sdp, int pos_media, char *att_field)
 delete all attribute fields specified by att_field. More...
 
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. More...
 
sdp_attribute_tsdp_message_attribute_get (sdp_message_t *sdp, int pos_media, int pos)
 Get one of the attribute ('a' field) of a SDP packet. More...
 
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. More...
 
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. More...
 
int sdp_message_endof_media (sdp_message_t *sdp, int pos)
 Check if there is more media lines a SDP packet. More...
 
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. More...
 
char * sdp_message_m_media_get (sdp_message_t *sdp, int pos_media)
 Get the media type ('m' field) of a SDP packet. More...
 
char * sdp_message_m_port_get (sdp_message_t *sdp, int pos_media)
 Get the port number ('m' field) of a SDP packet. More...
 
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. More...
 
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. More...
 
char * sdp_message_m_proto_get (sdp_message_t *sdp, int pos_media)
 Get the protocol ('m' field) of a SDP packet. More...
 
int sdp_message_m_payload_add (sdp_message_t *sdp, int pos_media, char *payload)
 Set the payload in a SDP packet. More...
 
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. More...
 
int sdp_message_m_payload_del (sdp_message_t *sdp, int pos_media, int pos)
 Remove a payload in a SDP packet. More...
 

Detailed Description

Macro Definition Documentation

#define sdp_e_email_get   sdp_message_e_email_get

#include <sdp_message.h>

OBSOLETE: see sdp_message_e_email_get.

Definition at line 386 of file sdp_message.h.

Typedef Documentation

#include <sdp_message.h>

Structure for referencing an attribute header.

Definition at line 131 of file sdp_message.h.

#include <sdp_message.h>

Structure for referencing bandwidth header.

Definition at line 52 of file sdp_message.h.

#include <sdp_message.h>

Structure for referencing a connection header.

Definition at line 158 of file sdp_message.h.

#include <sdp_message.h>

Structure for referencing key header.

Definition at line 105 of file sdp_message.h.

#include <sdp_message.h>

Structure for referencing a media header.

Definition at line 189 of file sdp_message.h.

#include <sdp_message.h>

Structure for referencing a SDP packet.

Definition at line 227 of file sdp_message.h.

#include <sdp_message.h>

Structure for referencing time description header.

Definition at line 78 of file sdp_message.h.

Function Documentation

void sdp_attribute_free ( sdp_attribute_t elem)

#include <sdp_message.h>

Free a attribute element.

Parameters
elemThe element to work on.
int sdp_attribute_init ( sdp_attribute_t **  elem)

#include <sdp_message.h>

Allocate an attribute element.

Parameters
elemThe element to work on.
void sdp_bandwidth_free ( sdp_bandwidth_t elem)

#include <sdp_message.h>

Free a bandwidth element.

Parameters
elemThe element to work on.
int sdp_bandwidth_init ( sdp_bandwidth_t **  elem)

#include <sdp_message.h>

Allocate a bandwidth element.

Parameters
elemThe element to work on.
void sdp_connection_free ( sdp_connection_t elem)

#include <sdp_message.h>

Free a connection element.

Parameters
elemThe element to work on.
int sdp_connection_init ( sdp_connection_t **  elem)

#include <sdp_message.h>

Allocate a connection element.

Parameters
elemThe element to work on.
void sdp_key_free ( sdp_key_t elem)

#include <sdp_message.h>

Free a key element.

Parameters
elemThe element to work on.
int sdp_key_init ( sdp_key_t **  elem)

#include <sdp_message.h>

Allocate a key element.

Parameters
elemThe element to work on.
void sdp_media_free ( sdp_media_t elem)

#include <sdp_message.h>

Free a media element.

Parameters
elemThe element to work on.
int sdp_media_init ( sdp_media_t **  elem)

#include <sdp_message.h>

Allocate a media element.

Parameters
elemThe element to work on.
char* sdp_message_a_att_field_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Get the attribute name ('a' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
posThe attribute line number.
char* sdp_message_a_att_value_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Get the attribute value ('a' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
posThe attribute line number.
int sdp_message_a_attribute_add ( sdp_message_t sdp,
int  pos_media,
char *  att_field,
char *  att_value 
)

#include <sdp_message.h>

Set the version in a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe line number.
att_fieldThe token value.
att_valueThe token value.
int sdp_message_a_attribute_del ( sdp_message_t sdp,
int  pos_media,
char *  att_field 
)

#include <sdp_message.h>

delete all attribute fields specified by att_field.

Parameters
sdpThe element to work on.
pos_mediaThe line number.
att_fieldThe value to remove.
int sdp_message_a_attribute_del_at_index ( sdp_message_t sdp,
int  pos_media,
char *  att_field,
int  pos_attr 
)

#include <sdp_message.h>

delete one specific attribute fields specified by att_field.

Parameters
sdpThe element to work on.
pos_mediaThe line number.
att_fieldThe value to remove.
pos_attrThe index of attribute to remove.
sdp_attribute_t* sdp_message_attribute_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Get one of the attribute ('a' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
posThe attribute line number.
int sdp_message_b_bandwidth_add ( sdp_message_t sdp,
int  pos_media,
char *  bwtype,
char *  bandwidth 
)

#include <sdp_message.h>

Set the version in a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
bwtypeThe token value.
bandwidthThe token value.
char* sdp_message_b_bandwidth_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Get the bandwidth value ('b' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
posThe index in the bandwidth element list..
char* sdp_message_b_bwtype_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Get the bandwidth type ('b' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
posThe index in the bandwidth element list..
sdp_bandwidth_t* sdp_message_bandwidth_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Get the bandwidth ('b' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
posThe index in the bandwidth element list..
char* sdp_message_c_addr_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Get the address ('c' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
posThe index in the connection element list..
char* sdp_message_c_addr_multicast_int_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Get the multicast int info ('c' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
posThe index in the connection element list..
char* sdp_message_c_addr_multicast_ttl_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Get the multicast ttl ('c' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
posThe index in the connection element list..
char* sdp_message_c_addrtype_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Get the address type ('c' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
posThe index in the connection element list..
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 
)

#include <sdp_message.h>

Set the version in a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
nettypeThe token value.
addrtypeThe token value.
addrThe token value.
addr_multicast_ttlThe token value.
addr_multicast_intThe token value.
char* sdp_message_c_nettype_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Get the network type ('c' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
posThe index in the connection element list..
int sdp_message_clone ( sdp_message_t sdp,
sdp_message_t **  dest 
)

#include <sdp_message.h>

Clone a SDP packet.

Parameters
sdpThe element to work on.
destThe cloned element.
sdp_connection_t* sdp_message_connection_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

int sdp_message_e_email_add ( sdp_message_t sdp,
char *  value 
)

#include <sdp_message.h>

Set the version in a SDP packet.

Parameters
sdpThe element to work on.
valueThe token value.
char* sdp_message_e_email_get ( sdp_message_t sdp,
int  pos 
)

#include <sdp_message.h>

Get one of the email ('e' field) of a SDP packet.

Parameters
sdpThe element to work on.
posthe index of the email line.
int sdp_message_endof_media ( sdp_message_t sdp,
int  pos 
)

#include <sdp_message.h>

Check if there is more media lines a SDP packet.

Parameters
sdpThe element to work on.
posThe attribute line number.
void sdp_message_free ( sdp_message_t sdp)

#include <sdp_message.h>

Free a SDP packet.

Parameters
sdpThe element to work on.
char* sdp_message_i_info_get ( sdp_message_t sdp,
int  pos_media 
)

#include <sdp_message.h>

Get the session info ('i' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
int sdp_message_i_info_set ( sdp_message_t sdp,
int  pos_media,
char *  value 
)

#include <sdp_message.h>

Set the version in a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
valueThe token value.
int sdp_message_init ( sdp_message_t **  sdp)

#include <sdp_message.h>

Allocate a SDP packet.

Parameters
sdpThe element to work on.
int sdp_message_k_key_set ( sdp_message_t sdp,
int  pos_media,
char *  keytype,
char *  keydata 
)

#include <sdp_message.h>

Add a key in a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaindex of m field.
keytypeThe token value.
keydataThe token value.
char* sdp_message_k_keydata_get ( sdp_message_t sdp,
int  pos_media 
)

#include <sdp_message.h>

Get the key value ('k' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
char* sdp_message_k_keytype_get ( sdp_message_t sdp,
int  pos_media 
)

#include <sdp_message.h>

Get the key type ('k' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe media line number.
int sdp_message_m_media_add ( sdp_message_t sdp,
char *  media,
char *  port,
char *  number_of_port,
char *  proto 
)

#include <sdp_message.h>

Add a media line in a SDP packet.

Parameters
sdpThe element to work on.
mediaThe token value.
portThe token value.
number_of_portThe token value.
protoThe token value.
char* sdp_message_m_media_get ( sdp_message_t sdp,
int  pos_media 
)

#include <sdp_message.h>

Get the media type ('m' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe line number.
char* sdp_message_m_number_of_port_get ( sdp_message_t sdp,
int  pos_media 
)

#include <sdp_message.h>

Get the number of port ('m' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe line number.
int sdp_message_m_payload_add ( sdp_message_t sdp,
int  pos_media,
char *  payload 
)

#include <sdp_message.h>

Set the payload in a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe line number.
payloadThe token value.
int sdp_message_m_payload_del ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Remove a payload in a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe line number.
posThe position of the payload in the media line.
char* sdp_message_m_payload_get ( sdp_message_t sdp,
int  pos_media,
int  pos 
)

#include <sdp_message.h>

Get one of the payload number ('m' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe line number.
posThe i th payload element.
char* sdp_message_m_port_get ( sdp_message_t sdp,
int  pos_media 
)

#include <sdp_message.h>

Get the port number ('m' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe line number.
int sdp_message_m_port_set ( sdp_message_t sdp,
int  pos_media,
char *  port 
)

#include <sdp_message.h>

Set the port number ('m' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe line number.
portThe new port to set (must be allocated with osip_malloc)
char* sdp_message_m_proto_get ( sdp_message_t sdp,
int  pos_media 
)

#include <sdp_message.h>

Get the protocol ('m' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_mediaThe line number.
char* sdp_message_o_addr_get ( sdp_message_t sdp)

#include <sdp_message.h>

Get the addr ('o' field) of a SDP packet.

Parameters
sdpThe element to work on.
char* sdp_message_o_addrtype_get ( sdp_message_t sdp)

#include <sdp_message.h>

Get the addrtype ('o' field) of a SDP packet.

Parameters
sdpThe element to work on.
char* sdp_message_o_nettype_get ( sdp_message_t sdp)

#include <sdp_message.h>

Get the nettype ('o' field) of a SDP packet.

Parameters
sdpThe element to work on.
int sdp_message_o_origin_set ( sdp_message_t sdp,
char *  username,
char *  sess_id,
char *  sess_version,
char *  nettype,
char *  addrtype,
char *  addr 
)

#include <sdp_message.h>

Set the origin field in a SDP packet.

Parameters
sdpThe element to work on.
usernameThe token value.
sess_idThe token value.
sess_versionThe token value.
nettypeThe token value.
addrtypeThe token value.
addrThe token value.
char* sdp_message_o_sess_id_get ( sdp_message_t sdp)

#include <sdp_message.h>

Get the session id ('o' field) of a SDP packet.

Parameters
sdpThe element to work on.
char* sdp_message_o_sess_version_get ( sdp_message_t sdp)

#include <sdp_message.h>

Get the session version ('o' field) of a SDP packet.

Parameters
sdpThe element to work on.
char* sdp_message_o_username_get ( sdp_message_t sdp)

#include <sdp_message.h>

Get the username ('o' field) of a SDP packet.

Parameters
sdpThe element to work on.
int sdp_message_p_phone_add ( sdp_message_t sdp,
char *  value 
)

#include <sdp_message.h>

Set the version in a SDP packet.

Parameters
sdpThe element to work on.
valueThe token value.
char* sdp_message_p_phone_get ( sdp_message_t sdp,
int  pos 
)

#include <sdp_message.h>

Get one of the phone ('p' field) of a SDP packet.

Parameters
sdpThe element to work on.
posthe index of the phone line.
int sdp_message_parse ( sdp_message_t sdp,
const char *  buf 
)

#include <sdp_message.h>

Parse a SDP packet.

Parameters
sdpThe element to work on.
bufThe buffer to parse.
int sdp_message_r_repeat_add ( sdp_message_t sdp,
int  pos_time_descr,
char *  value 
)

#include <sdp_message.h>

Set the repeat information ('r' field) in a SDP packet.

Parameters
sdpThe element to work on.
pos_time_descrindex of t field.
valueThe token value.
char* sdp_message_r_repeat_get ( sdp_message_t sdp,
int  pos_time_descr,
int  pos_repeat 
)

#include <sdp_message.h>

Get the repeat information ('r' field) in a SDP packet.

Parameters
sdpThe element to work on.
pos_time_descrindex of t field.
pos_repeatindex of element in the 'r' field.
char* sdp_message_s_name_get ( sdp_message_t sdp)

#include <sdp_message.h>

Get the session name ('s' field) of a SDP packet.

Parameters
sdpThe element to work on.
int sdp_message_s_name_set ( sdp_message_t sdp,
char *  value 
)

#include <sdp_message.h>

Set the session name in a SDP packet.

Parameters
sdpThe element to work on.
valueThe token value.
char* sdp_message_t_start_time_get ( sdp_message_t sdp,
int  pos_td 
)

#include <sdp_message.h>

Get the start time value ('t' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_tdThe time description line number.
char* sdp_message_t_stop_time_get ( sdp_message_t sdp,
int  pos_td 
)

#include <sdp_message.h>

Get the stop time value ('t' field) of a SDP packet.

Parameters
sdpThe element to work on.
pos_tdThe time description line number.
int sdp_message_t_time_descr_add ( sdp_message_t sdp,
char *  start,
char *  stop 
)

#include <sdp_message.h>

Set the version in a SDP packet.

Parameters
sdpThe element to work on.
startThe token value.
stopThe token value.
int sdp_message_to_str ( sdp_message_t sdp,
char **  dest 
)

#include <sdp_message.h>

Get a string representation of a SDP packet.

Parameters
sdpThe element to work on.
destThe resulting new allocated buffer.
char* sdp_message_u_uri_get ( sdp_message_t sdp)

#include <sdp_message.h>

Get the uri ('u' field) of a SDP packet.

Parameters
sdpThe element to work on.
int sdp_message_u_uri_set ( sdp_message_t sdp,
char *  value 
)

#include <sdp_message.h>

Set the session info in a SDP packet.

Parameters
sdpThe element to work on.
valueThe token value.
char* sdp_message_v_version_get ( sdp_message_t sdp)

#include <sdp_message.h>

Get the version ('v' field) of a SDP packet.

Parameters
sdpThe element to work on.
int sdp_message_v_version_set ( sdp_message_t sdp,
char *  value 
)

#include <sdp_message.h>

Set the version in a SDP packet.

Parameters
sdpThe element to work on.
valueThe token value.
char* sdp_message_z_adjustments_get ( sdp_message_t sdp)

#include <sdp_message.h>

Get the adjustments ('z' field) of a SDP packet.

Parameters
sdpThe element to work on.
int sdp_message_z_adjustments_set ( sdp_message_t sdp,
char *  value 
)

#include <sdp_message.h>

Set the adjustments ('z' field) of a SDP packet.

Parameters
sdpThe element to work on.
valueThe token value.
void sdp_time_descr_free ( sdp_time_descr_t elem)

#include <sdp_message.h>

Free a time description element.

Parameters
elemThe element to work on.
int sdp_time_descr_init ( sdp_time_descr_t **  elem)

#include <sdp_message.h>

Allocate a time description element.

Parameters
elemThe element to work on.