presentity.c File Reference

Kamailio presence module :: Presentity handling. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "../../db/db.h"
#include "../../dprint.h"
#include "../../mem/shm_mem.h"
#include "../../str.h"
#include "../alias_db/alias_db.h"
#include "../../data_lump_rpl.h"
#include "presentity.h"
#include "presence.h"
#include "notify.h"
#include "publish.h"
#include "hash.h"
#include "utils_func.h"

Include dependency graph for presentity.c:

Go to the source code of this file.

Defines

#define ETAG_LEN   128

Functions

int check_if_dialog (str body, int *is_dialog)
char * extract_sphere (str body)
char * generate_ETag (int publ_count)
char * get_sphere (str *pres_uri)
presentity_tnew_presentity (str *domain, str *user, int expires, pres_ev_t *event, str *etag, str *sender)
int pres_htable_restore (void)
int publ_send200ok (struct sip_msg *msg, int lexpire, str etag)
int update_presentity (struct sip_msg *msg, presentity_t *presentity, str *body, int new_t, int *sent_reply, char *sphere)
xmlNodePtr xmlNodeGetChildByName (xmlNodePtr node, const char *name)
xmlNodePtr xmlNodeGetNodeByName (xmlNodePtr node, const char *name, const char *ns)

Variables

static str pu_200_rpl = str_init("OK")
static str pu_412_rpl = str_init("Conditional request failed")


Detailed Description

Kamailio presence module :: Presentity handling.

Definition in file presentity.c.


Define Documentation

#define ETAG_LEN   128

Definition at line 59 of file presentity.c.

Referenced by generate_ETag().


Function Documentation

int check_if_dialog ( str  body,
int *  is_dialog 
)

Definition at line 243 of file presentity.c.

References _str::len, LM_ERR, NULL, _str::s, and xmlNodeGetChildByName().

Referenced by update_presentity().

char* extract_sphere ( str  body  ) 

char* generate_ETag ( int  publ_count  ) 

char* get_sphere ( str pres_uri  ) 

presentity_t* new_presentity ( str domain,
str user,
int  expires,
pres_ev_t event,
str etag,
str sender 
)

int pres_htable_restore ( void   ) 

int publ_send200ok ( struct sip_msg msg,
int  lexpire,
str  etag 
)

int update_presentity ( struct sip_msg msg,
presentity_t presentity,
str body,
int  new_t,
int *  sent_reply,
char *  sphere 
)

xmlNodePtr xmlNodeGetChildByName ( xmlNodePtr  node,
const char *  name 
)

xmlNodePtr xmlNodeGetNodeByName ( xmlNodePtr  node,
const char *  name,
const char *  ns 
)


Variable Documentation

str pu_200_rpl = str_init("OK") [static]

Definition at line 56 of file presentity.c.

str pu_412_rpl = str_init("Conditional request failed") [static]

Definition at line 57 of file presentity.c.


Generated on Thu May 24 08:01:15 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6