diff --git a/main/udptl.c b/main/udptl.c index 772da03ee5..b5d1394345 100644 --- a/main/udptl.c +++ b/main/udptl.c @@ -1009,7 +1009,7 @@ struct ast_udptl *ast_udptl_new_with_bindaddr(struct ast_sched_context *sched, s if (ast_bind(udptl->fd, &udptl->us) == 0) { break; } - if (errno != EADDRINUSE) { + if (errno != EADDRINUSE && errno != EACCES) { ast_log(LOG_WARNING, "Unexpected bind error: %s\n", strerror(errno)); close(udptl->fd); ast_free(udptl); diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 3d195d846f..5dde2ba55d 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -1823,7 +1823,7 @@ static int ast_rtp_new(struct ast_rtp_instance *instance, } /* See if we ran out of ports or if the bind actually failed because of something other than the address being in use */ - if (x == startplace || errno != EADDRINUSE) { + if (x == startplace || (errno != EADDRINUSE && errno != EACCES)) { ast_log(LOG_ERROR, "Oh dear... we couldn't allocate a port for RTP instance '%p'\n", instance); close(rtp->s); ast_free(rtp);