[sr-dev] git:master:140ff964: ims_usrloc_pcscf: Remove unused param "lookup_check_received"

Carsten Bock carsten at ng-voice.com
Wed Nov 23 08:24:55 CET 2016


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

Author: Carsten Bock <carsten at ng-voice.com>
Committer: Carsten Bock <carsten at ng-voice.com>
Date: 2016-11-23T08:24:38+01:00

ims_usrloc_pcscf: Remove unused param "lookup_check_received"

---

Modified: modules/ims_usrloc_pcscf/doc/ims_usrloc_pcscf_admin.xml
Modified: modules/ims_usrloc_pcscf/udomain.c
Modified: modules/ims_usrloc_pcscf/ul_mod.c

---

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

---

diff --git a/modules/ims_usrloc_pcscf/doc/ims_usrloc_pcscf_admin.xml b/modules/ims_usrloc_pcscf/doc/ims_usrloc_pcscf_admin.xml
index 165ba41..b0bb07c 100644
--- a/modules/ims_usrloc_pcscf/doc/ims_usrloc_pcscf_admin.xml
+++ b/modules/ims_usrloc_pcscf/doc/ims_usrloc_pcscf_admin.xml
@@ -208,33 +208,7 @@ modparam("ims_usrloc_pcscf", "hashing_type", 1)
 </programlisting>
       </example>
     </section>
- <section>
-      <title>lookup_check_received (int)</title>
 
-      <para>If set to 1 (default), the Host in the contact will be checked
-	against the Host, from which the request was received.</para>
-
-      <itemizedlist>
-        <listitem>
-          <para>0 - Upon lookup, do not check the host against received.</para>
-        </listitem>
-
-        <listitem>
-          <para>1 - Compare the host in the contact against the received info.</para>
-        </listitem>
-      </itemizedlist>
-
-      <para><emphasis>Default value is 1.</emphasis></para>
-
-      <example>
-        <title>Set lookup_check_received parameter</title>
-
-        <programlisting format="linespecific">...
-modparam("ims_usrloc_pcscf", "lookup_check_received", 0)
-...
-</programlisting>
-      </example>
-    </section>
     <section>
       <title>match_contact_host_port (int)</title>
 
diff --git a/modules/ims_usrloc_pcscf/udomain.c b/modules/ims_usrloc_pcscf/udomain.c
index b3c99b0..b6e7456 100644
--- a/modules/ims_usrloc_pcscf/udomain.c
+++ b/modules/ims_usrloc_pcscf/udomain.c
@@ -65,7 +65,6 @@
 extern int db_mode;
 extern int db_mode_ext;
 extern unsigned int hashing_type;
-extern int lookup_check_received;
 extern int match_contact_host_port;
 
 #ifdef STATISTICS
diff --git a/modules/ims_usrloc_pcscf/ul_mod.c b/modules/ims_usrloc_pcscf/ul_mod.c
index a3060cf..3b2aed2 100644
--- a/modules/ims_usrloc_pcscf/ul_mod.c
+++ b/modules/ims_usrloc_pcscf/ul_mod.c
@@ -88,7 +88,6 @@ int db_mode         = 0;						/*!< Database sync scheme: 0-no db, 1-write throug
 int ul_fetch_rows 	= 2000;
 int hashing_type 	= 0;						/*!< has type for storing P-CSCF contacts - 0 - use full contact AOR, 1 - use IP:PORT only */
 
-int lookup_check_received = 1;						/*!< Should we check received on lookup? */
 int match_contact_host_port = 1;					/*!< Should we match contact just based on rui host and port*/
 
 db1_con_t* ul_dbh = 0;
@@ -115,7 +114,7 @@ static param_export_t params[] = {
 	{"timer_interval",      INT_PARAM, &timer_interval  },
 	{"db_mode",             INT_PARAM, &db_mode         },
 	{"hashing_type",		INT_PARAM, &hashing_type	},
-	{"lookup_check_received",		INT_PARAM, &lookup_check_received	},
+
 	{"match_contact_host_port",		INT_PARAM, &match_contact_host_port	},
         {"expires_grace",		INT_PARAM, &expires_grace	},
 




More information about the sr-dev mailing list