clarify messages, try to stop another debian seg
authorJeremy McNamara <jj@nufone.net>
Tue, 20 May 2003 23:36:40 +0000 (23:36 +0000)
committerJeremy McNamara <jj@nufone.net>
Tue, 20 May 2003 23:36:40 +0000 (23:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1048 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/h323/Makefile
channels/h323/ast_h323.cpp

index 740306d..c7b7d13 100755 (executable)
@@ -56,12 +56,12 @@ samples:
  
 
 chan_h323.o:   chan_h323.c
-       $(CC) -g -c -o $@ $(CFLAGS) $<
+       $(CC) -g -pg -c -o $@ $(CFLAGS) $<
 ast_h323.o:    ast_h323.cpp
-       g++ -g -c -o $@ $(CFLAGS) $<
+       g++ -g -pg -c -o $@ $(CFLAGS) $<
 
 chan_h323.so:  chan_h323.o ast_h323.o
-       g++  -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_r -L$(OPENH323DIR)/lib -lh323_linux_x86_r -L/usr/lib -lpthread -ldl -lcrypto -lssl -lexpat
+       g++  -g -pg -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_r -L$(OPENH323DIR)/lib -lh323_linux_x86_r -L/usr/lib -lpthread -ldl -lcrypto -lssl -lexpat
 
 chan_h323_d.so:        chan_h323.o ast_h323.o
        g++  -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_d -L$(OPENH323DIR)/lib -lh323_linux_x86_d -L/usr/lib -lpthread -ldl -lcrypto -lssl -lexpat
index 501cdb5..892a2d0 100755 (executable)
@@ -340,7 +340,7 @@ void MyH323EndPoint::OnConnectionCleared(H323Connection & connection, const PStr
                        break;
                case H323Connection::EndedByNoUser :
                        if (h323debug)
-                               cout << " -- Gatekeeper could not find user " << remoteName << endl;
+                               cout << " -- Remote endpoint could not find user: " << remoteName << endl;
                        break;
                case H323Connection::EndedByNoBandwidth :
                        if (h323debug)
@@ -821,6 +821,9 @@ int h323_start_listener(int listenPort, struct sockaddr_in bindaddr, int _jitter
        jitter = _jitter;
 
        PIPSocket::Address interfaceAddress(bindaddr.sin_addr);
+
+       if (!listenPort)
+               listenPort = 1720;
        
        tcpListener = new H323ListenerTCP(*endPoint, interfaceAddress, (WORD)listenPort);