media: fix multpart SDP processing of phone call on SfB
commit348f009793437f90ba71bc295ce6b1c099964511
authorJakub Adam <jakub.adam@ktknet.cz>
Thu, 19 Oct 2017 14:26:48 +0000 (19 16:26 +0200)
committerJakub Adam <jakub.adam@ktknet.cz>
Tue, 24 Oct 2017 05:04:40 +0000 (24 07:04 +0200)
treee33fe818027d159d0d41780aeed3c4496c822028
parentf54e9cdb81dd875cbc084434d39b7716338b5e09
media: fix multpart SDP processing of phone call on SfB

User has observed a phone gateway in SfB environment that tags the SDP
part of its initial SIP INVITE with "ms-proxy-2007fallback" although it
is the only SDP payload in the message and is in RFC 5245 format.

Since apparently ms-proxy-2007fallback label can't be relied upon,
detect the SDP protocol version from the contents of the message body.
src/core/sipe-incoming.c