Functions | Variables

modules_k/registrar/reg_mod.c File Reference

SIP registrar module - interface

More...

#include <stdio.h>
#include "../../sr_module.h"
#include "../../timer.h"
#include "../../dprint.h"
#include "../../error.h"
#include "../../socket_info.h"
#include "../../pvar.h"
#include "../../modules_k/usrloc/usrloc.h"
#include "../../lib/kcore/statistics.h"
#include "../../lib/srutils/sruid.h"
#include "../../modules/sl/sl.h"
#include "../../mod_fix.h"
#include "save.h"
#include "api.h"
#include "lookup.h"
#include "regpv.h"
#include "reply.h"
#include "reg_mod.h"
#include "config.h"
#include "../../data_lump.h"
#include "../../ip_addr.h"
#include "../../ut.h"
Include dependency graph for modules_k/registrar/reg_mod.c:

Go to the source code of this file.

Functions

Variables


Detailed Description

Definition in file modules_k/registrar/reg_mod.c.


Function Documentation

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

Convert char* parameter to udomain_t* pointer.

Definition at line 466 of file modules_k/registrar/reg_mod.c.

References usrloc_api::register_udomain.

Referenced by domain_uri_fixup(), fetchc_fixup(), save_fixup(), and unreg_fixup().

Here is the caller graph for this function:

static int mod_init ( void   )  [static]

Initialize parent.

Definition at line 261 of file modules_k/registrar/reg_mod.c.

References bind_usrloc(), _str::len, pv_get_avp_name(), _str::s, sl_load_api(), and tcp_persistent_flag.

Here is the call graph for this function:


Variable Documentation

stat_export_t mod_stats[]
Initial value:
 {
        {"max_expires",       STAT_NO_RESET, &max_expires_stat        },
        {"max_contacts",      STAT_NO_RESET, &max_contacts_stat       },
        {"default_expire",    STAT_NO_RESET, &default_expire_stat     },
        {"default_expires_range", STAT_NO_RESET, &default_expire_range_stat },
        {"accepted_regs",                 0, &accepted_registrations  },
        {"rejected_regs",                 0, &rejected_registrations  },
        {0, 0, 0}
}

Definition at line 227 of file modules_k/registrar/reg_mod.c.

int path_mode = PATH_MODE_STRICT
  • STRICT (2): always insert, error if no support indicated in request
  • LAZY (1): insert only if support indicated in request
  • OFF (0): never insert

Definition at line 109 of file modules_k/registrar/reg_mod.c.

Referenced by pack_ci(), and reg_send_reply().