George Joseph
d6b2a58736
res_pjsip_session: Add cleanup to ast_sip_session_terminate
...
If you use ast_request to create a PJSIP channel but then hang it
up without causing a transaction to be sent, the session will
never be destroyed. This is due ot the fact that it's pjproject
that triggers the session cleanup when the transaction ends.
app_chanisavail was doing this to get more granular channel state
and it's also possible for this to happen via ARI.
* ast_sip_session_terminate was modified to explicitly call the
cleanup tasks and unreference session if the invite state is NULL
AND invite_tsx is NULL (meaning we never sent a transaction).
* chan_pjsip/hangup was modified to bump session before it calls
ast_sip_session_terminate to insure that session stays valid
while it does its own cleanup.
* Added test events to session_destructor for a future testsuite
test.
ASTERISK-26908 #close
Reported-by: Richard Mudgett
Change-Id: I52daf6f757184e5544c261f64f6fe9602c4680a9
2017-04-27 10:43:32 -05:00
..
2017-01-04 14:06:20 -06:00
2017-04-16 18:59:54 -06:00
2017-01-04 14:06:20 -06:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2017-01-26 17:06:40 -06:00
2016-11-04 13:56:42 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-02-02 13:02:03 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-12 15:57:21 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-12 15:57:21 -06:00
2016-11-29 13:35:26 -02:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2017-02-10 18:04:41 -05:00
2017-02-21 10:53:17 -06:00
2017-02-22 17:37:52 -06:00
2017-02-21 10:53:17 -06:00
2017-03-01 07:27:50 -06:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-12-08 11:47:30 +00:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-03-21 13:40:29 -06:00
2017-04-12 15:57:21 -06:00
2017-04-24 13:22:48 -05:00
2017-04-12 15:57:39 -06:00
2016-11-15 22:25:14 +02:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2017-04-03 17:43:50 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-01-04 14:06:20 -06:00
2016-11-15 22:25:14 +02:00
2017-01-24 11:25:19 -06:00
2017-02-20 22:24:31 -06:00
2016-10-27 08:30:36 -05:00
2017-03-28 15:51:21 -06:00
2016-12-31 20:00:46 -06:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-03-15 13:52:15 +00:00
2016-09-09 17:13:02 -05:00
2017-02-15 13:11:46 -06:00
2017-02-23 16:23:53 -06:00
2016-10-27 09:53:55 -04:00
2017-03-21 08:45:37 -06:00
2017-02-06 11:02:35 -06:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2017-01-20 07:22:13 -06:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2016-09-09 17:13:02 -05:00
2017-04-07 08:44:49 -05:00
2017-04-12 15:57:21 -06:00
2017-03-15 10:29:16 -06:00
2016-11-10 16:59:41 -05:00
2017-02-08 11:54:39 -06:00
2017-04-26 10:44:00 -05:00
2017-04-12 15:57:21 -06:00
2017-04-27 10:43:32 -05:00
2017-04-12 15:57:21 -06:00
2016-09-14 09:53:33 -05:00
2017-03-08 15:09:59 -06:00
2017-03-22 11:26:48 +00:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-02-01 17:33:41 -06:00
2017-04-19 13:40:57 -05:00
2016-10-27 09:53:55 -04:00
2017-03-14 12:26:32 -06:00
2016-10-27 09:53:55 -04:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-02-13 11:33:15 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-03-29 15:04:05 +02:00
2016-10-27 09:53:55 -04:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2017-04-14 16:55:03 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-03-29 06:57:49 -05:00
2016-09-25 13:40:23 -05:00