00001 /* 00002 * $Id: mi_fifo.h 5514 2009-01-26 12:33:24Z henningw $ 00003 * 00004 * Copyright (C) 2006 Voice Sistem SRL 00005 * 00006 * This file is part of Kamailio, a free SIP server. 00007 * 00008 * Kamailio is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * Kamailio 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 * 00023 * History: 00024 * --------- 00025 * 2006-09-25 first version (bogdan) 00026 */ 00027 00028 /*! 00029 * \file 00030 * \brief MI Fifo :: Core 00031 * \ingroup mi 00032 */ 00033 00034 #ifndef _MI_FIFO_H_ 00035 #define _MI_FIFO_H_ 00036 00037 #define DEFAULT_MI_REPLY_DIR "/tmp/" 00038 00039 #define DEFAULT_MI_REPLY_IDENT "\t" 00040 00041 #define MI_CMD_SEPARATOR ':' 00042 00043 /* the 2-chars separator between name and value */ 00044 #define MI_ATTR_VAL_SEP1 ':' 00045 #define MI_ATTR_VAL_SEP2 ':' 00046 00047 /* maximum length of a FIFO line */ 00048 #define MAX_MI_FIFO_BUFFER 1024 00049 00050 /* how patient is ser with FIFO clients not awaiting a reply? 00051 4 x 80ms = 0.32 sec */ 00052 #define FIFO_REPLY_RETRIES 4 00053 00054 /* maximum size for the composed fifo reply name */ 00055 #define MAX_MI_FILENAME 128 00056 00057 /* size of buffer used by parser to read and build the MI tree */ 00058 #define MAX_MI_FIFO_READ 8192 00059 00060 #endif /* _MI_FIFO */
1.5.6