diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 15e9b82c29..89eec2e7c9 100755 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -681,6 +681,9 @@ static int oss_indicate(struct ast_channel *chan, int cond) case AST_CONTROL_RINGING: res = 0; break; + case -1: + cursound = -1; + return 0; default: ast_log(LOG_WARNING, "Don't know how to display condition %d on %s\n", cond, chan->name); return -1; diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 10858a2f04..a75f2f8032 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6899,7 +6899,7 @@ static int reload_config(void) hp = ast_gethostbyname(ourhost, &ahp); if (!hp) { ast_log(LOG_WARNING, "Unable to get IP address for %s, SIP disabled\n", ourhost); - if (!__ourip.sin_addr.s_addr) + if (!__ourip.s_addr) return 0; } else memcpy(&__ourip, hp->h_addr, sizeof(__ourip));