aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-03 17:31:41 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-03 17:31:41 +0000
commitc7e62295b0b1cedebad4e7f520b8c57ae48cefcd (patch)
treee049dbc8226116712d83bd54b6aebf94789da980 /channels
parent6890baac638fc37a1c4c615ac8fda2251641dc3d (diff)
Don't stop Asterisk if chan_usbradio isn't configured.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@267537 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_usbradio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_usbradio.c b/channels/chan_usbradio.c
index d9581d310..81c1afe55 100644
--- a/channels/chan_usbradio.c
+++ b/channels/chan_usbradio.c
@@ -3977,12 +3977,12 @@ static int load_module(void)
ast_log(LOG_NOTICE, "radio active device %s not found\n", usbradio_active);
/* XXX we could default to 'dsp' perhaps ? */
/* XXX should cleanup allocated memory etc. */
- return AST_MODULE_LOAD_FAILURE;
+ return AST_MODULE_LOAD_DECLINE;
}
if (ast_channel_register(&usbradio_tech)) {
ast_log(LOG_ERROR, "Unable to register channel type 'usb'\n");
- return AST_MODULE_LOAD_FAILURE;
+ return AST_MODULE_LOAD_DECLINE;
}
ast_cli_register_multiple(cli_usbradio, ARRAY_LEN(cli_usbradio));