Handle HOLD/RETRIEVE notifications
[asterisk/asterisk.git] / channels / h323 / ast_h323.h
index 7199b0f..f933217 100644 (file)
@@ -93,6 +93,11 @@ public:
        virtual BOOL HandleSignalPDU(H323SignalPDU &pdu);
        BOOL EmbedTunneledInfo(H323SignalPDU &pdu);
 #endif
        virtual BOOL HandleSignalPDU(H323SignalPDU &pdu);
        BOOL EmbedTunneledInfo(H323SignalPDU &pdu);
 #endif
+#ifdef H323_H450
+       virtual void OnReceivedLocalCallHold(int linkedId);
+       virtual void OnReceivedLocalCallRetrieve(int linkedId);
+#endif
+       void MyHoldCall(BOOL localHold);
 
        PString sourceAliases;
        PString destAliases;
 
        PString sourceAliases;
        PString destAliases;
@@ -108,6 +113,7 @@ public:
        int tunnelOptions;
 #endif
 
        int tunnelOptions;
 #endif
 
+       unsigned holdHandling;
        unsigned progressSetup;
        unsigned progressAlert;
        int cause;
        unsigned progressSetup;
        unsigned progressAlert;
        int cause;
@@ -156,6 +162,23 @@ public:
        void Main();
 };
 
        void Main();
 };
 
+#ifdef H323_H450
+#include <h450pdu.h>
+
+class MyH4504Handler : public H4504Handler
+{
+       PCLASSINFO(MyH4504Handler, H4504Handler);
+
+public:
+       MyH4504Handler(MyH323Connection &_conn, H450xDispatcher &_disp);
+       virtual void OnReceivedLocalCallHold(int linkedId);
+       virtual void OnReceivedLocalCallRetrieve(int linkedId);
+
+private:
+       MyH323Connection *conn;
+};
+#endif
+
 #include "compat_h323.h"
 
 #endif /* !defined AST_H323_H */
 #include "compat_h323.h"
 
 #endif /* !defined AST_H323_H */