Functions

modules_k/registrar/lookup.h File Reference

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

#include "../../parser/msg_parser.h"
#include "../../modules_k/usrloc/usrloc.h"
Include dependency graph for modules_k/registrar/lookup.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions


Detailed Description

Definition in file modules_k/registrar/lookup.h.


Function Documentation

int lookup ( struct sip_msg _m,
udomain_t _d,
str _uri 
)

Lookup a contact in usrloc and rewrite R-URI if found.

Returns:
: -1 : not found -2 : found but method not allowed -3 : error

Definition at line 90 of file modules_k/registrar/lookup.c.

References ucontact::aor, ucontact::c, ucontact::cflags, urecord::contacts, extract_aor(), sip_msg::first_line, get_act_time(), get_path_dst_uri(), getbflagsval(), ucontact::instance, km_append_branch, _str::len, sip_msg::new_uri, ucontact::next, ucontact::path, ucontact::q, ucontact::received, reg_cmp_instances(), reset_dst_uri(), ucontact::ruid, _str::s, set_dst_uri(), set_force_socket, set_ruri_q(), setbflagsval(), ucontact::sock, ul, sip_uri::user, and VALID_CONTACT.

Referenced by w_lookup().

Here is the call graph for this function:

Here is the caller graph for this function: