diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-13 21:57:31 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-13 21:57:31 +0000 |
commit | 76f1766c9ff8e9d1c5c9e094b21ef880379b858e (patch) | |
tree | 921390f9717bc55e6028482ea3102ffd2d4ff489 /channels | |
parent | 20050f395d39fbbbb50ad4f33bf5d7d62ddf69b2 (diff) |
Merged revisions 54204 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r54204 | russell | 2007-02-13 13:42:00 -0600 (Tue, 13 Feb 2007) | 5 lines
If we fail to create the SIP socket, then return -1 from reload_config() so
that load_module() will return AST_MODULE_LOAD_DECLINE. Otherwise, the console
will just get spammed with error messages every time chan_sip tries to send a
message.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54260 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index fd153f899..d4713f488 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -16882,6 +16882,7 @@ static int reload_config(enum channelreloadreason reason) sipsock = socket(AF_INET, SOCK_DGRAM, 0); if (sipsock < 0) { ast_log(LOG_WARNING, "Unable to create SIP socket: %s\n", strerror(errno)); + return -1; } else { /* Allow SIP clients on the same host to access us: */ const int reuseFlag = 1; |