From: Jeremy McNamara Date: Sun, 1 Jun 2003 22:13:29 +0000 (+0000) Subject: tweak a few things to make PPC happy X-Git-Tag: 0.5.0~429 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f24eba5c444269d44ccf9ee5e897104571cd2852;p=thirdparty%2Fasterisk.git tweak a few things to make PPC happy git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1067 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp index 010ff50f0c..970d4b10c9 100755 --- a/channels/h323/ast_h323.cpp +++ b/channels/h323/ast_h323.cpp @@ -826,12 +826,14 @@ int h323_start_listener(int listenPort, struct sockaddr_in bindaddr) if (!endPoint->StartListener(tcpListener)) { cout << "ERROR: Could not open H.323 listener port on " << ((H323ListenerTCP *) tcpListener)->GetListenerPort() << endl; + delete tcpListener; return 1; } - cout << " == H.323 listener started on " << ((H323ListenerTCP *) tcpListener)->GetTransportAddress() << endl; - +// cout << " == H.323 listener started on " << ((H323ListenerTCP *) tcpListener)->GetTransportAddress() << endl; + cout << " == H.323 listener started" << endl; + return 0; }; @@ -914,6 +916,10 @@ int h323_set_gk(int gatekeeper_discover, char *gatekeeper, char *secret) cout << " == Using " << (endPoint->GetGatekeeper())->GetName() << " as our Gatekeeper." << endl; } else { cout << " *** Error registering with gatekeeper \"" << gkName << "\". " << endl; + + /* XXX Maybe we should fire a new thread to attempt to re-register later and not kill asterisk here? */ + + delete rasChannel; return 1; } }