Module: kamailio
Branch: master
Commit: f871322c2d4102f5f67178b702fdf90b5b01ceea
URL: 
https://github.com/kamailio/kamailio/commit/f871322c2d4102f5f67178b702fdf90b5b01ceea

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2020-04-14T11:22:59+02:00

presence: removed unused module parameter to_tag_pref

- no longer used to set prefix for to-tag value

---

Modified: src/modules/presence/presence.c
Modified: src/modules/presence/presence.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/f871322c2d4102f5f67178b702fdf90b5b01ceea.diff
Patch: 
https://github.com/kamailio/kamailio/commit/f871322c2d4102f5f67178b702fdf90b5b01ceea.patch

---

diff --git a/src/modules/presence/presence.c b/src/modules/presence/presence.c
index c25d1aa8f6..4e42e99108 100644
--- a/src/modules/presence/presence.c
+++ b/src/modules/presence/presence.c
@@ -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 */
@@ -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 },
@@ -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;
        }
diff --git a/src/modules/presence/presence.h b/src/modules/presence/presence.h
index 26f39a45a5..151647cf2a 100644
--- a/src/modules/presence/presence.h
+++ b/src/modules/presence/presence.h
@@ -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;


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to