13 Copyright © 2017 Guillaume Bour
14 __________________________________________________________________
24 2.2. External Libraries or Applications
27 2.3.1. ping_interval (integer)
28 2.3.2. destination (string)
32 2.4.1. is_alive(destination)
36 1.1. Set ping_interval parameter
37 1.2. Set destination parameter
40 Chapter 1. Admin Guide
48 2.2. External Libraries or Applications
51 2.3.1. ping_interval (integer)
52 2.3.2. destination (string)
56 2.4.1. is_alive(destination)
60 This module performs destinations monitoring either for itself, or on
61 the behalf of other modules. The monitoring is done by sending SIP
62 OPTIONS requests, more or less in the same fashion as the dispatcher
63 module (which was the initial source for this module).
65 As an example of usage by other modules, see drouting, which was
66 enahnced to use this module to monitor its gateways.
71 2.2. External Libraries or Applications
74 2.3.1. ping_interval (integer)
75 2.3.2. destination (string)
79 2.4.1. is_alive(destination)
83 The following modules must be loaded before this module:
84 * tm - Transaction module
86 2.2. External Libraries or Applications
88 The following libraries or applications must be installed before
89 running Kamailio with this module loaded:
94 2.3.1. ping_interval (integer)
96 Interval requests are sent to destinations (in seconds)
98 Default value is 30 seconds.
100 Example 1.1. Set ping_interval parameter
102 modparam("keepalive", "ping_interval", 10)
105 2.3.2. destination (string)
107 Allows to specify statically destinations you want to monitor
109 Example 1.2. Set destination parameter
111 modparam("keepalive", "destination", "192.168.10.20")
112 modparam("keepalive", "destination", "sip.provider.com")
117 2.4.1. is_alive(destination)
119 Get destination status
121 Parameter “destination” is destination you want to check status
123 Return value: 1 if destination is up, 2 if destination is down, -1 on
126 This function can be used from ANY_ROUTE.
128 Example 1.3. is_alive() usage
130 is_alive("192.168.10.20");