lookup.c File Reference

SIP registrar module - lookup contacts in usrloc. More...

#include <string.h>
#include "../../ut.h"
#include "../../dset.h"
#include "../../str.h"
#include "../../config.h"
#include "../../action.h"
#include "../../parser/parse_rr.h"
#include "../usrloc/usrloc.h"
#include "common.h"
#include "regtime.h"
#include "reg_mod.h"
#include "lookup.h"

Include dependency graph for lookup.c:

Go to the source code of this file.

Defines

#define allowed_method(_msg, _c)   ( !method_filtering || ((_msg)->REQ_METHOD)&((_c)->methods) )

Functions

int lookup (struct sip_msg *_m, char *_t, char *_s)
 Lookup contact in the database and rewrite Request-URI.
int registered (struct sip_msg *_m, char *_t, char *_s)
 the is_registered() function Return true if the AOR in the Request-URI is registered, it is similar to lookup but registered neither rewrites the Request-URI nor appends branches


Detailed Description

SIP registrar module - lookup contacts in usrloc.

Definition in file lookup.c.


Define Documentation

#define allowed_method ( _msg,
_c   )     ( !method_filtering || ((_msg)->REQ_METHOD)&((_c)->methods) )

Definition at line 49 of file lookup.c.

Referenced by lookup().


Function Documentation

int lookup ( struct sip_msg _m,
char *  _t,
char *  _s 
)

int registered ( struct sip_msg _m,
char *  _t,
char *  _s 
)

the is_registered() function Return true if the AOR in the Request-URI is registered, it is similar to lookup but registered neither rewrites the Request-URI nor appends branches

Return true if the AOR in the Request-URI is registered, it is similar to lookup but registered neither rewrites the Request-URI nor appends branches.

Definition at line 176 of file lookup.c.

References act_time, ucontact::callid, urecord::contacts, extract_aor(), sip_msg::first_line, usrloc_api::get_urecord, is_avp_str_val, _str::len, LM_DBG, LM_ERR, usrloc_api::lock_udomain, int_str::n, sip_msg::new_uri, ucontact::next, reg_callid_avp_name, reg_callid_avp_type, usrloc_api::release_urecord, msg_start::request, int_str::s, _str::s, search_first_avp(), msg_start::u, ul, usrloc_api::unlock_udomain, VALID_CONTACT, and ZSW.


Generated on Wed May 23 18:00:41 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6