Module: kamailio
Branch: master
Commit: b5f2aabbc692dedff4788e4470ea534d90c7cab4
URL: https://github.com/kamailio/kamailio/commit/b5f2aabbc692dedff4788e4470ea534…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-10-07T09:48:05+02:00
core: remove a code block related to hash functions, deactivated with #ifdef since 2002
---
Modified: src/core/hash_func.c
---
Diff: https://github.com/kamailio/kamailio/commit/b5f2aabbc692dedff4788e4470ea534…
Patch: https://github.com/kamailio/kamailio/commit/b5f2aabbc692dedff4788e4470ea534…
---
diff --git a/src/core/hash_func.c b/src/core/hash_func.c
index 939361a4aa..71d12f0d25 100644
--- a/src/core/hash_func.c
+++ b/src/core/hash_func.c
@@ -79,18 +79,6 @@ unsigned int new_hash( str call_id, str cseq_nr )
hash_code+=ccitt_tab[(unsigned char)*(cs+i)+123];
/* hash_code conditioning */
-#ifdef _BUG
- /* not flat ... % 111b has shorter period than
- & 111b by one and results in different distribution;
- ( 7 % 7 == 0, 7 %7 == 1 )
- % is used as a part of the hash function too, not only
- for rounding; & is not flat; whoever comes up with
- a nicer flat hash function which does not take
- costly division is welcome; feel free to verify
- distribution using hashtest()
- */
- hash_code &= (TABLE_ENTRIES-1); /* TABLE_ENTRIES = 2^k */
-#endif
hash_code=hash_code%(TABLE_ENTRIES-1)+1;
return hash_code;
}
Module: kamailio
Branch: master
Commit: 9dcab6fcc9e40253e3f9b451af533fe02b96a7c3
URL: https://github.com/kamailio/kamailio/commit/9dcab6fcc9e40253e3f9b451af533fe…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-10-07T09:16:20+02:00
kam_to_sr.sh: add a note that this script is now obselete
---
Modified: misc/scripts/kam_to_sr.sh
---
Diff: https://github.com/kamailio/kamailio/commit/9dcab6fcc9e40253e3f9b451af533fe…
Patch: https://github.com/kamailio/kamailio/commit/9dcab6fcc9e40253e3f9b451af533fe…
---
diff --git a/misc/scripts/kam_to_sr.sh b/misc/scripts/kam_to_sr.sh
index 32f1e037f7..212c0ba7e0 100755
--- a/misc/scripts/kam_to_sr.sh
+++ b/misc/scripts/kam_to_sr.sh
@@ -1,5 +1,8 @@
#!/usr/bin/env sh
#
+# Note: This script is obselete, especially after the changes in commit
+# 1f70d062b0b9cf1e, the module interface unification.
+#
# This is a simple script which attempts to convert kamailio modules so that
# they can be used with the sip-router core. Most of the changes done by the
# script deal with the changes in the database abstraction layer in the
Module: kamailio
Branch: master
Commit: 1f99806fa2db09b9ac6da7fbeb388a93c7638f13
URL: https://github.com/kamailio/kamailio/commit/1f99806fa2db09b9ac6da7fbeb388a9…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-10-06T18:04:00+02:00
Makefile.defs: cleanup the CPUTYPE/mtune definitions for i386 and x86_64
- Makefile.defs: cleanup the CPUTYPE/mtune definitions for i386 and x86_64
- revert change c925278b8ee3492f71a from 2011 for gcc SUSE 4.5.x, now not needed
- use for current gcc (>= gcc 4.2) the generic mtune, which is now available
- From the gcc manual:
"Produce code optimized for the most common IA32/AMD64/EM64T processors.
If you know the CPU on which your code will run, then you should use the
corresponding -mtune or -march option instead of -mtune=generic. But, if
you do not know exactly what CPU users of your application will have, then
you should use this option.
As new processors are deployed in the marketplace, the behavior of this
option will change. Therefore, if you upgrade to a newer version of GCC,
code generation controlled by this option will change to reflect the
processors that are most common at the time that version of GCC is released.
- unify opteron usage, use equivalent athlon64 mtune for old compilers instead
- simplify x86_64 gcc logic, remove now redundant 4.2.x if case
- there should be no performance implications, as we compile without debugging
- we prefer right now to have proper debugging, this would break with agressive
optimization
---
Modified: src/Makefile.defs
---
Diff: https://github.com/kamailio/kamailio/commit/1f99806fa2db09b9ac6da7fbeb388a9…
Patch: https://github.com/kamailio/kamailio/commit/1f99806fa2db09b9ac6da7fbeb388a9…
---
diff --git a/src/Makefile.defs b/src/Makefile.defs
index ee5fffa209..fe4dc4ce2f 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -888,7 +888,7 @@ ifeq ($(CC_NAME), gcc)
CFLAGS=-g $(CC_OPT) -funroll-loops -Wcast-align $(PROFILE)
#if gcc 8.0+, 7.0+, 6.0+, 5.0+, 4.5+ or 4.2+
ifeq (,$(strip $(filter-out 4.2+ 4.5+ 5.0+ 6.0+ 7.0+ 8.0+,$(CC_SHORTVER))))
-$(call set_if_empty,CPUTYPE,athlon64)
+$(call set_if_empty,CPUTYPE,generic)
CFLAGS+=-m32 -minline-all-stringops \
-falign-loops \
-ftree-vectorize \
@@ -969,18 +969,8 @@ ifeq ($(CC_NAME), gcc)
#common stuff
CFLAGS=-g $(CC_OPT) -funroll-loops -Wcast-align $(PROFILE)
#if gcc 4.5+
- # don't add '-mtune=$(CPUTYPE)' - gcc failure
-ifeq ($(CC_SHORTVER),$(filter $(CC_SHORTVER),4.5+ 5.0+ 6.0+ 7.0+ 8.0+))
-$(call set_if_empty,CPUTYPE,opteron)
- CFLAGS+=-m64 -minline-all-stringops \
- -falign-loops \
- -ftree-vectorize \
- -fno-strict-overflow
- LDFLAGS+=-m64
-else
- #if gcc 4.2+
-ifeq ($(CC_SHORTVER), 4.2+)
-$(call set_if_empty,CPUTYPE,opteron)
+ifeq ($(CC_SHORTVER),$(filter $(CC_SHORTVER),4.2+ 4.5+ 5.0+ 6.0+ 7.0+ 8.0+))
+$(call set_if_empty,CPUTYPE,generic)
CFLAGS+=-m64 -minline-all-stringops \
-falign-loops \
-ftree-vectorize \
@@ -990,7 +980,7 @@ $(call set_if_empty,CPUTYPE,opteron)
else
#if gcc 4.0+
ifeq ($(CC_SHORTVER), 4.x)
-$(call set_if_empty,CPUTYPE,opteron)
+$(call set_if_empty,CPUTYPE,athlon64)
CFLAGS+=-m64 -minline-all-stringops \
-falign-loops \
-ftree-vectorize \
@@ -1028,7 +1018,6 @@ endif # CC_SHORTVER, 2.9x
endif # CC_SHORTVER, 3.0
endif # CC_SHORTVER, 3.4
endif # CC_SHORTVER, 4.x
-endif # CC_SHORTVER, 4.2+
endif # CC_SHORTVER, 8.0+, 7.0+, 6.0+, 5.0+, 4.5+
else # CC_NAME, gcc
Module: kamailio
Branch: master
Commit: 13ea0ae72b0213125e8797dbfc143eb1e774726d
URL: https://github.com/kamailio/kamailio/commit/13ea0ae72b0213125e8797dbfc143eb…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-10-05T21:46:30+02:00
modules: readme files regenerated - dispatcher ... [skip ci]
---
Modified: src/modules/dispatcher/README
Modified: src/modules/presence/README
---
Diff: https://github.com/kamailio/kamailio/commit/13ea0ae72b0213125e8797dbfc143eb…
Patch: https://github.com/kamailio/kamailio/commit/13ea0ae72b0213125e8797dbfc143eb…
---
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index 90faef20ac..c90e631a94 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -993,7 +993,7 @@ modparam("dispatcher", "ds_db_extra_attrs", "socket=socket;pref=prefix")
tolerance. When facing congestion the weight of a gateway is
lowered by 1 for every ms of estimated congestion, a 'rweight'
value of 50 is recommended. See the example "configuring load
- balancing with congestion detection" bellow.
+ balancing with congestion detection" below.
The congestion estimation is done using an EWMA (see
ds_latency_estimator_alpha). If all the gateways in a set are
above their congestion threshold(weight), the load
diff --git a/src/modules/presence/README b/src/modules/presence/README
index f40ff9ecd6..74f1a8f337 100644
--- a/src/modules/presence/README
+++ b/src/modules/presence/README
@@ -1272,7 +1272,7 @@ typedef int (get_rules_doc_t)(str* user, str* domain, str** rules_doc);
used in obtaining the status of the subscription and processing the
notified body. A reference to the document should be put in the
auth_rules_doc of the subs_t structure given as a parameter to the
- functions described bellow.
+ functions described below.
4. get_auth_status
Module: kamailio
Branch: master
Commit: d753fc32b8aaa70990ec764be33cd9b0bd5f044a
URL: https://github.com/kamailio/kamailio/commit/d753fc32b8aaa70990ec764be33cd9b…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-10-05T21:41:33+02:00
presence: small spelling fix (bellow -> below)
---
Modified: src/modules/presence/doc/presence_devel.xml
---
Diff: https://github.com/kamailio/kamailio/commit/d753fc32b8aaa70990ec764be33cd9b…
Patch: https://github.com/kamailio/kamailio/commit/d753fc32b8aaa70990ec764be33cd9b…
---
diff --git a/src/modules/presence/doc/presence_devel.xml b/src/modules/presence/doc/presence_devel.xml
index 8b2426d4ac..608fa6eeb5 100644
--- a/src/modules/presence/doc/presence_devel.xml
+++ b/src/modules/presence/doc/presence_devel.xml
@@ -149,7 +149,7 @@ typedef int (get_rules_doc_t)(str* user, str* domain, str** rules_doc);
used in obtaining the status of the subscription and processing the
notified body. A reference to the document should be put in the
auth_rules_doc of the subs_t structure given as a parameter to the
- functions described bellow.
+ functions described below.
</para>
</section>