SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
osip_dialog.h File Reference

oSIP dialog Routines More...

#include <osip2/osip.h>
Include dependency graph for osip_dialog.h:

Go to the source code of this file.

Data Structures

struct  osip_dialog
 Structure for referencing a dialog. More...
 

Macros

#define osip_dialog_set_instance(dialog, instance)   (dialog)->your_instance = (void*)(instance)
 Link osip dialog to application. More...
 
#define osip_dialog_get_instance(dialog)   (dialog)->your_instance
 Retrieve application instance from dialog. More...
 

Typedefs

typedef enum _osip_dialog_type_t osip_dialog_type_t
 
typedef struct osip_dialog osip_dialog_t
 Structure for referencing a dialog. More...
 

Enumerations

enum  _osip_dialog_type_t { CALLER, CALLEE }
 

Functions

int osip_dialog_init_as_uac (osip_dialog_t **dialog, osip_message_t *response)
 Allocate a osip_dialog_t element as a UAC. More...
 
int osip_dialog_init_as_uac_with_remote_request (osip_dialog_t **dialog, osip_message_t *next_request, int local_cseq)
 Allocate a osip_dialog_t element as a UAC. More...
 
int osip_dialog_init_as_uas (osip_dialog_t **dialog, osip_message_t *invite, osip_message_t *response)
 Allocate a osip_dialog_t element as a UAS. More...
 
void osip_dialog_free (osip_dialog_t *dialog)
 Free all resource in a osip_dialog_t element. More...
 
void osip_dialog_set_state (osip_dialog_t *dialog, state_t type)
 Set the state of the dialog. More...
 
int osip_dialog_update_route_set_as_uas (osip_dialog_t *dialog, osip_message_t *invite)
 Update the Route-Set as UAS of a dialog. More...
 
int osip_dialog_update_osip_cseq_as_uas (osip_dialog_t *dialog, osip_message_t *request)
 Update the CSeq (remote cseq) during a UAS transaction of a dialog. More...
 
int osip_dialog_match_as_uac (osip_dialog_t *dialog, osip_message_t *response)
 Match a response received with a dialog. More...
 
int osip_dialog_update_tag_as_uac (osip_dialog_t *dialog, osip_message_t *response)
 Update the tag as UAC of a dialog?. More...
 
int osip_dialog_update_route_set_as_uac (osip_dialog_t *dialog, osip_message_t *response)
 Update the Route-Set as UAC of a dialog. More...
 
int osip_dialog_match_as_uas (osip_dialog_t *dialog, osip_message_t *request)
 Match a request (response sent?) received with a dialog. More...
 
int osip_dialog_is_originator (osip_dialog_t *dialog)
 Is dialog initiated by as CALLER. More...
 
int osip_dialog_is_callee (osip_dialog_t *dialog)
 Is dialog initiated by as CALLEE. More...
 

Detailed Description

oSIP dialog Routines

Definition in file osip_dialog.h.