backup
[lcr.git] / h323_ep.h
1 ///////////////////////////////////////////////////////////////////////////////
2 //                                                                           //
3 // PBX4Linux                                                                 //
4 //                                                                           //
5 //---------------------------------------------------------------------------//
6 // Copyright: Andreas Eversberg                                              //
7 //                                                                           //
8 // h323_ep endpoint header file                                              //
9 //                                                                           //
10 ///////////////////////////////////////////////////////////////////////////////
11
12
13 #ifndef H323_EP_HEADER
14 #define H323_EP_HEADER   
15
16 class H323_con;
17 class H323_ep : public H323EndPoint
18 {
19         public:
20         H323_ep(void);
21         ~H323_ep();
22         H323Connection *CreateConnection(unsigned callReference);  
23         void OnConnectionEstablished(H323Connection &connection, const PString &token);
24         BOOL OnAlerting(H323Connection &connection, const H323SignalPDU &alertingPDU, const PString &user);
25         void OnConnectionCleared(H323Connection &connection, const PString &token);
26         BOOL OpenAudioChannel(H323Connection &connection, BOOL isEncoding, unsigned bufferSize, H323AudioCodec &codec);
27         BOOL OpenVideoChannel(H323Connection &connection, BOOL isEncoding, H323VideoCodec &codec);
28         BOOL Init(void);
29         void SetEndpointTypeInfo (H225_EndpointType & info) const;
30         BOOL Call(char *token_string, char *caller, char *host);
31
32         private:
33
34 };
35
36 #endif // H323_EP_HEADER
37