pjsip/config_global: regcontext context not created

The context specified by 'regcontext' was not being created, so when Asterisk
attempted to later dynamically add an extension it would fail. This patch now
creates the context if a 'regcontext' is specified.

ASTERISK-28238

Change-Id: I0f36cf4ab0a93ff4b1cc5548d617ecfd45e09265
This commit is contained in:
Kevin Harwell
2019-01-15 17:20:30 -06:00
parent 6118b65a5a
commit f668db9ba0
3 changed files with 95 additions and 1 deletions

View File

@@ -398,4 +398,14 @@ int ast_sip_initialize_transport_management(void);
*/
void ast_sip_destroy_transport_management(void);
/*!
* \internal
* \brief Add online persistent endpoints to the given regcontext
*
* \param regcontext The context to add endpoints to
*
* \retval -1 on error, 0 on success
*/
int ast_sip_persistent_endpoint_add_to_regcontext(const char *regcontext);
#endif /* RES_PJSIP_PRIVATE_H_ */