OPAL  Version 3.18.8
h460_std18.h
Go to the documentation of this file.
1 /*
2  * h460_std18.h
3  *
4  * Copyright (c) 2008 ISVO (Asia) Pte. Ltd.
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  * Alternatively, the contents of this file may be used under the terms
12  * of the General Public License (the "GNU License"), in which case the
13  * provisions of GNU License are applicable instead of those
14  * above. If you wish to allow use of your version of this file only
15  * under the terms of the GNU License and not to allow others to use
16  * your version of this file under the MPL, indicate your decision by
17  * deleting the provisions above and replace them with the notice and
18  * other provisions required by the GNU License. If you do not delete
19  * the provisions above, a recipient may use your version of this file
20  * under either the MPL or the GNU License."
21  *
22  * Software distributed under the License is distributed on an "AS IS"
23  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
24  * the License for the specific language governing rights and limitations
25  * under the License.
26  *
27  *
28  * The Initial Developer of the Original Code is ISVO (Asia) Pte. Ltd.
29  *
30  * Portions of this code were written with the assisance of funding from
31  * triple-IT. http://www.triple-it.nl.
32  *
33  * Contributor(s): Many thanks to Simon Horne.
34  * Robert Jongbloed (robertj@voxlucida.com.au).
35  */
36 
37 #ifndef OPAL_H460_STD18_H
38 #define OPAL_H460_STD18_H
39 
40 #include <h460/h4601.h>
41 
42 #if OPAL_H460_NAT
43 
44 #if _MSC_VER
45 #pragma once
46 #endif
47 
48 
49 class H323SignalPDU;
50 
51 
53 
54 class H460_FeatureStd18 : public H460_Feature
55 {
56  PCLASSINFO_WITH_CLONE(H460_FeatureStd18, H460_Feature);
57  public:
58  H460_FeatureStd18();
59 
60  static const H460_FeatureID & ID();
61  virtual bool Initialise(H323EndPoint & ep, H323Connection * con);
62  virtual bool IsNegotiated() const;
63 
64  // H.225.0 Messages
65  virtual bool OnSendGatekeeperRequest (H460_FeatureDescriptor & /*pdu*/ ) { return true; }
66  virtual bool OnSendRegistrationRequest(H460_FeatureDescriptor & /*pdu*/, bool /*lightweight*/) { return true; }
67  virtual bool OnSendSetup_UUIE (H460_FeatureDescriptor & /*pdu*/ ) { return true; }
68 
70 
71  // Custom functions
72  bool OnStartControlChannel();
73 
74  protected:
75  void ConnectThreadMain(H323TransportAddress address, OpalGloballyUniqueID callId);
76 
77  OpalGloballyUniqueID m_lastCallIdentifer;
78 };
79 
80 
81 #endif // OPAL_H460_NAT
82 
83 #endif // OPAL_H460_STD18_H
virtual bool OnSendRegistrationRequest(H460_FeatureDescriptor &, bool)
Definition: h4601.h:515
Definition: h323pdu.h:66
Definition: h4601.h:267
virtual void OnReceiveServiceControlIndication(const H460_FeatureDescriptor &)
Definition: h4601.h:542
virtual bool OnSendSetup_UUIE(H460_FeatureDescriptor &)
Definition: h4601.h:570
virtual bool Initialise(H323EndPoint &ep, H323Connection *con)
Definition: h323con.h:137
Definition: h4601.h:75
virtual bool OnSendGatekeeperRequest(H460_FeatureDescriptor &)
Definition: h4601.h:507
#define OpalGloballyUniqueID
Definition: guid.h:38
Definition: h323ep.h:82
Definition: transaddr.h:62
virtual bool IsNegotiated() const
Definition: h4601.h:409
Definition: h4601.h:369