aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-14 02:52:11 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-14 02:52:11 +0000
commit014c498d03f01dbc35c877a7825d06fce0c489c7 (patch)
treef29976cb7dd9e63e20e0458e5bec9b60751405df
parent30bd8e4c5c39b4c0f5e1f67ebd6a1c6736389f55 (diff)
don't abort Asterisk load if configuration not found (issue #5115)
don't register channel type until after config has been loaded git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6590 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_sip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 974702999..ca9fd5fef 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -12414,15 +12414,14 @@ int load_module()
ast_log(LOG_WARNING, "Unable to create I/O context\n");
}
+ reload_config(); /* Load the configuration from sip.conf */
+
/* Make sure we can register our sip channel type */
if (ast_channel_register(&sip_tech)) {
ast_log(LOG_ERROR, "Unable to register channel type %s\n", channeltype);
return -1;
}
- if (reload_config()) /* Load the configuration from sip.conf */
- return -1;
-
/* Register all CLI functions for SIP */
ast_cli_register_multiple(my_clis, sizeof(my_clis)/ sizeof(my_clis[0]));