modules_s/speeddial/speeddial.h

00001 /*
00002  * $Id$
00003  *
00004  * Copyright (C) 2004 Voice Sistem SRL
00005  *
00006  * This file is part of SIP Express Router.
00007  *
00008  * SPEEDDIAL SER-module is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License
00010  * as published by the Free Software Foundation; either version 2
00011  * of the License, or (at your option) any later version.
00012  *
00013  * SPEEDDIAL SER-module is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00021  *
00022  * For any questions about this software and its license, please contact
00023  * Voice Sistem at following e-mail address:
00024  *         office@voice-sistem.ro
00025  *  
00026  *
00027  * History:
00028  * ---------
00029  * 
00030  */
00031 
00032 
00033 #ifndef _SPEEDDIAL_H_
00034 #define _SPEEDDIAL_H_
00035 
00036 #include "../../lib/srdb2/db.h"
00037 #include "../../modules/sl/sl.h"
00038 #include "../../parser/msg_parser.h"
00039 
00040 
00041 /* Module parameters variables */
00042 
00043 extern char* uid_column; 
00044 extern char* dial_username_column;
00045 extern char* dial_did_column;
00046 extern char* new_uri_column;
00047 
00048 extern db_ctx_t* db;
00049 
00050 struct db_table_name {
00051         char* table;
00052         db_cmd_t* lookup_num;
00053 };
00054 
00055 extern struct db_table_name* tables;
00056 extern unsigned int tables_no;
00057 
00058 extern sl_api_t slb;
00059 
00060 #endif /* _SPEEDDIAL_H_ */