Decoding of SIP messages regression from 3.3.2 to 4.0.1
Hi!
I'm using the SMS --> SIP Message feature of the VoIP.ms provider (https://voip.ms), and it used to work great with Linphone Android 3.3.2 (F-Droid), but upgrading to 4.0.1 or later renders the content of the received text messages invisible (the body is not shown).
I've grabbed the logs of one successful reception message in 3.3.2, as well as the logs of a failed message reception in 4.0.1. This output is new in 4.0.1:
05-27 18:35:15.716 31152 31152 I Linphone: Body has been compressed: 297->211:
05-27 18:35:15.716 31152 31152 I Linphone: <?xml version="1.0" encoding="UTF-8" standalone="no" ?><imdn xmlns="urn:ietf:params:xml:ns:imdn"><message-id>2a73c57f715e8a1c1872bd1f7e2eb23a@192.175.96.70:5060</message-id><datetime>2019-05-27T22:35:15Z</datetime><delivery-notification><status><delivered/></status></delivery-notification></imdn>
05-27 18:35:15.716 31152 31152 W Linphone: message [0x7f7dabf580] has Content-Length [297] and body size [211] which are inconsistent, fixing it.
05-27 18:35:15.717 31152 31152 I Linphone: channel [0x7f94368000]: found binary data in buffer, will stop logging it now.
[...]
05-27 18:35:15.718 31152 31152 I Linphone: x... (first 500 bytes shown)
The content encoding and supported fields detected also seem to be modified in 4.0.1.
The full (anonymized) logs are attached.
linphone-3.3.2-text-message.loglinphone-4.0.1-text-message.log