Skip to content

Commit

Permalink
presence: removed unused module parameter to_tag_pref
Browse files Browse the repository at this point in the history
- no longer used to set prefix for to-tag value
  • Loading branch information
miconda committed Apr 14, 2020
1 parent fe0e0b8 commit f871322
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/modules/presence/presence.c
Expand Up @@ -109,9 +109,6 @@ sip_uri_match_f presence_sip_uri_match;
static int sip_uri_case_sensitive_match(str *s1, str *s2);
static int sip_uri_case_insensitive_match(str *s1, str *s2);

/* to tag prefix */
char *pres_totag_pref = "10";

/* TM bind */
struct tm_binds tmb;
/* SL API structure */
Expand Down Expand Up @@ -220,7 +217,6 @@ static param_export_t params[]={
{ "notifier_processes", INT_PARAM, &pres_notifier_processes },
{ "force_delete", INT_PARAM, &pres_force_delete },
{ "startup_mode", INT_PARAM, &pres_startup_mode },
{ "to_tag_pref", PARAM_STRING, &pres_totag_pref },
{ "expires_offset", INT_PARAM, &pres_expires_offset },
{ "max_expires", INT_PARAM, &pres_max_expires },
{ "min_expires", INT_PARAM, &pres_min_expires },
Expand Down Expand Up @@ -319,10 +315,6 @@ static int mod_init(void)
pres_expires_offset = 0;
}

if(pres_totag_pref == NULL || strlen(pres_totag_pref) == 0) {
pres_totag_pref = "10";
}

if(pres_max_expires <= 0) {
pres_max_expires = 3600;
}
Expand Down
1 change: 0 additions & 1 deletion src/modules/presence/presence.h
Expand Up @@ -70,7 +70,6 @@ extern str watchers_table;
extern int pres_counter;
extern int pres_pid;
extern int pres_startup_time;
extern char *pres_totag_pref;
extern int pres_expires_offset;
extern int pres_cseq_offset;
extern str pres_server_address;
Expand Down

0 comments on commit f871322

Please sign in to comment.