#include <stdio.h>#include <string.h>#include <stdlib.h>#include "../../sr_module.h"#include "../../dprint.h"#include "../../error.h"#include "../../pvar.h"#include "../../mem/mem.h"#include "../tm/tm_load.h"#include "../tm/t_hooks.h"#include "../rr/api.h"#include "from.h"#include "auth.h"#include "uac_send.h"

Go to the source code of this file.
Functions | |
| static int | fixup_replace_from1 (void **param, int param_no) |
| static int | fixup_replace_from2 (void **param, int param_no) |
| static void | mod_destroy (void) |
| static int | mod_init (void) |
| static int | parse_auth_avp (char *avp_spec, pv_spec_t *avp, char *txt) |
| static int | w_replace_from1 (struct sip_msg *msg, char *str, char *str2) |
| static int | w_replace_from2 (struct sip_msg *msg, char *str, char *str2) |
| static int | w_restore_from (struct sip_msg *msg, char *foo, char *bar) |
| static int | w_uac_auth (struct sip_msg *msg, char *str, char *str2) |
Variables | |
| static char * | auth_password_avp = NULL |
| pv_spec_t | auth_password_spec |
| static char * | auth_realm_avp = NULL |
| pv_spec_t | auth_realm_spec |
| static char * | auth_username_avp = NULL |
| pv_spec_t | auth_username_spec |
| static cmd_export_t | cmds [] |
| struct module_exports | exports |
| int | from_restore_mode = FROM_AUTO_RESTORE |
| static MODULE_VERSION char * | from_restore_mode_str = NULL |
| static pv_export_t | mod_pvs [] |
| static param_export_t | params [] |
| str | rr_param = str_init("vsf") |
| str | uac_passwd = str_init("") |
| struct rr_binds | uac_rrb |
| struct tm_binds | uac_tmb |
| static int fixup_replace_from1 | ( | void ** | param, | |
| int | param_no | |||
| ) | [static] |
| static int fixup_replace_from2 | ( | void ** | param, | |
| int | param_no | |||
| ) | [static] |
Definition at line 263 of file uac/uac.c.
References E_OUT_OF_MEM, E_UNSPEC, _str::len, LM_CRIT, LM_ERR, NULL, pkg_free, pkg_malloc, pv_parse_format(), _str::s, and s.
| static void mod_destroy | ( | void | ) | [static] |
| static int mod_init | ( | void | ) | [static] |
Definition at line 150 of file uac/uac.c.
References rr_binds::append_fromtag, auth_password_avp, auth_realm_avp, auth_username_avp, FROM_AUTO_RESTORE, FROM_MANUAL_RESTORE, FROM_NO_RESTORE, from_restore_mode, from_restore_mode_str, init_from_replacer(), _str::len, LM_ERR, load_rr_api(), load_tm_api(), parse_auth_avp(), rr_binds::register_rrcb, rr_checker(), _str::s, uac_req_init(), uac_rrb, and uac_tmb.
| static int parse_auth_avp | ( | char * | avp_spec, | |
| pv_spec_t * | avp, | |||
| char * | txt | |||
| ) | [inline, static] |
Definition at line 138 of file uac/uac.c.
References _str::len, LM_ERR, NULL, pv_parse_spec(), _str::s, and s.
Referenced by mod_init().
| static int w_replace_from1 | ( | struct sip_msg * | msg, | |
| char * | str, | |||
| char * | str2 | |||
| ) | [static] |
| static int w_replace_from2 | ( | struct sip_msg * | msg, | |
| char * | str, | |||
| char * | str2 | |||
| ) | [static] |
Definition at line 334 of file uac/uac.c.
References _str::len, NULL, pv_printf_s(), replace_from(), and _str::s.
| static int w_restore_from | ( | struct sip_msg * | msg, | |
| char * | foo, | |||
| char * | bar | |||
| ) | [static] |
Definition at line 312 of file uac/uac.c.
References sip_msg::first_line, LM_ERR, restore_from(), SIP_REQUEST, and msg_start::type.
| static int w_uac_auth | ( | struct sip_msg * | msg, | |
| char * | str, | |||
| char * | str2 | |||
| ) | [static] |
char* auth_password_avp = NULL [static] |
char* auth_realm_avp = NULL [static] |
char* auth_username_avp = NULL [static] |
cmd_export_t cmds[] [static] |
| struct module_exports exports |
| int from_restore_mode = FROM_AUTO_RESTORE |
MODULE_VERSION char* from_restore_mode_str = NULL [static] |
pv_export_t mod_pvs[] [static] |
Initial value:
{
{ {"uac_req", sizeof("uac_req")-1}, PVT_OTHER, pv_get_uac_req, pv_set_uac_req,
pv_parse_uac_req_name, 0, 0, 0 },
{ {0, 0}, 0, 0, 0, 0, 0, 0, 0 }
}
param_export_t params[] [static] |
| str uac_passwd = str_init("") |
Definition at line 67 of file uac/uac.c.
Referenced by mod_init(), replace_from(), and restore_from().
Definition at line 66 of file uac/uac.c.
Referenced by mod_init(), replace_from(), rr_checker(), and uac_auth().
1.5.6