Add CLI/AMI commands to force chan_pjsip actions
[asterisk/asterisk.git] / res / res_pjsip / include / res_pjsip_private.h
1 /*
2  * res_pjsip.h
3  *
4  *  Created on: Jan 25, 2013
5  *      Author: mjordan
6  */
7
8 #ifndef RES_PJSIP_PRIVATE_H_
9 #define RES_PJSIP_PRIVATE_H_
10
11 struct ao2_container;
12
13 /*!
14  * \brief Initialize the configuration for res_pjsip
15  */
16 int ast_res_pjsip_initialize_configuration(void);
17
18 /*!
19  * \brief Annihilate the configuration objects
20  */
21 void ast_res_pjsip_destroy_configuration(void);
22
23 /*!
24  * \brief Reload the configuration
25  */
26 int ast_res_pjsip_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_pjsip_init_options_handling(int reload);
41
42 /*!
43  * \brief Initialize transport storage for contacts.
44  *
45  * \retval 0 on success
46  * \retval other on failure
47  */
48 int ast_res_pjsip_init_contact_transports(void);
49
50 /*!
51  * \brief Initialize outbound authentication support
52  *
53  * \retval 0 Success
54  * \retval non-zero Failure
55  */
56 int ast_sip_initialize_outbound_authentication(void);
57
58 /*!
59  * \brief Initialize system configuration
60  *
61  * \retval 0 Success
62  * \retval non-zero Failure
63  */
64 int ast_sip_initialize_system(void);
65
66 /*!
67  * \brief Initialize global configuration
68  *
69  * \retval 0 Success
70  * \retval non-zero Failure
71  */
72 int ast_sip_initialize_global(void);
73
74 /*!
75  * \brief Clean up res_pjsip options handling
76  */
77 void ast_res_pjsip_cleanup_options_handling(void);
78
79 #endif /* RES_PJSIP_PRIVATE_H_ */