kamailio-5.x: update to 5.2.4 461/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Wed, 2 Oct 2019 19:08:44 +0000 (21:08 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Wed, 2 Oct 2019 19:10:24 +0000 (21:10 +0200)
Minor version bump.

Also renamed ./files/kamailio.config to ./files/kamailio.conf as per
OpenWrt package policies [1].

One patch refreshed.

[1] https://openwrt.org/docs/guide-developer/package-policies

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/kamailio-5.x/Makefile
net/kamailio-5.x/files/kamailio.conf [new file with mode: 0644]
net/kamailio-5.x/files/kamailio.config [deleted file]
net/kamailio-5.x/patches/050-fix-kamailio-utils.patch

index c56b6ebb4801575a4d298c495999e2268774c7c3..b7b824d3f175a7f747debc46608ae9992de064b2 100644 (file)
@@ -9,12 +9,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=kamailio5
-PKG_VERSION:=5.2.1
-PKG_RELEASE:=2
+PKG_VERSION:=5.2.4
+PKG_RELEASE:=1
 
 PKG_SOURCE_URL:=https://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src
 PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
-PKG_HASH:=95d2158f97c76124a381364d99de1420f193275c5a1c9f88489c6409702f2c8f
+PKG_HASH:=484488879fa3c790bbd940bb81bac90639f4dccfc1c2b4e75db38f65d4020393
 PKG_USE_MIPS16:=0
 
 PKG_LICENSE:=GPL-2.0+
@@ -271,7 +271,7 @@ $(foreach c,kamailio.cfg kamctlrc,$(call Package/kamailio5/install/conffile,$(1)
                $(1)/usr/lib/kamailio/
        $(INSTALL_DIR) $(1)/etc/config
        $(INSTALL_CONF) \
-               ./files/kamailio.config \
+               ./files/kamailio.conf \
                $(1)/etc/config/kamailio
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) \
diff --git a/net/kamailio-5.x/files/kamailio.conf b/net/kamailio-5.x/files/kamailio.conf
new file mode 100644 (file)
index 0000000..f1a9c36
--- /dev/null
@@ -0,0 +1,25 @@
+
+config kamailio 'general'
+       option enabled 0
+       option user kamailio
+       option group kamailio
+       # Amount of shared and private memory to allocate in MByte:
+       option shm_memory 8
+       option pkg_memory 2
+       option cfg_file /etc/kamailio/kamailio.cfg
+       # The lists "listen" and "listen6" basically have the same
+       # effect - each list entry will be added to the Kamailio command
+       # line ("-l address"). However, the init script will try to
+       # resolve any interface specifier into an IPv4 ("listen") or
+       # IPv6 ("listen6") address before starting Kamailio. These lists
+       # may be helpful when using dynamic IPs.
+       #list listen udp:wan:5060
+       #list listen udp:192.168.1.1:5060
+       #list listen6 udp:wan:5060
+       # Any other option can be put between the quotes below:
+       #option options ""
+
+config kamailio 'hotplug'
+       # Uncomment to enable hotplug:
+       #option interface 'wan'
+
diff --git a/net/kamailio-5.x/files/kamailio.config b/net/kamailio-5.x/files/kamailio.config
deleted file mode 100644 (file)
index f1a9c36..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-
-config kamailio 'general'
-       option enabled 0
-       option user kamailio
-       option group kamailio
-       # Amount of shared and private memory to allocate in MByte:
-       option shm_memory 8
-       option pkg_memory 2
-       option cfg_file /etc/kamailio/kamailio.cfg
-       # The lists "listen" and "listen6" basically have the same
-       # effect - each list entry will be added to the Kamailio command
-       # line ("-l address"). However, the init script will try to
-       # resolve any interface specifier into an IPv4 ("listen") or
-       # IPv6 ("listen6") address before starting Kamailio. These lists
-       # may be helpful when using dynamic IPs.
-       #list listen udp:wan:5060
-       #list listen udp:192.168.1.1:5060
-       #list listen6 udp:wan:5060
-       # Any other option can be put between the quotes below:
-       #option options ""
-
-config kamailio 'hotplug'
-       # Uncomment to enable hotplug:
-       #option interface 'wan'
-
index e52da4195a056717ad2c2b33b92badde22bdcbbb..780c1810a01997fd5d3c206ab705b36bab6d9b5e 100644 (file)
@@ -27,7 +27,7 @@
 +++ b/utils/kamctl/kamctl.base
 @@ -651,7 +651,7 @@ in SIP_DOMAIN"
  check_aor() {
-       echo "$1" | $EGREP "^$USERNAME_RE@.*\..*" >/dev/null
+       echo "$1" | $EGREP "^$USERNAME_RE@.+" >/dev/null
        if [ $? -ne 0 ] ; then
 -              echo "error: invalid AoR: $1" > /dev/stderr
 +              echo "error: invalid AoR: $1" >&2
@@ -36,7 +36,7 @@
  }
 @@ -670,7 +670,7 @@ is_aor() {
  check_sipaor() {
-       echo "$1" | $EGREP "^sip(s)?:$USERNAME_RE@.*\..*" >/dev/null
+       echo "$1" | $EGREP "^sip(s)?:$USERNAME_RE@.+" >/dev/null
        if [ $? -ne 0 ] ; then
 -              echo "error: invalid SIP AoR: $1" > /dev/stderr
 +              echo "error: invalid SIP AoR: $1" >&2
@@ -45,7 +45,7 @@
  }
 @@ -681,7 +681,7 @@ check_sipaor() {
  check_uri() {
-       echo "$1" | $EGREP "^sip(s)?:($USERNAME_RE@)?.*\..*"  > /dev/null
+       echo "$1" | $EGREP "^sip(s)?:($USERNAME_RE@)?.+"  > /dev/null
        if [ $? -ne 0 ] ; then
 -              echo "error: invalid SIP URI: $1" > /dev/stderr
 +              echo "error: invalid SIP URI: $1" >&2