mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-23 21:19:09 +00:00
res_pjsip_pubsub: Prune subs with reliable transports at startup
In an earlier release, inbound registrations on a reliable transport were pruned on Asterisk restart since the TCP connection would have been torn down and become unusable when Asterisk stopped. This same process is now also applied to inbound subscriptions. Also fixed issues in res_pjsip_registrar where it wasn't handling the monitoring correctly when multiple registrations came in over the same transport. To accomplish this, the pjsip_transport_event feature needed to be refactored to allow multiple monitors (multiple subcriptions or registrations from the same endpoint) to exist on the same transport. Since this changed the API, any external modules that may have used the transport monitor feature (highly unlikey) will need to be changed. ASTERISK-27612 Reported by: Ross Beer Change-Id: Iee87cf4eb9b7b2b93d5739a72af52d6ca8fbbe36
This commit is contained in:
@@ -347,4 +347,18 @@ int ast_sip_initialize_scheduler(void);
|
||||
*/
|
||||
int ast_sip_destroy_scheduler(void);
|
||||
|
||||
/*!
|
||||
* \internal
|
||||
* \brief Determines if a uri will still be valid after an asterisk restart
|
||||
* \since 13.20.0
|
||||
*
|
||||
* \param uri uri to test
|
||||
* \param endpoint The associated endpoint
|
||||
* \param rdata The rdata to get transport information from
|
||||
*
|
||||
* \retval 1 Yes, 0 No
|
||||
*/
|
||||
int ast_sip_will_uri_survive_restart(pjsip_sip_uri *uri, struct ast_sip_endpoint *endpoint,
|
||||
pjsip_rx_data *rdata);
|
||||
|
||||
#endif /* RES_PJSIP_PRIVATE_H_ */
|
||||
|
Reference in New Issue
Block a user