1 |
/***************************************************************************
|
2 |
ep.h
|
3 |
|
4 |
Copyright (c) 2002-2003 Vladimir Toncar
|
5 |
|
6 |
The contents of this file are subject to the Mozilla Public License
|
7 |
Version 1.1 (the "License"); you may not use this file except in
|
8 |
compliance with the License. You may obtain a copy of the License at
|
9 |
http://www.mozilla.org/MPL/
|
10 |
|
11 |
Software distributed under the License is distributed on an "AS IS"
|
12 |
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
|
13 |
See the License for the specific language governing rights and
|
14 |
limitations under the License.
|
15 |
|
16 |
The Original Code is oh323tut.
|
17 |
|
18 |
The Initial Developer of the Original Code is Vladimir Toncar.
|
19 |
All Rights Reserved.
|
20 |
|
21 |
Contributor(s): ______________________________________.
|
22 |
|
23 |
***************************************************************************/
|
24 |
|
25 |
#ifndef _EP_H
|
26 |
#define _EP_H
|
27 |
|
28 |
#include <h323.h>
|
29 |
#include "pconf.h"
|
30 |
|
31 |
class MyEndPoint: public H323EndPoint
|
32 |
{
|
33 |
PCLASSINFO(MyEndPoint, H323EndPoint)
|
34 |
const ProgConf & progConf;
|
35 |
public:
|
36 |
MyEndPoint(const ProgConf & conf);
|
37 |
~MyEndPoint();
|
38 |
bool Init(void);
|
39 |
virtual void OnConnectionEstablished(H323Connection &connection,
|
40 |
const PString &token);
|
41 |
virtual void OnConnectionCleared(H323Connection &connection,
|
42 |
const PString &token);
|
43 |
virtual BOOL OpenAudioChannel(H323Connection &connection,
|
44 |
BOOL isEncoding, unsigned bufferSize,
|
45 |
H323AudioCodec &codec);
|
46 |
virtual H323Connection::AnswerCallResponse OnAnswerCall(
|
47 |
H323Connection &connection,
|
48 |
const PString &caller,
|
49 |
const H323SignalPDU & signalPDU,
|
50 |
H323SignalPDU &);
|
51 |
virtual BOOL OnStartLogicalChannel(H323Connection & connection,
|
52 |
H323Channel & channel);
|
53 |
};
|
54 |
|
55 |
|
56 |
#endif
|