#include "../../str.h"
#include "../../radius.h"
#include "../../usr_avp.h"
#include "../../dprint.h"
#include "../../ut.h"
#include "../../cmpapi.h"
#include "../../parser/parse_uri.h"
#include "../../parser/parse_from.h"
#include "peering.h"

Go to the source code of this file.
Functions | |
| static int | extract_avp (VALUE_PAIR *vp, unsigned short *flags, int_str *name, int_str *value) |
| static int | generate_avps (VALUE_PAIR *received) |
| int | verify_destination (struct sip_msg *_msg, char *s1, char *s2) |
| int | verify_source (struct sip_msg *_msg, char *s1, char *s2) |
Definition in file verify.c.
| static int extract_avp | ( | VALUE_PAIR * | vp, | |
| unsigned short * | flags, | |||
| int_str * | name, | |||
| int_str * | value | |||
| ) | [inline, static] |
Definition at line 49 of file verify.c.
References AVP_NAME_STR, AVP_VAL_STR, _str::len, LM_DBG, LM_ERR, int_str::n, int_str::s, _str::s, and str2int().
| static int generate_avps | ( | VALUE_PAIR * | received | ) | [static] |
Definition at line 128 of file verify.c.
References A_SIP_AVP, add_avp(), attrs, AVP_NAME_STR, AVP_VAL_STR, extract_avp(), _str::len, LM_DBG, LM_ERR, int_str::n, _str::s, and int_str::s.
| int verify_destination | ( | struct sip_msg * | _msg, | |
| char * | s1, | |||
| char * | s2 | |||
| ) |
Definition at line 163 of file verify.c.
References A_SERVICE_TYPE, A_SIP_CALL_ID, A_SIP_FROM_TAG, A_SIP_URI_USER, A_USER_NAME, attrs, hdr_field::body, sip_msg::callid, sip_msg::from, generate_avps(), get_from, HDR_CALLID_F, sip_uri::host, _str::len, LM_DBG, LM_ERR, NULL, parse_from_header(), parse_headers(), parse_sip_msg_uri(), sip_msg::parsed_uri, rh, _str::s, service, SIP_PORT, sip_uri::user, val::v, V_SIP_VERIFY_DESTINATION, and vals.
| int verify_source | ( | struct sip_msg * | _msg, | |
| char * | s1, | |||
| char * | s2 | |||
| ) |
Definition at line 266 of file verify.c.
References A_SERVICE_TYPE, A_SIP_CALL_ID, A_SIP_FROM_TAG, A_SIP_REQUEST_HASH, A_SIP_URI_USER, A_USER_NAME, attrs, hdr_field::body, sip_msg::callid, cmp_hdrname_strzn(), sip_msg::from, get_from, HDR_CALLID_F, HDR_EOH_F, sip_msg::headers, sip_uri::host, _str::len, LM_DBG, LM_ERR, hdr_field::name, hdr_field::next, NULL, parse_from_header(), parse_headers(), parse_sip_msg_uri(), sip_msg::parsed_uri, rh, _str::s, service, SIP_PORT, sip_uri::user, val::v, V_SIP_VERIFY_SOURCE, and vals.
1.5.6