stomp on seg if no config file

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Jeremy McNamara 22 years ago
parent 5dd1310ac6
commit c3b80c117f

@ -1410,6 +1410,9 @@ int reload_config(void)
return 1; return 1;
} }
/* fire up the H.323 Endpoint */
h323_end_point_create();
h323debug=0; h323debug=0;
dtmfmode = H323_DTMF_RFC2833; dtmfmode = H323_DTMF_RFC2833;
@ -1718,11 +1721,11 @@ int load_module()
{ {
int res; int res;
/* fire up the H.323 Endpoint */
h323_end_point_create();
res = reload_config(); res = reload_config();
if (!res) {
if (res) {
return 0;
} else {
/* Make sure we can register our channel type */ /* Make sure we can register our channel type */
if (ast_channel_register(type, tdesc, capability, oh323_request)) { if (ast_channel_register(type, tdesc, capability, oh323_request)) {
ast_log(LOG_ERROR, "Unable to register channel class %s\n", type); ast_log(LOG_ERROR, "Unable to register channel class %s\n", type);
@ -1774,8 +1777,6 @@ int load_module()
} }
/* And start the monitor for the first time */ /* And start the monitor for the first time */
restart_monitor(); restart_monitor();
} else {
h323_end_process();
} }
return res; return res;
} }

Loading…
Cancel
Save