enum.c File Reference

#include <stdlib.h>
#include "enum.h"
#include "../../parser/parse_uri.h"
#include "../../parser/parse_from.h"
#include "../../ut.h"
#include "../../resolve.h"
#include "../../mem/mem.h"
#include "../../dset.h"
#include "../../qvalue.h"
#include "enum_mod.h"
#include "../../regexp.h"
#include "../../pvar.h"

Include dependency graph for enum.c:

Go to the source code of this file.

Functions

int add_uri_param (str *uri, str *param, str *new_uri)
static int cclen (const char *number)
int do_query (struct sip_msg *_msg, char *user, char *name, str *service)
int enum_pv_query_1 (struct sip_msg *_msg, char *_sp)
int enum_pv_query_2 (struct sip_msg *_msg, char *_sp, char *_suffix)
int enum_pv_query_3 (struct sip_msg *_msg, char *_sp, char *_suffix, char *_service)
int enum_query_0 (struct sip_msg *_msg, char *_str1, char *_str2)
int enum_query_1 (struct sip_msg *_msg, char *_suffix, char *_str2)
int enum_query_2 (struct sip_msg *_msg, char *_suffix, char *_service)
static int findchr (char *p, int c, unsigned int size)
int i_enum_query_0 (struct sip_msg *_msg, char *_suffix, char *_service)
int i_enum_query_1 (struct sip_msg *_msg, char *_suffix, char *_service)
int i_enum_query_2 (struct sip_msg *_msg, char *_suffix, char *_service)
static int is_e164 (str *_user)
int is_from_user_enum_0 (struct sip_msg *_msg, char *_str1, char *_str2)
int is_from_user_enum_1 (struct sip_msg *_msg, char *_suffix, char *_str2)
int is_from_user_enum_2 (struct sip_msg *_msg, char *_suffix, char *_service)
static int naptr_greater (struct rdata *a, struct rdata *b)
static void naptr_sort (struct rdata **head)
static int parse_naptr_regexp (char *first, int len, str *pattern, str *replacement)
static int sip_match (struct naptr_rdata *naptr, str *service)


Function Documentation

int add_uri_param ( str uri,
str param,
str new_uri 
)

static int cclen ( const char *  number  )  [static]

Definition at line 52 of file enum.c.

Referenced by i_enum_query_2().

int do_query ( struct sip_msg _msg,
char *  user,
char *  name,
str service 
)

int enum_pv_query_1 ( struct sip_msg _msg,
char *  _sp 
)

Definition at line 926 of file enum.c.

References enum_pv_query_3(), service, and suffix.

int enum_pv_query_2 ( struct sip_msg _msg,
char *  _sp,
char *  _suffix 
)

Definition at line 934 of file enum.c.

References enum_pv_query_3(), and service.

int enum_pv_query_3 ( struct sip_msg _msg,
char *  _sp,
char *  _suffix,
char *  _service 
)

int enum_query_0 ( struct sip_msg _msg,
char *  _str1,
char *  _str2 
)

Definition at line 680 of file enum.c.

References enum_query_2(), service, and suffix.

int enum_query_1 ( struct sip_msg _msg,
char *  _suffix,
char *  _str2 
)

Definition at line 689 of file enum.c.

References enum_query_2(), and service.

int enum_query_2 ( struct sip_msg _msg,
char *  _suffix,
char *  _service 
)

static int findchr ( char *  p,
int  c,
unsigned int  size 
) [inline, static]

Definition at line 111 of file enum.c.

References len.

Referenced by sip_match().

int i_enum_query_0 ( struct sip_msg _msg,
char *  _suffix,
char *  _service 
)

Definition at line 744 of file enum.c.

References i_enum_query_2(), i_suffix, and service.

int i_enum_query_1 ( struct sip_msg _msg,
char *  _suffix,
char *  _service 
)

Definition at line 752 of file enum.c.

References i_enum_query_2(), and service.

int i_enum_query_2 ( struct sip_msg _msg,
char *  _suffix,
char *  _service 
)

static int is_e164 ( str _user  )  [inline, static]

Definition at line 228 of file enum.c.

References via_body::i, _str::len, and _str::s.

int is_from_user_enum_0 ( struct sip_msg _msg,
char *  _str1,
char *  _str2 
)

Definition at line 248 of file enum.c.

References is_from_user_enum_2(), service, and suffix.

int is_from_user_enum_1 ( struct sip_msg _msg,
char *  _suffix,
char *  _str2 
)

Definition at line 256 of file enum.c.

References is_from_user_enum_2(), and service.

int is_from_user_enum_2 ( struct sip_msg _msg,
char *  _suffix,
char *  _service 
)

static int naptr_greater ( struct rdata a,
struct rdata b 
) [inline, static]

Definition at line 508 of file enum.c.

References naptr_rdata::order, naptr_rdata::pref, rdata::rdata, and rdata::type.

static void naptr_sort ( struct rdata **  head  )  [inline, static]

Definition at line 529 of file enum.c.

References naptr_greater(), rdata::next, NULL, and s.

static int parse_naptr_regexp ( char *  first,
int  len,
str pattern,
str replacement 
) [inline, static]

Definition at line 129 of file enum.c.

References _str::len, LM_ERR, _str::s, and second.

static int sip_match ( struct naptr_rdata naptr,
str service 
) [inline, static]


Generated on Wed May 23 06:01:02 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6