summaryrefslogtreecommitdiffstats
path: root/h323_ep.h
blob: 805d3b2e8ad0a3cdbca8ac2e0097187ff20199ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
///////////////////////////////////////////////////////////////////////////////
//                                                                           //
// PBX4Linux                                                                 //
//                                                                           //
//---------------------------------------------------------------------------//
// Copyright: Andreas Eversberg                                              //
//                                                                           //
// h323_ep endpoint header file                                              //
//                                                                           //
///////////////////////////////////////////////////////////////////////////////


#ifndef H323_EP_HEADER
#define H323_EP_HEADER   

class H323_con;
class H323_ep : public H323EndPoint
{
	public:
	H323_ep(void);
	~H323_ep();
	H323Connection *CreateConnection(unsigned callReference);  
	void OnConnectionEstablished(H323Connection &connection, const PString &token);
	BOOL OnAlerting(H323Connection &connection, const H323SignalPDU &alertingPDU, const PString &user);
	void OnConnectionCleared(H323Connection &connection, const PString &token);
	BOOL OpenAudioChannel(H323Connection &connection, BOOL isEncoding, unsigned bufferSize, H323AudioCodec &codec);
	BOOL OpenVideoChannel(H323Connection &connection, BOOL isEncoding, H323VideoCodec &codec);
	BOOL Init(void);
	void SetEndpointTypeInfo (H225_EndpointType & info) const;
	BOOL Call(char *token_string, char *caller, char *host);

	private:

};

#endif // H323_EP_HEADER