h323pdu.h

Go to the documentation of this file.
00001 /*
00002  * h323pdu.h
00003  *
00004  * H.323 protocol handler
00005  *
00006  * Open H323 Library
00007  *
00008  * Copyright (c) 1998-2000 Equivalence Pty. Ltd.
00009  *
00010  * The contents of this file are subject to the Mozilla Public License
00011  * Version 1.0 (the "License"); you may not use this file except in
00012  * compliance with the License. You may obtain a copy of the License at
00013  * http://www.mozilla.org/MPL/
00014  *
00015  * Software distributed under the License is distributed on an "AS IS"
00016  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00017  * the License for the specific language governing rights and limitations
00018  * under the License.
00019  *
00020  * The Original Code is Open H323 Library.
00021  *
00022  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
00023  *
00024  * Portions of this code were written with the assisance of funding from
00025  * Vovida Networks, Inc. http://www.vovida.com.
00026  *
00027  * Contributor(s): ______________________________________.
00028  *
00029  * $Log: h323pdu.h,v $
00030  * Revision 1.75  2006/07/17 09:52:57  shorne
00031  * Added more support URL alias Addresses
00032  *
00033  * Revision 1.74  2006/06/21 04:53:32  csoutheren
00034  * Tweaked H.245 version 13 updates
00035  *
00036  * Revision 1.73  2006/06/20 05:24:40  csoutheren
00037  * Additional tweaks for H.225v6
00038  *
00039  * Revision 1.72  2006/01/26 03:28:10  shorne
00040  * Caller Authentication added
00041  *
00042  * Revision 1.71  2006/01/20 00:32:24  csoutheren
00043  * First check-in of signalling aggregation code - incomplete and disabled by default
00044  *
00045  * Revision 1.70  2005/11/30 13:05:01  csoutheren
00046  * Changed tags for Doxygen
00047  *
00048  * Revision 1.69  2005/06/30 01:57:39  csoutheren
00049  * Updated to H.245v11
00050  *
00051  * Revision 1.68  2005/03/04 03:21:20  csoutheren
00052  * Added local and remote addresses to all PDU logs to assist in debugging
00053  *
00054  * Revision 1.67  2005/01/24 00:10:48  csoutheren
00055  * Added function to set Q.931 info in PDU, thanks to Paul Nader
00056  *
00057  * Revision 1.66  2004/12/14 06:22:21  csoutheren
00058  * More OSP implementation
00059  *
00060  * Revision 1.65  2003/04/10 09:36:52  robertj
00061  * Added some more functions for converting to alias addresses.
00062  *
00063  * Revision 1.64  2003/04/01 03:11:01  robertj
00064  * Added function to get array of AliasAddress into PStringArray.
00065  *
00066  * Revision 1.63  2003/03/25 04:56:17  robertj
00067  * Fixed issues to do with multiple inheritence in transaction reply cache.
00068  *
00069  * Revision 1.62  2003/03/20 01:51:07  robertj
00070  * More abstraction of H.225 RAS and H.501 protocols transaction handling.
00071  *
00072  * Revision 1.61  2003/03/01 00:23:42  craigs
00073  * New PeerElement implementation
00074  *
00075  * Revision 1.60  2003/02/25 06:48:15  robertj
00076  * More work on PDU transaction abstraction.
00077  *
00078  * Revision 1.59  2003/02/21 05:28:39  craigs
00079  * Factored out code for user with peer elements
00080  *
00081  * Revision 1.58  2003/02/01 13:31:14  robertj
00082  * Changes to support CAT authentication in RAS.
00083  *
00084  * Revision 1.57  2002/11/28 04:41:44  robertj
00085  * Added support for RAS ServiceControlIndication command.
00086  *
00087  * Revision 1.56  2002/09/16 01:14:15  robertj
00088  * Added #define so can select if #pragma interface/implementation is used on
00089  *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.
00090  *
00091  * Revision 1.55  2002/09/03 06:19:37  robertj
00092  * Normalised the multi-include header prevention ifdef/define symbol.
00093  *
00094  * Revision 1.54  2002/08/12 05:38:21  robertj
00095  * Changes to the RAS subsystem to support ability to make requests to client
00096  *   from gkserver without causing bottlenecks and race conditions.
00097  *
00098  * Revision 1.53  2002/08/05 10:03:47  robertj
00099  * Cosmetic changes to normalise the usage of pragma interface/implementation.
00100  *
00101  * Revision 1.52  2002/08/05 05:17:37  robertj
00102  * Fairly major modifications to support different authentication credentials
00103  *   in ARQ to the logged in ones on RRQ. For both client and server.
00104  * Various other H.235 authentication bugs and anomalies fixed on the way.
00105  *
00106  * Revision 1.51  2002/07/25 10:55:40  robertj
00107  * Changes to allow more granularity in PDU dumps, hex output increasing
00108  *   with increasing trace level.
00109  *
00110  * Revision 1.50  2002/07/11 07:04:12  robertj
00111  * Added build InfoRequest pdu type to RAS.
00112  *
00113  * Revision 1.49  2002/05/29 03:55:17  robertj
00114  * Added protocol version number checking infrastructure, primarily to improve
00115  *   interoperability with stacks that are unforgiving of new features.
00116  *
00117  * Revision 1.48  2002/05/29 00:03:15  robertj
00118  * Fixed unsolicited IRR support in gk client and server,
00119  *   including support for IACK and INAK.
00120  *
00121  * Revision 1.47  2002/05/07 03:18:12  robertj
00122  * Added application info (name/version etc) into registered endpoint data.
00123  *
00124  * Revision 1.46  2002/05/03 09:18:45  robertj
00125  * Added automatic retransmission of RAS responses to retried requests.
00126  *
00127  * Revision 1.45  2002/03/14 07:57:02  robertj
00128  * Added ability to specify alias type in H323SetAliasAddress, if not specified
00129  *   then defaults to previous behaviour, thanks Nils Bokerman.
00130  *
00131  * Revision 1.44  2001/12/15 07:09:56  robertj
00132  * Added functions to get E.164 address from alias address or addresses.
00133  *
00134  * Revision 1.43  2001/12/14 06:38:47  robertj
00135  * Broke out conversion of Q.850 and H.225 release complete codes to
00136  *   OpenH323 call end reasons enum.
00137  *
00138  * Revision 1.42  2001/12/13 10:56:04  robertj
00139  * Added build of request in progress pdu.
00140  *
00141  * Revision 1.41  2001/08/16 07:49:16  robertj
00142  * Changed the H.450 support to be more extensible. Protocol handlers
00143  *   are now in separate classes instead of all in H323Connection.
00144  *
00145  * Revision 1.40  2001/08/10 11:03:49  robertj
00146  * Major changes to H.235 support in RAS to support server.
00147  *
00148  * Revision 1.39  2001/08/06 07:44:52  robertj
00149  * Fixed problems with building without SSL
00150  *
00151  * Revision 1.38  2001/08/06 03:08:11  robertj
00152  * Fission of h323.h to h323ep.h & h323con.h, h323.h now just includes files.
00153  *
00154  * Revision 1.37  2001/06/14 06:25:13  robertj
00155  * Added further H.225 PDU build functions.
00156  * Moved some functionality from connection to PDU class.
00157  *
00158  * Revision 1.36  2001/06/14 00:45:19  robertj
00159  * Added extra parameters for Q.931 fields, thanks Rani Assaf
00160  *
00161  * Revision 1.35  2001/05/30 23:34:54  robertj
00162  * Added functions to send TCS=0 for transmitter side pause.
00163  *
00164  * Revision 1.34  2001/04/11 03:01:27  robertj
00165  * Added H.450.2 (call transfer), thanks a LOT to Graeme Reid & Norwood Systems
00166  *
00167  * Revision 1.33  2001/03/24 00:34:35  robertj
00168  * Added read/write hook functions so don't have to duplicate code in
00169  *    H323RasH235PDU descendant class of H323RasPDU.
00170  *
00171  * Revision 1.32  2001/03/21 04:52:40  robertj
00172  * Added H.235 security to gatekeepers, thanks Fürbass Franz!
00173  *
00174  * Revision 1.31  2001/02/09 05:16:24  robertj
00175  * Added #pragma interface for GNU C++.
00176  *
00177  * Revision 1.30  2001/01/19 01:20:38  robertj
00178  * Added non-const function to get access to Q.931 PDU in H323SignalPDU.
00179  *
00180  * Revision 1.29  2000/10/04 05:59:09  robertj
00181  * Minor reorganisation of the H.245 secondary channel start up to make it simpler
00182  *    to override its behaviour.
00183  *
00184  * Revision 1.28  2000/09/25 06:47:54  robertj
00185  * Removed use of alias if there is no alias present, ie only have transport address.
00186  *
00187  * Revision 1.27  2000/09/22 01:35:02  robertj
00188  * Added support for handling LID's that only do symmetric codecs.
00189  *
00190  * Revision 1.26  2000/07/15 09:50:49  robertj
00191  * Changed adding of Q.931 party numbers to only occur in SETUP.
00192  *
00193  * Revision 1.25  2000/06/21 08:07:39  robertj
00194  * Added cause/reason to release complete PDU, where relevent.
00195  *
00196  * Revision 1.24  2000/05/23 11:32:27  robertj
00197  * Rewrite of capability table to combine 2 structures into one and move functionality into that class
00198  *    allowing some normalisation of usage across several applications.
00199  * Changed H323Connection so gets a copy of capabilities instead of using endponts, allows adjustments
00200  *    to be done depending on the remote client application.
00201  *
00202  * Revision 1.23  2000/05/08 14:07:26  robertj
00203  * Improved the provision and detection of calling and caller numbers, aliases and hostnames.
00204  *
00205  * Revision 1.22  2000/05/08 05:05:43  robertj
00206  * Fixed bug in H.245 close logical channel timeout, thanks XuPeili.
00207  *
00208  * Revision 1.21  2000/05/02 04:32:24  robertj
00209  * Fixed copyright notice comment.
00210  *
00211  * Revision 1.20  2000/04/10 20:39:30  robertj
00212  * Added support for more sophisticated DTMF and hook flash user indication.
00213  * Added function to extract E164 address from Q.931/H.225 PDU.
00214  *
00215  * Revision 1.19  2000/03/25 02:00:39  robertj
00216  * Added adjustable caller name on connection by connection basis.
00217  *
00218  * Revision 1.18  2000/03/21 01:22:01  robertj
00219  * Fixed incorrect call reference code being used in originated call.
00220  *
00221  * Revision 1.17  1999/12/11 02:20:58  robertj
00222  * Added ability to have multiple aliases on local endpoint.
00223  *
00224  * Revision 1.16  1999/09/10 03:36:48  robertj
00225  * Added simple Q.931 Status response to Q.931 Status Enquiry
00226  *
00227  * Revision 1.15  1999/08/31 12:34:18  robertj
00228  * Added gatekeeper support.
00229  *
00230  * Revision 1.14  1999/08/25 05:07:49  robertj
00231  * File fission (critical mass reached).
00232  *
00233  * Revision 1.13  1999/07/16 06:15:59  robertj
00234  * Corrected semantics for tunnelled master/slave determination in fast start.
00235  *
00236  * Revision 1.12  1999/07/16 02:15:30  robertj
00237  * Fixed more tunneling problems.
00238  *
00239  * Revision 1.11  1999/07/15 14:45:35  robertj
00240  * Added propagation of codec open error to shut down logical channel.
00241  * Fixed control channel start up bug introduced with tunnelling.
00242  *
00243  * Revision 1.10  1999/07/10 02:51:53  robertj
00244  * Added mutexing in H245 procedures.
00245  *
00246  * Revision 1.9  1999/07/09 06:09:49  robertj
00247  * Major implementation. An ENORMOUS amount of stuff added everywhere.
00248  *
00249  * Revision 1.8  1999/06/25 10:25:35  robertj
00250  * Added maintentance of callIdentifier variable in H.225 channel.
00251  *
00252  * Revision 1.7  1999/06/14 05:15:56  robertj
00253  * Changes for using RTP sessions correctly in H323 Logical Channel context
00254  *
00255  * Revision 1.6  1999/06/13 12:41:14  robertj
00256  * Implement logical channel transmitter.
00257  * Fixed H245 connect on receiving call.
00258  *
00259  * Revision 1.5  1999/06/09 05:26:20  robertj
00260  * Major restructuring of classes.
00261  *
00262  * Revision 1.4  1999/06/06 06:06:36  robertj
00263  * Changes for new ASN compiler and v2 protocol ASN files.
00264  *
00265  * Revision 1.3  1999/04/26 06:14:47  craigs
00266  * Initial implementation for RTP decoding and lots of stuff
00267  * As a whole, these changes are called "First Noise"
00268  *
00269  * Revision 1.2  1999/01/16 02:35:04  robertj
00270  * GNi compiler compatibility.
00271  *
00272  * Revision 1.1  1999/01/16 01:30:58  robertj
00273  * Initial revision
00274  *
00275  */
00276 
00277 #ifndef __OPAL_H323PDU_H
00278 #define __OPAL_H323PDU_H
00279 
00280 #ifdef P_USE_PRAGMA
00281 #pragma interface
00282 #endif
00283 
00284 
00285 #include <ptlib/sockets.h>
00286 #include "h323con.h"
00287 #include "transports.h"
00288 #include "q931.h"
00289 #include "h225.h"
00290 #include "h245.h"
00291 #include "h323trans.h"
00292 
00293 
00294 class H225_RAS;
00295 
00296 
00297 #define H225_PROTOCOL_VERSION 6
00298 #define H245_PROTOCOL_VERSION 13
00299 
00300 
00302 
00305 class H323SignalPDU : public H225_H323_UserInformation
00306 {
00307   PCLASSINFO(H323SignalPDU, H225_H323_UserInformation);
00308 
00309   public:
00314     H323SignalPDU();
00315 
00318     H225_Setup_UUIE & BuildSetup(
00319       const H323Connection & connection,    
00320       const H323TransportAddress & destAddr 
00321     );
00322 
00325     H225_CallProceeding_UUIE & BuildCallProceeding(
00326       const H323Connection & connection    
00327     );
00328 
00331     H225_Connect_UUIE & BuildConnect(
00332       const H323Connection & connection    
00333     );
00334 
00337     H225_Connect_UUIE & BuildConnect(
00338       const H323Connection & connection,    
00339       const PIPSocket::Address & h245Address, 
00340       WORD port                               
00341     );
00342 
00345     H225_Alerting_UUIE & BuildAlerting(
00346       const H323Connection & connection    
00347     );
00348 
00351     H225_Information_UUIE & BuildInformation(
00352       const H323Connection & connection    
00353     );
00354 
00357     H225_ReleaseComplete_UUIE & BuildReleaseComplete(
00358       const H323Connection & connection    
00359     );
00360 
00363     H225_Facility_UUIE * BuildFacility(
00364       const H323Connection & connection,  
00365       BOOL empty                          
00366     );
00367 
00370     H225_Progress_UUIE & BuildProgress(
00371       const H323Connection & connection    
00372     );
00373 
00376     H225_Status_UUIE & BuildStatus(
00377       const H323Connection & connection    
00378     );
00379 
00382     H225_StatusInquiry_UUIE & BuildStatusInquiry(
00383       const H323Connection & connection    
00384     );
00385 
00388     H225_SetupAcknowledge_UUIE & BuildSetupAcknowledge(
00389       const H323Connection & connection    
00390     );
00391 
00394     H225_Notify_UUIE & BuildNotify(
00395       const H323Connection & connection    
00396     );
00398 
00399 
00404     void PrintOn(
00405       ostream & strm
00406     ) const;
00407 
00410     BOOL Read(
00411       H323Transport & transport   
00412     );
00413 
00416     BOOL ProcessReadData(
00417       H323Transport & transport,   
00418       const PBYTEArray & rawData
00419     );
00420 
00423     BOOL Write(
00424       H323Transport & transport,   
00425       H323Connection & connection  
00426     );
00427 
00430     const Q931 & GetQ931() const { return q931pdu; }
00431 
00434     Q931 & GetQ931() { return q931pdu; }
00435 
00438     void SetQ931(const Q931 & _q931pdu) { q931pdu = _q931pdu; }
00439 
00444     void BuildQ931();
00445 
00450     PString GetSourceAliases(
00451       const H323Transport * transport = NULL  
00452     ) const;
00453 
00454 
00459     PString GetSourceURL() const;
00460 
00465     PString GetDestinationAlias(
00466       BOOL firstAliasOnly = FALSE   
00467     ) const;
00468 
00473     BOOL GetSourceE164(
00474       PString & number    
00475     ) const;
00476 
00481     BOOL GetDestinationE164(
00482       PString & number    
00483     ) const;
00484 
00488     unsigned GetDistinctiveRing() const;
00489 
00494     void SetQ931Fields(
00495       const H323Connection & connection,
00496       BOOL insertPartyNumbers = FALSE,
00497       unsigned plan = 1,
00498       unsigned type = 0,
00499       int presentation = -1,
00500       int screening = -1
00501     );
00502 
00503   protected:
00504     // Even though we generally deal with the H323 protocol (H225) it is
00505     // actually contained within a field of the Q931 protocol.
00506     Q931 q931pdu;
00507 };
00508 
00509 
00511 
00514 class H323ControlPDU : public H245_MultimediaSystemControlMessage
00515 {
00516   PCLASSINFO(H323ControlPDU, H245_MultimediaSystemControlMessage);
00517 
00518   public:
00519     H245_RequestMessage    & Build(H245_RequestMessage   ::Choices request);
00520     H245_ResponseMessage   & Build(H245_ResponseMessage  ::Choices response);
00521     H245_CommandMessage    & Build(H245_CommandMessage   ::Choices command);
00522     H245_IndicationMessage & Build(H245_IndicationMessage::Choices indication);
00523 
00524     H245_MasterSlaveDetermination & BuildMasterSlaveDetermination(
00525       unsigned terminalType,
00526       unsigned statusDeterminationNumber
00527     );
00528     H245_MasterSlaveDeterminationAck & BuildMasterSlaveDeterminationAck(
00529       BOOL isMaster
00530     );
00531     H245_MasterSlaveDeterminationReject & BuildMasterSlaveDeterminationReject(
00532       unsigned cause
00533     );
00534 
00535     H245_TerminalCapabilitySet & BuildTerminalCapabilitySet(
00536       const H323Connection & connection,
00537       unsigned sequenceNumber,
00538       BOOL empty
00539     );
00540     H245_TerminalCapabilitySetAck & BuildTerminalCapabilitySetAck(
00541       unsigned sequenceNumber
00542     );
00543     H245_TerminalCapabilitySetReject & BuildTerminalCapabilitySetReject(
00544       unsigned sequenceNumber,
00545       unsigned cause
00546     );
00547 
00548     H245_OpenLogicalChannel & BuildOpenLogicalChannel(
00549       unsigned forwardLogicalChannelNumber
00550     );
00551     H245_RequestChannelClose & BuildRequestChannelClose(
00552       unsigned channelNumber,
00553       unsigned reason
00554     );
00555     H245_CloseLogicalChannel & BuildCloseLogicalChannel(
00556       unsigned channelNumber
00557     );
00558     H245_OpenLogicalChannelAck & BuildOpenLogicalChannelAck(
00559       unsigned channelNumber
00560     );
00561     H245_OpenLogicalChannelReject & BuildOpenLogicalChannelReject(
00562       unsigned channelNumber,
00563       unsigned cause
00564     );
00565     H245_OpenLogicalChannelConfirm & BuildOpenLogicalChannelConfirm(
00566       unsigned channelNumber
00567     );
00568     H245_CloseLogicalChannelAck & BuildCloseLogicalChannelAck(
00569       unsigned channelNumber
00570     );
00571     H245_RequestChannelCloseAck & BuildRequestChannelCloseAck(
00572       unsigned channelNumber
00573     );
00574     H245_RequestChannelCloseReject & BuildRequestChannelCloseReject(
00575       unsigned channelNumber
00576     );
00577     H245_RequestChannelCloseRelease & BuildRequestChannelCloseRelease(
00578       unsigned channelNumber
00579     );
00580 
00581     H245_RequestMode & BuildRequestMode(
00582       unsigned sequenceNumber
00583     );
00584     H245_RequestModeAck & BuildRequestModeAck(
00585       unsigned sequenceNumber,
00586       unsigned response
00587     );
00588     H245_RequestModeReject & BuildRequestModeReject(
00589       unsigned sequenceNumber,
00590       unsigned cause
00591     );
00592 
00593     H245_RoundTripDelayRequest & BuildRoundTripDelayRequest(
00594       unsigned sequenceNumber
00595     );
00596     H245_RoundTripDelayResponse & BuildRoundTripDelayResponse(
00597       unsigned sequenceNumber
00598     );
00599 
00600     H245_UserInputIndication & BuildUserInputIndication(
00601       const PString & value
00602     );
00603     H245_UserInputIndication & BuildUserInputIndication(
00604       char tone,               
00605       unsigned duration,       
00606       unsigned logicalChannel, 
00607       unsigned rtpTimestamp    
00608     );
00609 
00610     H245_FunctionNotUnderstood & BuildFunctionNotUnderstood(
00611       const H323ControlPDU & pdu
00612     );
00613 
00614     H245_EndSessionCommand & BuildEndSessionCommand(
00615       unsigned reason
00616     );
00617 };
00618 
00619 
00621 
00624 class H323RasPDU : public H225_RasMessage, public H323TransactionPDU
00625 {
00626   PCLASSINFO(H323RasPDU, H225_RasMessage);
00627 
00628   public:
00629     H323RasPDU();
00630     H323RasPDU(
00631       const H235Authenticators & authenticators
00632     );
00633 
00634     // overrides from PObject
00635     virtual PObject * Clone() const;
00636 
00637     // overrides from H323TransactionPDU
00638     virtual PASN_Object & GetPDU();
00639     virtual PASN_Choice & GetChoice();
00640     virtual const PASN_Object & GetPDU() const;
00641     virtual const PASN_Choice & GetChoice() const;
00642     virtual unsigned GetSequenceNumber() const;
00643     virtual unsigned GetRequestInProgressDelay() const;
00644 #if PTRACING
00645     virtual const char * GetProtocolName() const;
00646 #endif
00647     virtual H323TransactionPDU * ClonePDU() const;
00648     virtual void DeletePDU();
00649 
00650     // new functions
00651     H225_GatekeeperRequest       & BuildGatekeeperRequest(unsigned seqNum);
00652     H225_GatekeeperConfirm       & BuildGatekeeperConfirm(unsigned seqNum);
00653     H225_GatekeeperReject        & BuildGatekeeperReject(unsigned seqNum, unsigned reason = H225_GatekeeperRejectReason::e_undefinedReason);
00654     H225_RegistrationRequest     & BuildRegistrationRequest(unsigned seqNum);
00655     H225_RegistrationConfirm     & BuildRegistrationConfirm(unsigned seqNum);
00656     H225_RegistrationReject      & BuildRegistrationReject(unsigned seqNum, unsigned reason = H225_RegistrationRejectReason::e_undefinedReason);
00657     H225_UnregistrationRequest   & BuildUnregistrationRequest(unsigned seqNum);
00658     H225_UnregistrationConfirm   & BuildUnregistrationConfirm(unsigned seqNum);
00659     H225_UnregistrationReject    & BuildUnregistrationReject(unsigned seqNum, unsigned reason = H225_UnregRejectReason::e_undefinedReason);
00660     H225_LocationRequest         & BuildLocationRequest(unsigned seqNum);
00661     H225_LocationConfirm         & BuildLocationConfirm(unsigned seqNum);
00662     H225_LocationReject          & BuildLocationReject(unsigned seqNum, unsigned reason = H225_LocationRejectReason::e_undefinedReason);
00663     H225_AdmissionRequest        & BuildAdmissionRequest(unsigned seqNum);
00664     H225_AdmissionConfirm        & BuildAdmissionConfirm(unsigned seqNum);
00665     H225_AdmissionReject         & BuildAdmissionReject(unsigned seqNum, unsigned reason = H225_AdmissionRejectReason::e_undefinedReason);
00666     H225_DisengageRequest        & BuildDisengageRequest(unsigned seqNum);
00667     H225_DisengageConfirm        & BuildDisengageConfirm(unsigned seqNum);
00668     H225_DisengageReject         & BuildDisengageReject(unsigned seqNum, unsigned reason = H225_DisengageRejectReason::e_securityDenial);
00669     H225_BandwidthRequest        & BuildBandwidthRequest(unsigned seqNum);
00670     H225_BandwidthConfirm        & BuildBandwidthConfirm(unsigned seqNum, unsigned bandwidth = 0);
00671     H225_BandwidthReject         & BuildBandwidthReject(unsigned seqNum, unsigned reason = H225_BandRejectReason::e_undefinedReason);
00672     H225_InfoRequest             & BuildInfoRequest(unsigned seqNum, unsigned callRef = 0, const OpalGloballyUniqueID * id = NULL);
00673     H225_InfoRequestResponse     & BuildInfoRequestResponse(unsigned seqNum);
00674     H225_InfoRequestAck          & BuildInfoRequestAck(unsigned seqNum);
00675     H225_InfoRequestNak          & BuildInfoRequestNak(unsigned seqNum, unsigned reason = H225_InfoRequestNakReason::e_undefinedReason);
00676     H225_ServiceControlIndication& BuildServiceControlIndication(unsigned seqNum, const OpalGloballyUniqueID * id = NULL);
00677     H225_ServiceControlResponse  & BuildServiceControlResponse(unsigned seqNum);
00678     H225_UnknownMessageResponse  & BuildUnknownMessageResponse(unsigned seqNum);
00679     H225_RequestInProgress       & BuildRequestInProgress(unsigned seqNum, unsigned delay);
00680 };
00681 
00682 
00684 
00685 void H323SetAliasAddresses(const H323TransportAddressArray & addresses, H225_ArrayOf_AliasAddress & aliases);
00686 void H323SetAliasAddresses(const PStringArray & names, H225_ArrayOf_AliasAddress & aliases, int tag = -1);
00687 void H323SetAliasAddresses(const PStringList & names, H225_ArrayOf_AliasAddress & aliases, int tag = -1);
00688 void H323SetAliasAddress(const H323TransportAddress & address, H225_AliasAddress & alias);
00689 void H323SetAliasAddress(const PString & name, H225_AliasAddress & alias, int tag = -1);
00690 PStringArray H323GetAliasAddressStrings(const H225_ArrayOf_AliasAddress & aliases);
00691 PString H323GetAliasAddressString(const H225_AliasAddress & alias);
00692 PString H323GetAliasAddressE164(const H225_AliasAddress & alias);
00693 PString H323GetAliasAddressE164(const H225_ArrayOf_AliasAddress & aliases);
00694 
00695 H323Connection::CallEndReason H323TranslateToCallEndReason(
00696   Q931::CauseValues cause,
00697   const H225_ReleaseCompleteReason & reason
00698 );
00699 Q931::CauseValues H323TranslateFromCallEndReason(
00700   H323Connection::CallEndReason endReason,
00701   H225_ReleaseCompleteReason & reason
00702 );
00703 Q931::CauseValues H323TranslateFromCallEndReason(
00704   const H323Connection & connection,
00705   H225_ReleaseCompleteReason & rcReason
00706 );
00707 
00708 PString H323GetApplicationInfo(const H225_VendorIdentifier & vendor);
00709 
00710 
00711 #if PTRACING
00712 void H323TraceDumpPDU(
00713   const char * proto,
00714   BOOL writing,
00715   const PBYTEArray & rawData,
00716   const PASN_Object & pdu,
00717   const PASN_Choice & tag1,
00718   unsigned seqNum,
00719   const H323TransportAddress & locAddr,
00720   const H323TransportAddress & remAddr
00721 );
00722 #else
00723 #define H323TraceDumpPDU(proto, writing, rawData, pdu, tag1, seqNum, locAddr, remAddr)
00724 #endif
00725 
00726 
00727 #endif // __OPAL_H323PDU_H
00728 
00729 

Generated on Wed Feb 6 09:02:38 2008 for OpenH323 by  doxygen 1.5.4