Fix #258: V&V call gets rejected when IPv6 is enabled
commit262915b8c45df7ace74002e43ca5671dcfa38469
authorStefan Becker <chemobejk@gmail.com>
Wed, 30 Jul 2014 15:55:35 +0000 (30 18:55 +0300)
committerStefan Becker <chemobejk@gmail.com>
Sat, 16 Aug 2014 11:11:11 +0000 (16 14:11 +0300)
tree684486cedc9ce86d33fa93dde48feea7c5dbb288
parentc7153f832c24666a2039c5bfeedb2315c27333f9
Fix #258: V&V call gets rejected when IPv6 is enabled

commit 1556f377ecc7c3d4887f8e9f2805a4e7f7e60660 changed the candidates
list to be sorted when it is created and *NOT* sort it when it is
converted to the SDP message. Unfortunately that changed the value of
msg->ip in sipe_media_to_sdpmsg() [through backend_stream_to_sdpmedia()
and backend_candidates_to_sdpcandidate()] in the case when an IPv6
address was assigned to the host.

As the media code does not support IPv6 addresses yet, we now reject IP
address strings with ":" in get_stream_ip_and_ports().

(cherry picked from commit 396613000a879625c5a836a3b5f71b8f3e20fd0a)
src/core/sdpmsg.h
src/core/sipe-media.c