2013-04-25 18:25:31 +00:00
|
|
|
/*
|
2013-07-30 18:14:50 +00:00
|
|
|
* res_pjsip.h
|
2013-04-25 18:25:31 +00:00
|
|
|
*
|
|
|
|
* Created on: Jan 25, 2013
|
|
|
|
* Author: mjordan
|
|
|
|
*/
|
|
|
|
|
2013-07-31 13:31:55 +00:00
|
|
|
#ifndef RES_PJSIP_PRIVATE_H_
|
|
|
|
#define RES_PJSIP_PRIVATE_H_
|
2013-04-25 18:25:31 +00:00
|
|
|
|
|
|
|
struct ao2_container;
|
|
|
|
|
|
|
|
/*!
|
2013-07-30 18:14:50 +00:00
|
|
|
* \brief Initialize the configuration for res_pjsip
|
2013-04-25 18:25:31 +00:00
|
|
|
*/
|
2013-07-30 18:14:50 +00:00
|
|
|
int ast_res_pjsip_initialize_configuration(void);
|
2013-04-25 18:25:31 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Annihilate the configuration objects
|
|
|
|
*/
|
2013-07-30 18:14:50 +00:00
|
|
|
void ast_res_pjsip_destroy_configuration(void);
|
2013-04-25 18:25:31 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Reload the configuration
|
|
|
|
*/
|
2013-07-30 18:14:50 +00:00
|
|
|
int ast_res_pjsip_reload_configuration(void);
|
2013-04-25 18:25:31 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Initialize OPTIONS request handling.
|
|
|
|
*
|
|
|
|
* XXX This currently includes qualifying peers. It shouldn't.
|
|
|
|
* That should go into a registrar. When that occurs, we won't
|
|
|
|
* need the reload stuff.
|
|
|
|
*
|
|
|
|
* \param reload Reload options handling
|
|
|
|
*
|
|
|
|
* \retval 0 on success
|
|
|
|
* \retval other on failure
|
|
|
|
*/
|
2013-07-30 18:14:50 +00:00
|
|
|
int ast_res_pjsip_init_options_handling(int reload);
|
2013-04-25 18:25:31 +00:00
|
|
|
|
2013-06-22 14:03:22 +00:00
|
|
|
/*!
|
|
|
|
* \brief Initialize transport storage for contacts.
|
|
|
|
*
|
|
|
|
* \retval 0 on success
|
|
|
|
* \retval other on failure
|
|
|
|
*/
|
2013-07-30 18:14:50 +00:00
|
|
|
int ast_res_pjsip_init_contact_transports(void);
|
2013-06-22 14:03:22 +00:00
|
|
|
|
2013-04-25 18:25:31 +00:00
|
|
|
/*!
|
|
|
|
* \brief Initialize outbound authentication support
|
|
|
|
*
|
|
|
|
* \retval 0 Success
|
|
|
|
* \retval non-zero Failure
|
|
|
|
*/
|
|
|
|
int ast_sip_initialize_outbound_authentication(void);
|
|
|
|
|
2013-07-18 19:25:51 +00:00
|
|
|
/*!
|
|
|
|
* \brief Initialize system configuration
|
|
|
|
*
|
|
|
|
* \retval 0 Success
|
|
|
|
* \retval non-zero Failure
|
|
|
|
*/
|
|
|
|
int ast_sip_initialize_system(void);
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Initialize global configuration
|
|
|
|
*
|
|
|
|
* \retval 0 Success
|
|
|
|
* \retval non-zero Failure
|
|
|
|
*/
|
|
|
|
int ast_sip_initialize_global(void);
|
|
|
|
|
2013-08-02 12:40:03 +00:00
|
|
|
/*!
|
|
|
|
* \brief Clean up res_pjsip options handling
|
|
|
|
*/
|
|
|
|
void ast_res_pjsip_cleanup_options_handling(void);
|
|
|
|
|
2013-07-31 13:31:55 +00:00
|
|
|
#endif /* RES_PJSIP_PRIVATE_H_ */
|