-
Notifications
You must be signed in to change notification settings - Fork 909
/
config.c
61 lines (54 loc) · 2.24 KB
/
config.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* $Id$
* This file is part of SIP-router, a free SIP server.
*
* SIP-router is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version
*
* SIP-router is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
/*!
* \file
* \brief Rtpengine :: Configuration
* \ingroup Rtpengine
*/
#include "../../core/cfg/cfg.h"
#include "../../core/parser/msg_parser.h" /* method types */
#include "config.h"
struct cfg_group_rtpengine default_rtpengine_cfg = {
60, /* default disable timeout in seconds */
1, /* default aggressive_redetection enabled */
1000, /* default wait timeout in milliseconds */
MAX_RTPP_TRIED_NODES, 5, /* rtprengine retries */
};
void *rtpengine_cfg = &default_rtpengine_cfg;
cfg_def_t rtpengine_cfg_def[] = {
{"rtpengine_disable_tout", CFG_VAR_INT | CFG_ATOMIC, 0, 0, 0, 0,
"The time after which rtpengine module will try to communicate"
" with an RTPEngine instance after it has been marked disabled "
"automatically. "},
{"aggressive_redetection", CFG_VAR_INT | CFG_ATOMIC, 0, 1, 0, 0,
"Determines if the sip proxy should force a query of all nodes"
" when all RTPEngine instances seem unavailable."},
{"rtpengine_tout_ms", CFG_VAR_INT | CFG_ATOMIC, 0, 0, 0, 0,
"The total number of nodes inside a set to be queried before "
"giving up"
" establishing a session"},
{"queried_nodes_limit", CFG_VAR_INT | CFG_ATOMIC, 0,
MAX_RTPP_TRIED_NODES, 0, 0,
"Timeout value expressed in milliseconds to wait for reply "
"from RTPEngine"},
{"rtpengine_retr", CFG_VAR_INT | CFG_ATOMIC, 0, 0, 0, 0,
"How many times the module should retry to send and receive "
"after timeout was generated"},
{0, 0, 0, 0, 0, 0}};