root/src/isdn/include/DMS.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /******************************************************************************
   2 
   3   FileName:         national.h
   4 
   5   Contents:         Header and definition for the National ISDN dialect. The 
   6                                                                                 header contents the following parts:
   7                     - Definition of codes
   8                     - Definition of information elements (nationalie_).
   9                     - Definition of messages (nationalmes_).
  10                     - Function prototypes.
  11 
  12   Description:          The National ISDN dialect here covers ????
  13 
  14   Related Files:        national.h                      National ISDN Definitions
  15                         nationalie.c                    National ISDN IE encoders/coders
  16                         nationalStateTE.c               National ISDN TE State Engine
  17                         nationalStateNT.c               National ISDN NT State Engine
  18 
  19   License/Copyright:
  20 
  21   Copyright (c) 2007, Jan Vidar Berger, Case Labs, Ltd. All rights reserved.
  22   email:janvb@caselaboratories.com  
  23 
  24   Copyright (c) 2007, Michael Jerris. All rights reserved.
  25   email:mike@jerris.com  
  26 
  27   Redistribution and use in source and binary forms, with or without 
  28   modification, are permitted provided that the following conditions are 
  29   met:
  30 
  31     * Redistributions of source code must retain the above copyright notice, 
  32           this list of conditions and the following disclaimer.
  33     * Redistributions in binary form must reproduce the above copyright notice, 
  34           this list of conditions and the following disclaimer in the documentation 
  35           and/or other materials provided with the distribution.
  36     * Neither the name of the Case Labs, Ltd nor the names of its contributors 
  37           may be used to endorse or promote products derived from this software 
  38           without specific prior written permission.
  39 
  40   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
  41   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
  42   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
  43   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
  44   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
  45   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
  46   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
  47   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
  48   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
  49   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
  50   POSSIBILITY OF SUCH DAMAGE.
  51 ******************************************************************************/
  52 
  53 #ifndef _DMS_NL
  54 #define _DMS_NL
  55 
  56 #include "Q931.h"
  57 
  58 /*****************************************************************************
  59 
  60   Q.931 Message codes
  61   Only National specific message and ie types 
  62   here the rest are inherited from national.h
  63   
  64 *****************************************************************************/
  65 
  66 
  67 /*****************************************************************************
  68 
  69   Q.931 Message Pack/Unpack functions. Implemented in nationalmes.c
  70 
  71 *****************************************************************************/
  72 L3INT DMSUmes_Setup(Q931_TrunkInfo_t *pTrunk, L3UCHAR *IBuf, Q931mes_Generic *OBuf, L3INT IOff, L3INT Size);
  73 L3INT DMSPmes_Setup(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize, L3UCHAR *OBuf, L3INT *OSize);
  74 L3INT DMSUmes_0x07(Q931_TrunkInfo_t *pTrunk, L3UCHAR *IBuf, Q931mes_Generic *mes, L3INT IOff, L3INT Size);
  75 L3INT DMSPmes_0x07(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize, L3UCHAR *OBuf, L3INT *OSize);
  76 L3INT DMSUmes_0x0f(Q931_TrunkInfo_t *pTrunk, L3UCHAR *IBuf, Q931mes_Generic *mes, L3INT IOff, L3INT Size);
  77 L3INT DMSPmes_0x0f(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize, L3UCHAR *OBuf, L3INT *OSize);
  78 
  79 /*****************************************************************************
  80 
  81   Q.931 Process Function Prototyping. Implemented in nationalStateTE.c
  82 
  83 *****************************************************************************/
  84 
  85 L3INT DMSProc0x0fTE(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT iFrom);
  86 L3INT DMSProc0x07TE(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT iFrom);
  87 
  88 void DMSCreateTE(L3UCHAR i);
  89 void DMSCreateNT(L3UCHAR i);
  90 
  91 #endif /* _DMS_NL */

/* [<][>][^][v][top][bottom][index][help] */