libosip  5.3.0
Classes | Typedefs | Functions
oSIP call-id header definition.

Classes

struct  osip_call_id
 

Typedefs

typedef struct osip_call_id osip_call_id_t
 

Functions

int osip_call_id_init (osip_call_id_t **header)
 
void osip_call_id_free (osip_call_id_t *header)
 
int osip_call_id_parse (osip_call_id_t *header, const char *hvalue)
 
int osip_call_id_to_str (const osip_call_id_t *header, char **dest)
 
int osip_call_id_clone (const osip_call_id_t *header, osip_call_id_t **dest)
 
void osip_call_id_set_number (osip_call_id_t *header, char *value)
 
char * osip_call_id_get_number (osip_call_id_t *header)
 
void osip_call_id_set_host (osip_call_id_t *header, char *value)
 
char * osip_call_id_get_host (osip_call_id_t *header)
 
int osip_call_id_match (osip_call_id_t *callid1, osip_call_id_t *callid2)
 

Detailed Description

Typedef Documentation

◆ osip_call_id_t

Structure for Call-Id headers.

Function Documentation

◆ osip_call_id_clone()

int osip_call_id_clone ( const osip_call_id_t header,
osip_call_id_t **  dest 
)

Clone a Call-id element.

Parameters
headerThe element to work on.
destA pointer on the copy of the element.

References osip_call_id::host, osip_call_id::number, and osip_call_id_init().

Referenced by osip_message_clone().

◆ osip_call_id_free()

void osip_call_id_free ( osip_call_id_t header)

Free a Call-id element.

Parameters
headerThe element to work on.

References osip_call_id::host, and osip_call_id::number.

Referenced by osip_message_free(), osip_message_set_call_id(), and osip_transaction_free2().

◆ osip_call_id_get_host()

char* osip_call_id_get_host ( osip_call_id_t header)

Get the host from a Call-Id header.

Parameters
headerThe element to work on.

References osip_call_id::host.

◆ osip_call_id_get_number()

char* osip_call_id_get_number ( osip_call_id_t header)

Get the number from a Call-Id header.

Parameters
headerThe element to work on.

References osip_call_id::number.

◆ osip_call_id_init()

int osip_call_id_init ( osip_call_id_t **  header)

Allocate a Call-id element.

Parameters
headerThe element to work on.

Referenced by osip_call_id_clone(), and osip_message_set_call_id().

◆ osip_call_id_match()

int osip_call_id_match ( osip_call_id_t callid1,
osip_call_id_t callid2 
)

Check if the Call-Id headers match. NOTE: THIS IS AN INTERNAL METHOD ONLY

Parameters
callid1The initial Call-Id header.
callid2The new Call-Id header.

References osip_call_id::host, and osip_call_id::number.

◆ osip_call_id_parse()

int osip_call_id_parse ( osip_call_id_t header,
const char *  hvalue 
)

Parse a Call-id element.

Parameters
headerThe element to work on.
hvalueThe string to parse.

References osip_call_id::host, and osip_call_id::number.

Referenced by osip_message_set_call_id().

◆ osip_call_id_set_host()

void osip_call_id_set_host ( osip_call_id_t header,
char *  value 
)

Set the host in the Call-Id element.

Parameters
headerThe element to work on.
valueThe value of the element.

References osip_call_id::host.

◆ osip_call_id_set_number()

void osip_call_id_set_number ( osip_call_id_t header,
char *  value 
)

Set the number in the Call-Id element.

Parameters
headerThe element to work on.
valueThe value of the element.

References osip_call_id::number.

◆ osip_call_id_to_str()

int osip_call_id_to_str ( const osip_call_id_t header,
char **  dest 
)

Get a string representation of a Call-id element.

Parameters
headerThe element to work on.
destA pointer on the new allocated string.

References osip_call_id::host, and osip_call_id::number.

Referenced by osip_dialog_match_as_uac(), and osip_dialog_match_as_uas().