summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Högberg2021-06-04 19:16:42 +0000
committerRobert Högberg2021-06-08 08:30:36 +0000
commit621352af1571517485c5ada3b2f1afe3f8abc9c4 (patch)
treef970c17c2de343baf071818957b4d950b83152ee
parente27d3ea4ebecb594cc40f3dd4ac86c052172e6de (diff)
downloadtelephony-621352af1571517485c5ada3b2f1afe3f8abc9c4.tar.gz
yate: increase max acceptable size of incoming SIP messages
Some SIP UAs support lots of features and codecs which results in large SIP messages. YATE, with its default configuration, truncates and fails to parse received SIP messages which are larger than 1500 bytes. Let's increase the default max message size for OpenWrt users to make it easier to use yate out-of-the-box. The new max size of 8192 bytes has been arbitrarily chosen. I've seen the SIP UA baresip produce messages larger than 1500 bytes with its default configuration when authentication is used. Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
-rw-r--r--net/yate/Makefile2
-rw-r--r--net/yate/patches/120-increase-sip-message-size.patch11
2 files changed, 12 insertions, 1 deletions
diff --git a/net/yate/Makefile b/net/yate/Makefile
index 82b14d2..782bf03 100644
--- a/net/yate/Makefile
+++ b/net/yate/Makefile
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=yate
PKG_VERSION:=6.3.0-1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://yate.null.ro/tarballs/yate6/
diff --git a/net/yate/patches/120-increase-sip-message-size.patch b/net/yate/patches/120-increase-sip-message-size.patch
new file mode 100644
index 0000000..b254d31
--- /dev/null
+++ b/net/yate/patches/120-increase-sip-message-size.patch
@@ -0,0 +1,11 @@
+--- a/conf.d/ysipchan.conf.sample
++++ b/conf.d/ysipchan.conf.sample
+@@ -80,7 +80,7 @@
+
+ ; maxpkt: int: Maximum received UDP packet size, 524 to 65528, default 1500
+ ; This parameter is applied on reload and can be overridden in UDP listener sections
+-;maxpkt=1500
++maxpkt=8192
+
+ ; buffer: int: Requested size of UDP socket's receive buffer, 0 to use default
+ ; This can be overridden in UDP listener sections