SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Typedefs | Functions
oSIP call-id header definition.
Collaboration diagram for oSIP call-id header definition.:

Data Structures

struct  osip_call_id
 Definition of the Call-Id header. More...
 

Typedefs

typedef struct osip_call_id osip_call_id_t
 Structure for Call-Id headers. More...
 

Functions

int osip_call_id_init (osip_call_id_t **header)
 Allocate a Call-id element. More...
 
void osip_call_id_free (osip_call_id_t *header)
 Free a Call-id element. More...
 
int osip_call_id_parse (osip_call_id_t *header, const char *hvalue)
 Parse a Call-id element. More...
 
int osip_call_id_to_str (const osip_call_id_t *header, char **dest)
 Get a string representation of a Call-id element. More...
 
int osip_call_id_clone (const osip_call_id_t *header, osip_call_id_t **dest)
 Clone a Call-id element. More...
 
void osip_call_id_set_number (osip_call_id_t *header, char *value)
 Set the number in the Call-Id element. More...
 
char * osip_call_id_get_number (osip_call_id_t *header)
 Get the number from a Call-Id header. More...
 
void osip_call_id_set_host (osip_call_id_t *header, char *value)
 Set the host in the Call-Id element. More...
 
char * osip_call_id_get_host (osip_call_id_t *header)
 Get the host from a Call-Id header. More...
 
int osip_call_id_match (osip_call_id_t *callid1, osip_call_id_t *callid2)
 Check if the Call-Id headers match. More...
 

Detailed Description

Typedef Documentation

#include <osip_call_id.h>

Structure for Call-Id headers.

Definition at line 39 of file osip_call_id.h.

Function Documentation

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

#include <osip_call_id.h>

Clone a Call-id element.

Parameters
headerThe element to work on.
destA pointer on the copy of the element.
void osip_call_id_free ( osip_call_id_t header)

#include <osip_call_id.h>

Free a Call-id element.

Parameters
headerThe element to work on.
char* osip_call_id_get_host ( osip_call_id_t header)

#include <osip_call_id.h>

Get the host from a Call-Id header.

Parameters
headerThe element to work on.
char* osip_call_id_get_number ( osip_call_id_t header)

#include <osip_call_id.h>

Get the number from a Call-Id header.

Parameters
headerThe element to work on.
int osip_call_id_init ( osip_call_id_t **  header)

#include <osip_call_id.h>

Allocate a Call-id element.

Parameters
headerThe element to work on.
int osip_call_id_match ( osip_call_id_t callid1,
osip_call_id_t callid2 
)

#include <osip_call_id.h>

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.
int osip_call_id_parse ( osip_call_id_t header,
const char *  hvalue 
)

#include <osip_call_id.h>

Parse a Call-id element.

Parameters
headerThe element to work on.
hvalueThe string to parse.
void osip_call_id_set_host ( osip_call_id_t header,
char *  value 
)

#include <osip_call_id.h>

Set the host in the Call-Id element.

Parameters
headerThe element to work on.
valueThe value of the element.
void osip_call_id_set_number ( osip_call_id_t header,
char *  value 
)

#include <osip_call_id.h>

Set the number in the Call-Id element.

Parameters
headerThe element to work on.
valueThe value of the element.
int osip_call_id_to_str ( const osip_call_id_t header,
char **  dest 
)

#include <osip_call_id.h>

Get a string representation of a Call-id element.

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