aboutsummaryrefslogtreecommitdiffstats
path: root/channels/h323/ast_h323.cpp
diff options
context:
space:
mode:
authorjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-01 22:13:29 +0000
committerjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-01 22:13:29 +0000
commitd0934c65506b4505ccce2eb01f0be101367baa0d (patch)
treec0a908db46b00d39910e856889fb43c2bc2c7a82 /channels/h323/ast_h323.cpp
parent17e27f0d8f713782b858057464e29f9f7e971e3f (diff)
tweak a few things to make PPC happy
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1067 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323/ast_h323.cpp')
-rwxr-xr-xchannels/h323/ast_h323.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp
index 010ff50f0..970d4b10c 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;
}
}