root/src/ftmod/ftmod_libpri/ftmod_libpri.h

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

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2009, Anthony Minessale II
   3  * All rights reserved.
   4  *
   5  * Redistribution and use in source and binary forms, with or without
   6  * modification, are permitted provided that the following conditions
   7  * are met:
   8  *
   9  * * Redistributions of source code must retain the above copyright
  10  * notice, this list of conditions and the following disclaimer.
  11  *
  12  * * Redistributions in binary form must reproduce the above copyright
  13  * notice, this list of conditions and the following disclaimer in the
  14  * documentation and/or other materials provided with the distribution.
  15  *
  16  * * Neither the name of the original author; nor the names of any contributors
  17  * may be used to endorse or promote products derived from this software
  18  * without specific prior written permission.
  19  *
  20  *
  21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  24  * A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER
  25  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  26  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  27  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  28  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  29  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  30  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  31  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32  */
  33 
  34 
  35 #ifndef FTMOD_LIBPRI_H
  36 #define FTMOD_LIBPRI_H
  37 #include "freetdm.h"
  38 #include "lpwrap_pri.h"
  39 
  40 typedef enum {
  41         FTMOD_LIBPRI_OPT_NONE = 0,
  42         FTMOD_LIBPRI_OPT_SUGGEST_CHANNEL = (1 << 0),
  43         FTMOD_LIBPRI_OPT_OMIT_DISPLAY_IE = (1 << 1),
  44         FTMOD_LIBPRI_OPT_OMIT_REDIRECTING_NUMBER_IE = (1 << 2),
  45         FTMOD_LIBPRI_OPT_FACILITY_AOC = (1 << 3),
  46 
  47         FTMOD_LIBPRI_OPT_MAX = (1 << 4)
  48 } ftdm_isdn_opts_t;
  49 
  50 typedef enum {
  51         FTMOD_LIBPRI_RUNNING = (1 << 0)
  52 } ftdm_isdn_flag_t;
  53 
  54 
  55 struct ftdm_libpri_data {
  56         ftdm_channel_t *dchan;
  57         ftdm_isdn_opts_t opts;
  58         uint32_t flags;
  59         uint32_t debug_mask;
  60 
  61         int mode;
  62         int dialect;
  63         unsigned int layer1;
  64         unsigned int ton;
  65 
  66         lpwrap_pri_t spri;
  67 };
  68 
  69 typedef struct ftdm_libpri_data ftdm_libpri_data_t;
  70 
  71 #endif
  72 
  73 /* For Emacs:
  74  * Local Variables:
  75  * mode:c
  76  * indent-tabs-mode:t
  77  * tab-width:4
  78  * c-basic-offset:4
  79  * End:
  80  * For VIM:
  81  * vim:set softtabstop=4 shiftwidth=4 tabstop=4:
  82  */
  83 

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