h350_exp_fn.c File Reference

#include <regex.h>
#include "ldap.h"
#include "h350_mod.h"
#include "h350_exp_fn.h"
#include "../../pvar.h"
#include "../../ut.h"
#include "../../mem/mem.h"

Include dependency graph for h350_exp_fn.c:

Go to the source code of this file.

Defines

#define AVP_NAME_STR_BUF_LEN   1024
#define DIGEST_USERNAME_BUF_SIZE   2048
#define H350_AUTH_FILTER_PATTERN   "(&(objectClass=SIPIdentity)(SIPIdentityUserName=%s))"
#define H350_CALL_PREF_REGEX   "^([^ ]+) +([a-zA-Z]+)(:([0-9]+))?$"
#define H350_SIPURI_LOOKUP_LDAP_FILTER   "(&(objectClass=SIPIdentity)(SIPIdentitySIPURI=%s))"
#define SIP_URI_ESCAPED_MAX_LEN   1024

Functions

int h350_auth_lookup (struct sip_msg *_msg, pv_elem_t *_digest_username, struct h350_auth_lookup_avp_params *_avp_specs)
int h350_call_preferences (struct sip_msg *_msg, pv_elem_t *_avp_name_prefix)
int h350_exp_fn_init (void)
int h350_service_level (struct sip_msg *_msg, pv_elem_t *_avp_name_prefix)
int h350_sipuri_lookup (struct sip_msg *_msg, pv_elem_t *_sip_uri)

Variables

static regex_t * call_pref_preg
static str h350_call_pref_name = str_init("callPreferenceURI")
static str h350_service_level_name = str_init("SIPIdentityServiceLevel")
static str h350_sip_pwd_name = str_init("SIPIdentityPassword")


Define Documentation

#define AVP_NAME_STR_BUF_LEN   1024

Definition at line 52 of file h350_exp_fn.c.

Referenced by h350_auth_lookup(), h350_call_preferences(), and h350_service_level().

#define DIGEST_USERNAME_BUF_SIZE   2048

Definition at line 53 of file h350_exp_fn.c.

Referenced by h350_auth_lookup().

#define H350_AUTH_FILTER_PATTERN   "(&(objectClass=SIPIdentity)(SIPIdentityUserName=%s))"

Definition at line 43 of file h350_exp_fn.c.

Referenced by h350_auth_lookup().

#define H350_CALL_PREF_REGEX   "^([^ ]+) +([a-zA-Z]+)(:([0-9]+))?$"

Definition at line 49 of file h350_exp_fn.c.

Referenced by h350_exp_fn_init().

#define H350_SIPURI_LOOKUP_LDAP_FILTER   "(&(objectClass=SIPIdentity)(SIPIdentitySIPURI=%s))"

Definition at line 42 of file h350_exp_fn.c.

Referenced by h350_sipuri_lookup().

#define SIP_URI_ESCAPED_MAX_LEN   1024

Definition at line 51 of file h350_exp_fn.c.

Referenced by h350_sipuri_lookup().


Function Documentation

int h350_auth_lookup ( struct sip_msg _msg,
pv_elem_t _digest_username,
struct h350_auth_lookup_avp_params _avp_specs 
)

int h350_call_preferences ( struct sip_msg _msg,
pv_elem_t _avp_name_prefix 
)

int h350_exp_fn_init ( void   ) 

Definition at line 513 of file h350_exp_fn.c.

References call_pref_preg, H350_CALL_PREF_REGEX, LM_ERR, pkg_free, and pkg_malloc.

Referenced by child_init().

int h350_service_level ( struct sip_msg _msg,
pv_elem_t _avp_name_prefix 
)

int h350_sipuri_lookup ( struct sip_msg _msg,
pv_elem_t _sip_uri 
)


Variable Documentation

regex_t* call_pref_preg [static]

Definition at line 55 of file h350_exp_fn.c.

Referenced by h350_call_preferences(), and h350_exp_fn_init().

str h350_call_pref_name = str_init("callPreferenceURI") [static]

Definition at line 45 of file h350_exp_fn.c.

str h350_service_level_name = str_init("SIPIdentityServiceLevel") [static]

Definition at line 47 of file h350_exp_fn.c.

str h350_sip_pwd_name = str_init("SIPIdentityPassword") [static]

Definition at line 46 of file h350_exp_fn.c.


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