Merge the pimp_my_sip branch into trunk.
[asterisk/asterisk.git] / res / res_sip / include / res_sip_private.h
1 /*
2  * res_sip.h
3  *
4  *  Created on: Jan 25, 2013
5  *      Author: mjordan
6  */
7
8 #ifndef RES_SIP_PRIVATE_H_
9 #define RES_SIP_PRIVATE_H_
10
11 struct ao2_container;
12
13 /*!
14  * \brief Initialize the configuration for res_sip
15  */
16 int ast_res_sip_initialize_configuration(void);
17
18 /*!
19  * \brief Annihilate the configuration objects
20  */
21 void ast_res_sip_destroy_configuration(void);
22
23 /*!
24  * \brief Reload the configuration
25  */
26 int ast_res_sip_reload_configuration(void);
27
28 /*!
29  * \brief Initialize OPTIONS request handling.
30  *
31  * XXX This currently includes qualifying peers. It shouldn't.
32  * That should go into a registrar. When that occurs, we won't
33  * need the reload stuff.
34  *
35  * \param reload Reload options handling
36  *
37  * \retval 0 on success
38  * \retval other on failure
39  */
40 int ast_res_sip_init_options_handling(int reload);
41
42 /*!
43  * \brief Initialize outbound authentication support
44  *
45  * \retval 0 Success
46  * \retval non-zero Failure
47  */
48 int ast_sip_initialize_outbound_authentication(void);
49
50 /*!
51  * \brief Get the current defined endpoints
52  *
53  * \retval The current endpoints loaded by res_sip
54  */
55 struct ao2_container *ast_res_sip_get_endpoints(void);
56
57 #endif /* RES_SIP_PRIVATE_H_ */