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>
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+
$(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) \
--- /dev/null
+
+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'
+
+++ /dev/null
-
-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'
-
+++ 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
}
@@ -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
}
@@ -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