uac/uac.c File Reference

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

Include dependency graph for uac/uac.c:

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


Function Documentation

static int fixup_replace_from1 ( void **  param,
int  param_no 
) [static]

Definition at line 240 of file uac/uac.c.

References E_UNSPEC, _str::len, LM_ERR, NULL, pv_parse_format(), _str::s, and s.

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]

Definition at line 231 of file uac/uac.c.

References destroy_credentials().

static int mod_init ( void   )  [static]

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]

Definition at line 324 of file uac/uac.c.

References pv_printf_s(), and replace_from().

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]

Definition at line 359 of file uac/uac.c.

References uac_auth().


Variable Documentation

char* auth_password_avp = NULL [static]

Definition at line 60 of file uac/uac.c.

Referenced by mod_init().

Definition at line 70 of file uac/uac.c.

char* auth_realm_avp = NULL [static]

Definition at line 59 of file uac/uac.c.

Referenced by mod_init().

Definition at line 69 of file uac/uac.c.

char* auth_username_avp = NULL [static]

Definition at line 58 of file uac/uac.c.

Referenced by mod_init().

Definition at line 68 of file uac/uac.c.

Referenced by get_avp_credential().

cmd_export_t cmds[] [static]

Definition at line 90 of file uac/uac.c.

Definition at line 122 of file uac/uac.c.

int from_restore_mode = FROM_AUTO_RESTORE

Definition at line 65 of file uac/uac.c.

Referenced by mod_init(), and replace_from().

MODULE_VERSION char* from_restore_mode_str = NULL [static]

Definition at line 57 of file uac/uac.c.

Referenced by mod_init().

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 }
}

Definition at line 82 of file uac/uac.c.

param_export_t params[] [static]

Definition at line 109 of file uac/uac.c.

str rr_param = str_init("vsf")

Definition at line 63 of file uac/uac.c.

str uac_passwd = str_init("")

Definition at line 64 of file uac/uac.c.

struct rr_binds uac_rrb

Definition at line 67 of file uac/uac.c.

Referenced by mod_init(), replace_from(), and restore_from().

struct tm_binds uac_tmb

Definition at line 66 of file uac/uac.c.

Referenced by mod_init(), replace_from(), rr_checker(), and uac_auth().


Generated on Thu May 24 20:00:45 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6