]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk & udptl: fix port selection to work with SELinux restrictions
authorCorey Farrell <git@cfware.com>
Thu, 30 Jan 2014 20:26:52 +0000 (20:26 +0000)
committerCorey Farrell <git@cfware.com>
Thu, 30 Jan 2014 20:26:52 +0000 (20:26 +0000)
commitea65e4d44c9de6b67dba49f3ba1a3e6682bcf98e
tree1fe76385ac2efad17354c9786ef990dc7e49c036
parentf82e6e93c5372266fe042072dabbc5cc19171b70
res_rtp_asterisk & udptl: fix port selection to work with SELinux restrictions

ast_bind to a port reserved for another program by SELinux causes
errno == EACCES.  This caused random failures when binding rtp or
udptl sockets.  Treat EACCES as a non-fatal error, try next port.

(closes issue ASTERISK-23134)
Reported by: Corey Farrell

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@406933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/udptl.c
res/res_rtp_asterisk.c