OPAL  Version 3.14.3
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  * $Revision: 31743 $
37  * $Author: rjongbloed $
38  * $Date: 2014-04-11 17:31:51 +1000 (Fri, 11 Apr 2014) $
39  */
40 
41 #ifndef OPAL_H460_STD18_H
42 #define OPAL_H460_STD18_H
43 
44 #include <h460/h4601.h>
45 
46 #if OPAL_H460_NAT
47 
48 #if _MSC_VER
49 #pragma once
50 #endif
51 
52 
53 class H323SignalPDU;
54 
55 
57 
58 class H460_FeatureStd18 : public H460_Feature
59 {
60  PCLASSINFO_WITH_CLONE(H460_FeatureStd18, H460_Feature);
61  public:
62  H460_FeatureStd18();
63 
64  static const H460_FeatureID & ID();
65  virtual bool Initialise(H323EndPoint & ep, H323Connection * con);
66  virtual bool IsNegotiated() const;
67 
68  // H.225.0 Messages
69  virtual bool OnSendGatekeeperRequest (H460_FeatureDescriptor & /*pdu*/ ) { return true; }
70  virtual bool OnSendRegistrationRequest(H460_FeatureDescriptor & /*pdu*/, bool /*lightweight*/) { return true; }
71  virtual bool OnSendSetup_UUIE (H460_FeatureDescriptor & /*pdu*/ ) { return true; }
72 
74 
75  // Custom functions
76  bool OnStartControlChannel();
77 
78  protected:
79  void ConnectThreadMain(H323TransportAddress address, OpalGloballyUniqueID callId);
80 
81  OpalGloballyUniqueID m_lastCallIdentifer;
82 };
83 
84 
85 #endif // OPAL_H460_NAT
86 
87 #endif // OPAL_H460_STD18_H