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: https://origsvn.digium.com/svn/asterisk/branches/1.4@54204
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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;