rls/subscribe.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "../../ut.h"
#include "../../dprint.h"
#include "../../data_lump_rpl.h"
#include "../../cmpapi.h"
#include "../../parser/msg_parser.h"
#include "../../parser/parse_event.h"
#include "../../parser/parse_expires.h"
#include "../../parser/parse_cseq.h"
#include "../../parser/parse_from.h"
#include "../../parser/contact/parse_contact.h"
#include "../../parser/parse_rr.h"
#include "../presence/subscribe.h"
#include "../presence/utils_func.h"
#include "../presence/hash.h"
#include "subscribe.h"
#include "notify.h"
#include "rls.h"

Include dependency graph for rls/subscribe.c:

Go to the source code of this file.

Defines

#define Stale_cseq_code   401

Functions

subs_tconstr_new_subs (struct sip_msg *msg, struct to_body *pto, pres_ev_t *event)
int get_resource_list (str *pres_uri, char **list)
int reply_200 (struct sip_msg *msg, str *contact, int expires)
int reply_421 (struct sip_msg *msg)
int reply_489 (struct sip_msg *msg)
int resource_subscriptions (subs_t *subs, xmlNodePtr rl_node)
int rls_handle_subscribe (struct sip_msg *msg, char *s1, char *s2)
int send_resource_subs (char *uri, void *param)
int update_rlsubs (subs_t *subs, unsigned int hash_code)

Variables

int counter = 0
static str pu_400_rpl = str_init("Bad request")
static str pu_421_rpl = str_init("Extension Required")
static str pu_489_rpl = str_init("Bad Event")
static str stale_cseq_rpl = str_init("Stale Cseq Value")
static str su_200_rpl = str_init("OK")


Define Documentation

#define Stale_cseq_code   401

Definition at line 59 of file rls/subscribe.c.

Referenced by update_rlsubs().


Function Documentation

subs_t* constr_new_subs ( struct sip_msg msg,
struct to_body pto,
pres_ev_t event 
)

int get_resource_list ( str pres_uri,
char **  list 
)

int reply_200 ( struct sip_msg msg,
str contact,
int  expires 
)

int reply_421 ( struct sip_msg msg  ) 

Definition at line 204 of file rls/subscribe.c.

References add_lump_rpl(), _str::len, LM_ERR, LUMP_RPL_HDR, _str::s, sl_binds::send_reply, and slb.

Referenced by rls_handle_subscribe().

int reply_489 ( struct sip_msg msg  ) 

int resource_subscriptions ( subs_t subs,
xmlNodePtr  rl_node 
)

int rls_handle_subscribe ( struct sip_msg msg,
char *  s1,
char *  s2 
)

int send_resource_subs ( char *  uri,
void *  param 
)

Definition at line 730 of file rls/subscribe.c.

References _str::len, pua_send_subscribe, and _str::s.

Referenced by resource_subscriptions().

int update_rlsubs ( subs_t subs,
unsigned int  hash_code 
)


Variable Documentation

int counter = 0

Definition at line 51 of file rls/subscribe.c.

str pu_400_rpl = str_init("Bad request") [static]

Definition at line 55 of file rls/subscribe.c.

str pu_421_rpl = str_init("Extension Required") [static]

Definition at line 54 of file rls/subscribe.c.

str pu_489_rpl = str_init("Bad Event") [static]

Definition at line 57 of file rls/subscribe.c.

str stale_cseq_rpl = str_init("Stale Cseq Value") [static]

Definition at line 56 of file rls/subscribe.c.

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

Definition at line 53 of file rls/subscribe.c.


Generated on Thu May 24 10:00:43 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6