]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't stop Asterisk if chan_oss fails to register 'Console' (due to another channel...
authorRussell Bryant <russell@russellbryant.com>
Wed, 9 Jun 2010 22:18:37 +0000 (22:18 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 9 Jun 2010 22:18:37 +0000 (22:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@269495 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_oss.c

index 53885c02e2d3bf4752089adda158e3b120e6cd9d..27f4eea1290de99bab61a0bdb9eed21e78c1267b 100644 (file)
@@ -1863,7 +1863,7 @@ static int load_module(void)
 
        if (ast_channel_register(&oss_tech)) {
                ast_log(LOG_ERROR, "Unable to register channel type 'OSS'\n");
-               return AST_MODULE_LOAD_FAILURE;
+               return AST_MODULE_LOAD_DECLINE;
        }
 
        ast_cli_register_multiple(cli_oss, sizeof(cli_oss) / sizeof(struct ast_cli_entry));