#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"

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 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 |
| #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 |
| int h350_auth_lookup | ( | struct sip_msg * | _msg, | |
| pv_elem_t * | _digest_username, | |||
| struct h350_auth_lookup_avp_params * | _avp_specs | |||
| ) |
Definition at line 107 of file h350_exp_fn.c.
References add_avp(), AVP_NAME_STR, AVP_NAME_STR_BUF_LEN, AVP_VAL_STR, DIGEST_USERNAME_BUF_SIZE, E_H350_INTERNAL, E_H350_NO_SUCCESS, E_H350_SUCCESS, H350_AUTH_FILTER_PATTERN, h350_base_dn, h350_ldap_session, h350_search_scope_int, _str::len, LM_ERR, LM_INFO, LM_WARN, NULL, h350_auth_lookup_avp_params::password_avp_spec, pv_get_avp_name(), pv_printf_s(), _pv_spec::pvp, _str::s, int_str::s, and h350_auth_lookup_avp_params::username_avp_spec.
Referenced by w_h350_auth_lookup().
Definition at line 281 of file h350_exp_fn.c.
References add_avp(), AVP_NAME_STR, AVP_NAME_STR_BUF_LEN, AVP_VAL_STR, call_pref_preg, E_H350_INTERNAL, E_H350_NO_SUCCESS, _str::len, LM_ERR, LM_INFO, int_str::n, NULL, pv_printf_s(), int_str::s, _str::s, and str2sint().
Referenced by w_h350_call_preferences().
| 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().
Definition at line 428 of file h350_exp_fn.c.
References add_avp(), AVP_NAME_STR, AVP_NAME_STR_BUF_LEN, E_H350_INTERNAL, E_H350_NO_SUCCESS, _str::len, LM_ERR, int_str::n, NULL, pv_printf_s(), int_str::s, and _str::s.
Referenced by w_h350_service_level().
Definition at line 57 of file h350_exp_fn.c.
References E_H350_INTERNAL, E_H350_NO_SUCCESS, h350_base_dn, h350_ldap_session, h350_search_scope_int, H350_SIPURI_LOOKUP_LDAP_FILTER, _str::len, LM_ERR, NULL, pv_printf_s(), _str::s, and SIP_URI_ESCAPED_MAX_LEN.
Referenced by w_h350_sipuri_lookup().
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.
1.5.6