#include "../../mod_fix.h"#include "../../ut.h"#include "../../dprint.h"#include "../../usr_avp.h"#include "../../radius.h"#include "../../parser/parse_uri.h"#include "misc_radius.h"#include "extra.h"

Go to the source code of this file.
Defines | |
| #define | ADD_EXTRA_AVPAIR(_attrs, _attr, _val, _len) |
Functions | |
| static int | extract_avp (VALUE_PAIR *vp, unsigned short *flags, int_str *name, int_str *value) |
| static void | generate_avps (struct attr *attrs, VALUE_PAIR *received) |
| int | radius_does_uri_exist_0 (struct sip_msg *_m, char *_s1, char *_s2) |
| int | radius_does_uri_exist_1 (struct sip_msg *_m, char *_sp, char *_s2) |
| int | radius_does_uri_user_exist (struct sip_msg *_m, str user) |
| int | radius_does_uri_user_exist_0 (struct sip_msg *_m, char *_s1, char *_s2) |
| int | radius_does_uri_user_exist_1 (struct sip_msg *_m, char *_sp, char *_s2) |
| int | radius_does_uri_user_host_exist (struct sip_msg *_m, str user, str host) |
| int | radius_is_user_in (struct sip_msg *_m, char *_user, char *_group) |
| int | radius_load_callee_avps (struct sip_msg *_m, char *_callee, char *_s2) |
| int | radius_load_caller_avps (struct sip_msg *_m, char *_caller, char *_s2) |
Variables | |
| static str | val_arr [MAX_EXTRA] |
| #define ADD_EXTRA_AVPAIR | ( | _attrs, | |||
| _attr, | |||||
| _val, | |||||
| _len | ) |
Definition at line 141 of file misc_radius/functions.c.
| static int extract_avp | ( | VALUE_PAIR * | vp, | |
| unsigned short * | flags, | |||
| int_str * | name, | |||
| int_str * | value | |||
| ) | [inline, static] |
Definition at line 38 of file misc_radius/functions.c.
References AVP_NAME_STR, AVP_VAL_STR, _str::len, LM_ERR, int_str::n, int_str::s, _str::s, and str2int().
| static void generate_avps | ( | struct attr * | attrs, | |
| VALUE_PAIR * | received | |||
| ) | [static] |
Definition at line 112 of file misc_radius/functions.c.
References add_avp(), AVP_NAME_STR, AVP_VAL_STR, extract_avp(), _str::len, LM_DBG, LM_ERR, int_str::n, _str::s, int_str::s, and SA_SIP_AVP.
| int radius_does_uri_exist_0 | ( | struct sip_msg * | _m, | |
| char * | _s1, | |||
| char * | _s2 | |||
| ) |
Definition at line 534 of file misc_radius/functions.c.
References sip_uri::host, LM_ERR, parse_sip_msg_uri(), sip_msg::parsed_uri, radius_does_uri_user_host_exist(), and sip_uri::user.
| int radius_does_uri_exist_1 | ( | struct sip_msg * | _m, | |
| char * | _sp, | |||
| char * | _s2 | |||
| ) |
Definition at line 551 of file misc_radius/functions.c.
References _pv_value::flags, sip_uri::host, _str::len, LM_ERR, NULL, parse_uri(), pv_get_spec_value(), PV_VAL_STR, radius_does_uri_user_host_exist(), _pv_value::rs, _str::s, and sip_uri::user.
Definition at line 588 of file misc_radius/functions.c.
References ADD_EXTRA_AVPAIR, extra2strar(), generate_avps(), len, _str::len, LM_DBG, LM_ERR, rh, s, _str::s, SA_SERVICE_TYPE, SA_STATIC_MAX, SA_USER_NAME, service, uri_attrs, uri_extra, uri_vals, UV_CALL_CHECK, and val::v.
Referenced by radius_does_uri_user_exist_0(), and radius_does_uri_user_exist_1().
| int radius_does_uri_user_exist_0 | ( | struct sip_msg * | _m, | |
| char * | _s1, | |||
| char * | _s2 | |||
| ) |
Definition at line 662 of file misc_radius/functions.c.
References LM_ERR, parse_sip_msg_uri(), sip_msg::parsed_uri, radius_does_uri_user_exist(), and sip_uri::user.
| int radius_does_uri_user_exist_1 | ( | struct sip_msg * | _m, | |
| char * | _sp, | |||
| char * | _s2 | |||
| ) |
Definition at line 679 of file misc_radius/functions.c.
References _pv_value::flags, _str::len, LM_ERR, NULL, pv_get_spec_value(), PV_VAL_STR, radius_does_uri_user_exist(), _pv_value::rs, and _str::s.
Definition at line 422 of file misc_radius/functions.c.
References ADD_EXTRA_AVPAIR, extra2strar(), generate_avps(), len, _str::len, LM_DBG, LM_ERR, pkg_free, pkg_malloc, rh, s, _str::s, SA_SERVICE_TYPE, SA_SIP_URI_HOST, SA_STATIC_MAX, SA_USER_NAME, service, uri_attrs, uri_extra, uri_vals, use_sip_uri_host, UV_CALL_CHECK, and val::v.
Referenced by radius_does_uri_exist_0(), and radius_does_uri_exist_1().
| int radius_is_user_in | ( | struct sip_msg * | _m, | |
| char * | _user, | |||
| char * | _group | |||
| ) |
Definition at line 327 of file misc_radius/functions.c.
References ADD_EXTRA_AVPAIR, extra2strar(), fixup_get_svalue(), generate_avps(), group, group_attrs, group_extra, group_vals, GV_GROUP_CHECK, len, _str::len, LM_DBG, LM_ERR, NULL, rh, s, _str::s, SA_SERVICE_TYPE, SA_SIP_GROUP, SA_STATIC_MAX, SA_USER_NAME, service, user, and val::v.
| int radius_load_callee_avps | ( | struct sip_msg * | _m, | |
| char * | _callee, | |||
| char * | _s2 | |||
| ) |
Definition at line 244 of file misc_radius/functions.c.
References ADD_EXTRA_AVPAIR, callee_attrs, callee_extra, callee_vals, EV_SIP_CALLEE_AVPS, extra2strar(), fixup_get_svalue(), generate_avps(), len, _str::len, LM_DBG, LM_ERR, NULL, rh, s, _str::s, SA_SERVICE_TYPE, SA_STATIC_MAX, SA_USER_NAME, service, user, and val::v.
| int radius_load_caller_avps | ( | struct sip_msg * | _m, | |
| char * | _caller, | |||
| char * | _s2 | |||
| ) |
Definition at line 163 of file misc_radius/functions.c.
References ADD_EXTRA_AVPAIR, caller_attrs, caller_extra, caller_vals, extra2strar(), fixup_get_svalue(), generate_avps(), len, _str::len, LM_DBG, LM_ERR, NULL, rh, RV_SIP_CALLER_AVPS, s, _str::s, SA_SERVICE_TYPE, SA_STATIC_MAX, SA_USER_NAME, service, user, and val::v.
Definition at line 35 of file misc_radius/functions.c.
1.5.6