Skip to content

Commit

Permalink
p_usrloc: added path and +instance support
Browse files Browse the repository at this point in the history
- Added functionality for path headers and +instance contact header fields in REGISTER requests for the p_usrloc module.
  • Loading branch information
pmarschall committed Jun 15, 2015
1 parent 52c4316 commit 20d2c6f
Show file tree
Hide file tree
Showing 5 changed files with 375 additions and 69 deletions.
4 changes: 4 additions & 0 deletions modules/p_usrloc/p_usrloc_mod.c
Expand Up @@ -87,6 +87,8 @@ static int mi_child_init(void);
static int mi_child_loc_nr_init(void);
extern int bind_usrloc(usrloc_api_t* api);
extern int ul_locks_no;
int ul_db_update_as_insert = 0;

/*
* Module parameters and their default values
*/
Expand Down Expand Up @@ -168,6 +170,7 @@ int policy = DB_DEFAULT_POLICY;
int db_write = 0;
int db_master_write = 0;
int alg_location = 0;
int ul_db_ops_ruid = 0;

int db_use_transactions = 0;
str db_transaction_level = str_init(DB_DEFAULT_TRANSACTION_LEVEL);
Expand Down Expand Up @@ -249,6 +252,7 @@ static param_export_t params[] = {
{"write_on_master_db", INT_PARAM, &db_master_write },
{"connection_expires", INT_PARAM, &connection_expires },
{"alg_location", INT_PARAM, &alg_location },
{"db_ops_ruid", INT_PARAM, &ul_db_ops_ruid },
{0, 0, 0}
};

Expand Down
3 changes: 2 additions & 1 deletion modules/p_usrloc/p_usrloc_mod.h
Expand Up @@ -92,7 +92,7 @@ extern int desc_time_order;
extern int cseq_delay;
extern int ul_fetch_rows;
extern int ul_hash_size;

extern int ul_db_update_as_insert;


extern str default_db_url;
Expand All @@ -102,6 +102,7 @@ extern str domain_db;
extern int expire;

extern int matching_mode;
extern int ul_db_ops_ruid;

struct mi_root* mi_ul_db_refresh(struct mi_root* cmd, void* param);
struct mi_root* mi_loc_nr_refresh(struct mi_root* cmd, void* param);
Expand Down

0 comments on commit 20d2c6f

Please sign in to comment.