Commit graph

97 commits

Author SHA1 Message Date
Simon Morlat
2aba9114a4 change the way local interface is searched. 2013-03-22 10:56:44 +01:00
Ghislain MARY
42f23a4d6c Do not create ICE check list for non-active streams.
It may lead to some crashes if a check list exists for a non-active stream.
2013-03-15 16:03:32 +01:00
Simon Morlat
e1552ee1ee add automatic tone user indications 2013-03-14 13:27:53 +01:00
Jehan Monnier
936ec61f40 call->audio_bw should be rouded to the upper value 2013-02-26 17:29:28 +01:00
Simon Morlat
0700c04d4a implement call recording. 2013-02-06 15:06:40 +01:00
Yann Diorcet
5c939acd69 Merge branch 'upnp'
Conflicts:
	coreapi/callbacks.c
	coreapi/linphonecore.c
	gtk/Makefile.am
	mediastreamer2
2013-01-25 12:01:50 +01:00
Ghislain MARY
39bbe2656b Keep the total number of streams and the number of active streams in the media description.
This is to respect section 8 of RFC 3264 ("Modifying the Session"). The
number of streams in the SDP MUST NOT decrease.
2013-01-23 12:25:08 +01:00
Yann Diorcet
3b20b89886 Merge branch 'master' of git.linphone.org:linphone into upnp
Conflicts:
	coreapi/linphonecore.c
	mediastreamer2
2013-01-09 13:58:33 +01:00
Ghislain MARY
9f9602e728 Factorize media streams code. 2013-01-07 16:22:12 +01:00
Yann Diorcet
f3805137e6 Working call with uPnP 2013-01-04 16:19:13 +01:00
Simon Morlat
c6bd038a6d implement manual low banwdwidth mode.
It is also possible to check whether peer is under low bandwidth by looking into the linphone_call_get_remote_params()
2012-11-27 14:45:02 +01:00
Ghislain MARY
23b788205b Remove useless code. 2012-10-08 12:36:03 +02:00
Ghislain MARY
c7b3b58145 Clean ICE remote candidates in the media description when sending re-invite after an ICE restart. 2012-10-05 11:31:54 +02:00
Ghislain MARY
8c02cac390 Fix to prevent crashes. 2012-10-05 11:31:54 +02:00
Ghislain MARY
c3894e57f8 Handle ICE running state in call statistics update. 2012-10-04 17:05:02 +02:00
Ghislain MARY
55f676763a If the remote deactivates a media stream, remove the ICE check list for this stream. 2012-10-03 15:24:13 +02:00
Ghislain MARY
63c5dfed39 Unselect previous ICE valid pairs before adding losing pairs. 2012-10-03 14:11:05 +02:00
Jehan Monnier
6a0b67f9b5 add low bandwidth call param 2012-10-02 16:51:45 +02:00
Ghislain MARY
3b6eae7441 Add check to prevent crash if something wrong happens when sending Re-INVITE for ICE. 2012-10-01 15:50:50 +02:00
Ghislain MARY
37e69be091 Check that ICE gathering has already been completed before launching it again. 2012-10-01 15:50:50 +02:00
Ghislain MARY
79c2debc99 Fix for ICE state that can be wrong in some failing cases. 2012-10-01 09:50:55 +02:00
Ghislain MARY
85ad456a10 Prevent deleting streams (and therefore RTP sessions) when switching form ICE gathering to the call.
This prevents losing the first ICE connectivity checks if the restart of
the streams is slow.
2012-10-01 09:50:55 +02:00
Ghislain MARY
650cb5b160 Prevent using getifaddrs() to get the local IP during ICE gathering. 2012-09-26 15:08:04 +02:00
Jehan Monnier
e4309a8757 fix get local address in case of 3G connectivity on ios 2012-09-24 12:41:13 +02:00
Simon Morlat
b67d2dd4a7 fix: reuse stun discovered ip/port accross reinvites. 2012-09-20 21:31:19 +02:00
Ghislain MARY
92600fc6bb Add check to prevent crash. 2012-09-19 17:59:48 +02:00
Ghislain MARY
c6d9b71cb5 Add ICE failed state. 2012-09-19 17:59:48 +02:00
Ghislain MARY
3cd49ea4bd Deactivate ICE if the remote does not support it. 2012-09-19 10:31:14 +02:00
Ghislain MARY
c4086e989a Add ICE state to the call stats. 2012-09-17 15:10:28 +02:00
Simon Morlat
5e4ac070cc implement edge detection, and automatic configuration of call parameters for low bitrates 2012-09-04 22:02:34 +02:00
Simon Morlat
f75692eb02 Merge branch 'master' of git.linphone.org:linphone into dev_edge_optim 2012-09-04 15:50:23 +02:00
Jehan Monnier
f252a1ad20 add traces for ICE troubleshooting 2012-09-03 18:13:15 +02:00
Simon Morlat
cfb3b3dfd5 edge optimization in progress 2012-08-31 22:07:00 +02:00
Ghislain MARY
5129e306ab Handle IPv6 addresses in parse_hostname_to_addr().
This is needed to correctly handle and IPv6 address set as gateway when
using the nat firewall policy.
2012-08-31 11:20:09 +02:00
Ghislain MARY
29e0c09557 Use accessor function to get ICE check list state. 2012-08-24 10:57:06 +02:00
Ghislain MARY
3b8e54e6ec Check if an ICE check list can be set to the Completed state after adding the losing pairs. 2012-08-24 10:57:05 +02:00
Ghislain MARY
7b6314c381 Set an ICE check list to the Failed state if the corresponding media stream has been deactivated by the peer. 2012-08-24 10:57:05 +02:00
Ghislain MARY
5276606942 Do not delete ICE session when it is in the Failed state.
If the ICE session is deleted it can not be restarted later.
However try to send a re-invite if the session state is Failed but some check
lists have completed successfully.
2012-08-24 10:57:05 +02:00
Ghislain MARY
4e7aa3c6c6 Set the state of an ICE check list to Failed if the peer has set the port of the media stream to 0. 2012-08-22 15:58:13 +02:00
Ghislain MARY
1f9a43a8e8 Prevent crappy RTP and RTCP address if their extraction from ICE fails. 2012-08-22 15:56:59 +02:00
Ghislain MARY
98cfcb39f9 Better loop ending test. 2012-08-16 10:59:14 +02:00
Ghislain MARY
bccc94646a Restart ICE if the c= line is set to 0.0.0.0. 2012-08-13 14:28:31 +02:00
Ghislain MARY
202821d4f5 Merge branch 'master' into dev_ice 2012-08-10 13:21:45 +02:00
Simon Morlat
6f9b9458f7 add config entry to finely select audio stream features 2012-08-09 16:08:21 +02:00
Ghislain MARY
bad089b4a7 Restore ice-mismatch that was broken during redesign of the interface between media descriptions and ICE. 2012-08-09 09:55:02 +02:00
Ghislain MARY
6eb7105258 Restart ICE if remote credentials have changed. 2012-08-08 16:29:54 +02:00
Ghislain MARY
3611187779 Use ICE selected pairs instead of nominated valid pairs. 2012-08-08 11:43:51 +02:00
Ghislain MARY
aef56a9c3a Correctly handle content of SDP when ICE has completed for a specific media stream. 2012-08-07 11:45:47 +02:00
Ghislain MARY
2a827ff58a Some fixes of bugs introduced with redesign of interaction between ICE and media descriptions. 2012-08-06 17:08:06 +02:00
Ghislain MARY
5742b453cd Handle conversion between media description and ice session. 2012-08-06 11:41:29 +02:00