Files
asterisk/res
Tinet-mucw a38add11e6 res_pjsip_transport_websocket: Prevent transport from being destroyed before message finishes.
From the gdb information, ast_websocket_read reads a message successfully,
then transport_read is called in the serializer. During execution of pjsip_transport_down,
ws_session->stream->fd is closed; ast_websocket_read encounters an error and exits the while loop.
After executing transport_shutdown, the transport's reference count becomes 0, causing a crash when sending SIP messages.
This was due to pjsip_transport_dec_ref executing earlier than pjsip_rx_data_clone, leading to this issue.
In websocket_cb executeing pjsip_transport_add_ref, this we now ensure the transport is not destroyed while in the loop.

Resolves: asterisk#299
2023-09-21 14:47:54 +00:00
..
2023-04-03 07:58:23 -05:00
2023-08-14 17:19:07 +00:00
2023-01-31 11:23:11 -06:00
2023-01-10 14:07:44 -06:00
2023-04-03 07:58:23 -05:00
2023-03-16 09:22:09 -05:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-12-03 10:38:39 -06:00
2021-11-15 16:37:34 -06:00
2021-12-03 10:38:39 -06:00
2021-11-15 16:37:34 -06:00
2023-01-10 14:07:44 -06:00
2021-11-15 16:37:34 -06:00
2022-07-12 07:46:03 -05:00
2021-12-03 10:38:39 -06:00
2022-03-24 12:00:58 -05:00
2021-11-18 16:59:26 -06:00
2021-11-15 16:37:34 -06:00
2021-11-15 16:37:34 -06:00
2021-11-15 16:37:34 -06:00
2021-12-03 10:38:39 -06:00
2021-12-03 10:38:39 -06:00