#include "../../parser/msg_parser.h"


Go to the source code of this file.
Defines | |
| #define | MESSAGE_400 "Bad Request" |
| #define | MESSAGE_500 "Server Internal Error" |
Functions | |
| int | get_realm (struct sip_msg *_m, hdr_types_t _hftype, struct sip_uri **_u) |
| Return parsed To or From, host part of the parsed uri is realm. | |
| int | send_resp (struct sip_msg *_m, int _code, str *_reason, char *_hdr, int _hdr_len) |
| Create a response with given code and reason phrase. | |
Definition in file auth/common.h.
| #define MESSAGE_400 "Bad Request" |
Definition at line 35 of file auth/common.h.
| #define MESSAGE_500 "Server Internal Error" |
Definition at line 36 of file auth/common.h.
| int get_realm | ( | struct sip_msg * | _m, | |
| hdr_types_t | _hftype, | |||
| struct sip_uri ** | _u | |||
| ) |
Return parsed To or From, host part of the parsed uri is realm.
| _m | SIP message | |
| _hftype | header field type | |
| _u | SIP URI |
Definition at line 54 of file auth/common.c.
References HDR_AUTHORIZATION_T, HDR_TO_F, _str::len, LM_ERR, sip_uri::method, NULL, parse_from_header(), parse_from_uri(), parse_headers(), parse_to_uri(), REQ_LINE, _str::s, and sip_msg::to.
Referenced by challenge(), diam_pre_auth(), and pre_auth().
Create a response with given code and reason phrase.
Create a response with given code and reason phrase Optionally add new headers specified in _hdr
| _m | SIP message | |
| _code | response code | |
| _reason | reason string | |
| _hdr | header to add | |
| _hdr_len | header length |
Definition at line 96 of file auth/common.c.
1.5.6