Fix build error when chan_h323 is not being built.
[asterisk/asterisk.git] / channels / h323 / compat_h323.cxx
index eec7361..609d18e 100644 (file)
 #include <transports.h>
 
 #include "ast_h323.h"
+#include "compat_h323.h"
 
 #if VERSION(OPENH323_MAJOR,OPENH323_MINOR,OPENH323_BUILD) < VERSION(1,17,3)
 MyH323TransportTCP::MyH323TransportTCP(
                                H323EndPoint & endpoint,
                                PIPSocket::Address binding,
-                               BOOL listen)
+                               PBoolean listen)
        : H323TransportTCP(endpoint, binding, listen)
 {
 }
 
-BOOL MyH323TransportTCP::Connect()
+PBoolean MyH323TransportTCP::Connect()
 {
        if (IsListening())
                return TRUE;
@@ -91,7 +92,7 @@ BOOL MyH323TransportTCP::Connect()
 }
 #endif
 
-BOOL MyH323TransportUDP::DiscoverGatekeeper(H323Gatekeeper &gk, H323RasPDU &pdu, const H323TransportAddress &address)
+PBoolean MyH323TransportUDP::DiscoverGatekeeper(H323Gatekeeper &gk, H323RasPDU &pdu, const H323TransportAddress &address)
 {
        PThread *thd = PThread::Current();