]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: iterate all local addresses looking to populate ICE.
authorJaco Kroon <jaco@uls.co.za>
Tue, 3 Dec 2019 18:35:20 +0000 (20:35 +0200)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 14 Apr 2020 00:43:23 +0000 (19:43 -0500)
commit7a568549ee3fc827c4e9ba57ef79f64669d43c7e
tree5d0c0cfa091d5dc0560385c09a9eadf26fc8b2e6
parent84495aae4ca0084a691e7d8d873396922d69cb81
res_rtp_asterisk: iterate all local addresses looking to populate ICE.

By using pjproject to give us a list of candidates, and then filtering,
if the host has >32 addresses configured, then it is possible that we
end up filtering out all 32 of those, and ending up with no candidates
at all.  Instead, get getifaddrs (which pjsip is using underlying
anyway) to retrieve all local addresses, and iterate those, adding the
first 32 addresses not excluded by the ICE ACL.

In our setup at any point in time We've got between 6 and 328 addresses
on any given system.  The lower limit is the lower limit but the upper
limit is growing on a near daily basis currently.

Change-Id: I109eaffc3e2b432f00bf958e3caa0f38cacb4edb
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
res/res_rtp_asterisk.c