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                 
  46         FTMOD_LIBPRI_OPT_MAX = (1 << 3)
  47 } ftdm_isdn_opts_t;
  48 
  49 typedef enum {
  50         FTMOD_LIBPRI_RUNNING = (1 << 0)
  51 } ftdm_isdn_flag_t;
  52 
  53 
  54 struct ftdm_libpri_data {
  55         ftdm_channel_t *dchan;
  56         ftdm_channel_t *dchans[2];
  57         struct ftdm_sigmsg sigmsg;
  58         uint32_t flags;
  59         int32_t mode;
  60         ftdm_isdn_opts_t opts;
  61 
  62         int node;
  63         int pswitch;
  64         char *dialplan;
  65         unsigned int l1;
  66         unsigned int dp;
  67 
  68         int debug;
  69 
  70         lpwrap_pri_t spri;
  71 };
  72 
  73 typedef struct ftdm_libpri_data ftdm_libpri_data_t;
  74 
  75 
  76 /* b-channel private data */
  77 struct ftdm_isdn_bchan_data
  78 {
  79         int32_t digit_timeout;
  80 };
  81 
  82 typedef struct ftdm_isdn_bchan_data ftdm_isdn_bchan_data_t;
  83 
  84 
  85 #endif
  86 
  87 /* For Emacs:
  88  * Local Variables:
  89  * mode:c
  90  * indent-tabs-mode:t
  91  * tab-width:4
  92  * c-basic-offset:4
  93  * End:
  94  * For VIM:
  95  * vim:set softtabstop=4 shiftwidth=4 tabstop=4:
  96  */
  97 

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