]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Let OSS know how to deal with indication -1
authorMark Spencer <markster@digium.com>
Sun, 2 May 2004 17:52:45 +0000 (17:52 +0000)
committerMark Spencer <markster@digium.com>
Sun, 2 May 2004 17:52:45 +0000 (17:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2861 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_oss.c
channels/chan_sip.c

index 15e9b82c29bef0a2002777c38e2d5701f3b25a0d..89eec2e7c99504ddc2690114b0eafb197e251cb0 100755 (executable)
@@ -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;
index 10858a2f0425803a109c046751c54119fe825bd3..a75f2f8032b0d1f163eb06a622834e0942f8387b 100755 (executable)
@@ -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));