"Fossies" - the Fresh Open Source Software Archive

Member "opensips-3.0.1/modules/alias_db/alias_db.h" (16 Apr 2019, 1616 Bytes) of package /linux/misc/opensips-3.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "alias_db.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * ALIAS_DB Module
    3  *
    4  * Copyright (C) 2004 Voice Sistem
    5  *
    6  * This file is part of a module for opensips, a free SIP server.
    7  *
    8  * opensips is free software; you can redistribute it and/or modify
    9  * it under the terms of the GNU General Public License as published by
   10  * the Free Software Foundation; either version 2 of the License, or
   11  * (at your option) any later version
   12  *
   13  * opensips is distributed in the hope that it will be useful,
   14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   16  * GNU General Public License for more details.
   17  *
   18  * You should have received a copy of the GNU General Public License
   19  * along with this program; if not, write to the Free Software
   20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
   21  *
   22  * History:
   23  * --------
   24  * 2004-09-01: first version (ramona)
   25  * 2009-04-30: alias_db_find() added; NO_DOMAIN and REVERT flags added;
   26  *             use_domain param removed (bogdan)
   27  */
   28 
   29 
   30 #ifndef _ALIAS_DB_H_
   31 #define _ALIAS_DB_H_
   32 
   33 #include "../../db/db.h"
   34 #include "../../parser/msg_parser.h"
   35 
   36 
   37 /* Module parameters variables */
   38 
   39 extern str user_column;     /* 'username' column name */
   40 extern str domain_column;   /* 'domain' column name */
   41 extern str alias_user_column;     /* 'alias_username' column name */
   42 extern str alias_domain_column;   /* 'alias_domain' column name */
   43 extern str domain_prefix;
   44 extern int ald_append_branches;  /* append branches after an alias lookup */
   45 
   46 extern db_con_t* db_handle;   /* Database connection handle */
   47 
   48 #endif /* _ALIAS_DB_H_ */