<html><body>Package: asterisk<br>Version: 1:16.16.1~dfsg-1~bpo10+1<br>Severity: important<br>Tags: upstream<br><br>When chan_sip processes incoming SIP message and its body contains NUL<br>characters (for example due to deflate encoding), reading body from buffer<br>stops at the NUL character, thus ignoring the rest of the buffer and waiting<br>for additional incoming data to catch up all data of size indicated in<br>the Content-Length header. Effectively this behavior causes breakup of<br>SIP communication - ignoring subsequent messages and returning errors<br>"method not implemented".<br><br>Steps to reproduce:<br><br>- set up Linhone for Android to register with Asterisk<br>- in rasterisk, turn on debugging for the new peer: "sip set debug peer xxxx"<br>- in Linphone's settings, turn on Settings/Contacts/Friendlist subscribe<br>- in rasterisk, wait for the SUBSCRIBE message with deflated body<br>- in Linphone, try to place a call<br>- the INVITE message is not processed as chan_sip believes to be continuation<br> of body belonging to the preceding SUBSCRIBE message<br><br>-- System Information:<br>Debian Release: 10.10<br> APT prefers stable-updates<br> APT policy: (500, 'stable-updates'), (500, 'stable')<br>Architecture: amd64 (x86_64)<br><br>Kernel: Linux 5.10.0-0.bpo.7-amd64 (SMP w/1 CPU core)<br>Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)<br>Shell: /bin/sh linked to /usr/bin/dash<br>Init: systemd (via /run/systemd/system)<br>LSM: AppArmor: enabled<br><br>Versions of packages asterisk depends on:<br>ii adduser 3.118<br>ii asterisk-config 1:16.16.1~dfsg-1~bpo10+1<br>ii asterisk-core-sounds-en 1.6.1-1<br>ii asterisk-modules 1:16.16.1~dfsg-1~bpo10+1<br>ii libc6 2.28-10<br>ii libcap2 1:2.25-2<br>ii libedit2 3.1-20181209-1<br>ii libjansson4 2.12-1<br>ii libpopt0 1.16-12<br>ii libsqlite3-0 3.27.2-3+deb10u1<br>ii libssl1.1 1.1.1d-0+deb10u6<br>ii libsystemd0 241-7~deb10u7<br>ii liburiparser1 0.9.1-1<br>ii libuuid1 2.33.1-0.1<br>ii libxml2 2.9.4+dfsg1-7+deb10u2<br>ii libxslt1.1 1.1.32-2.2~deb10u1<br>ii lsb-base 10.2019051400<br><br>Versions of packages asterisk recommends:<br>ii asterisk-moh-opsound-gsm 2.03-1<br>pn asterisk-voicemail | asterisk-voicemail-storage <none><br>pn sox <none><br><br>Versions of packages asterisk suggests:<br>pn asterisk-dahdi <none><br>pn asterisk-dev <none><br>pn asterisk-doc <none><br>pn asterisk-ooh323 <none><br>pn asterisk-opus <none><br>pn asterisk-vpb <none><br><br>-- Configuration Files:<br>/etc/logrotate.d/asterisk changed [not included]<br><br>-- no debconf information<br><br></body></html>