Fix #194: Unable to be heard when answering to external call
commite2f46ade5bb869a686fca3f4c0e96412bd9c3c25
authorJakub Adam <jakub.adam@ktknet.cz>
Thu, 25 Apr 2013 15:41:36 +0000 (25 17:41 +0200)
committerJakub Adam <jakub.adam@ktknet.cz>
Thu, 25 Apr 2013 15:43:20 +0000 (25 17:43 +0200)
tree521e5d2c9973a2dfe5952c8b5d54b5e475d2a6ff
parent21a0cb4f3ad7d106663dcc68b97b324fd17531c4
Fix #194: Unable to be heard when answering to external call

When we receive a multipart/alternative INVITE to a call, it is possible
for a part not marked as 'ms-proxy-2007fallback' to entirely omit the
Content-Disposition header. For such messages sipe_invite_mime_cb()
possibly didn't select a message part at all and therefore whole multipart
body was parsed as SDP, leading to unpredictable results.

The part without C-D header is now picked as the single alternative for
further processing.
src/core/sipe-incoming.c