Files
asterisk/res
Tinet-mucw 0379e8b5cf 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
(cherry picked from commit 3e3c2c833d)
2024-01-12 18:21:32 +00:00
..
2023-05-08 17:55:17 +00:00
2023-09-06 16:46:46 +00:00
2023-01-30 16:17:20 -05:00
2021-12-03 12:12:02 -06:00
2023-05-08 17:55:17 +00:00
2023-05-08 17:55:16 +00:00
2021-11-18 16:02:22 -06:00
2021-11-18 16:02:22 -06:00
2021-11-18 16:02:22 -06:00
2021-11-18 16:02:22 -06:00
2021-11-18 16:02:22 -06:00
2021-11-18 16:02:22 -06:00
2021-11-18 16:02:22 -06:00
2021-11-18 16:02:22 -06:00
2021-12-03 12:12:02 -06:00
2021-11-15 15:41:51 -06:00
2021-12-03 12:12:02 -06:00
2021-11-15 15:41:51 -06:00
2021-11-15 15:41:51 -06:00
2021-12-03 12:12:02 -06:00
2022-07-12 07:45:19 -05:00
2021-12-03 12:12:02 -06:00
2022-03-24 12:01:32 -05:00
2021-11-18 16:25:23 -06:00
2021-11-15 15:41:51 -06:00
2021-11-15 15:41:51 -06:00
2021-11-15 15:41:51 -06:00
2021-11-15 15:41:51 -06:00
2021-12-03 12:12:02 -06:00
2021-12-03 12:12:02 -06:00