Bug 32738

Summary: sofiasip gets confused if media sections in the sdp are swapped around
Product: Telepathy Reporter: David Laban <david.laban>
Component: rakiaAssignee: David Laban <david.laban>
Status: RESOLVED NOTABUG QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: mikhail.zabaluev
Version: git master   
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/alsuren/telepathy-sofiasip.git;a=shortlog;h=refs/heads/swapped-media
Whiteboard:
i915 platform: i915 features:

Description David Laban 2010-12-30 01:55:26 UTC
Technical Details:
sofiasip sends:

INVITE
...
m=video
...
m=audio
...

peer replies:

200 ok
...
m=audio
...
m=video
...

sofiasip gets confused by the re-ordering and says:

(telepathy-sofiasip:14563): tpsip-WARNING **: priv_update_remote_media: The 
peer has changed the media type, don't know what to do

then sends BYE and invalidates the channel.


I'll see if I can write a test for this today. I'll put it on top of my streamedmedia_tests branch.
Comment 1 Mikhail Zabaluev 2010-12-30 03:21:32 UTC
RFC 3264 section 6 says:

   For each "m=" line in the offer, there MUST be a corresponding "m="
   line in the answer.

The peer is doing it wrong.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.