asterisk/pbx
Kevin Harwell 4274a4a7dd pbx_realtime: wrong type stored on publish of ast_channel_snapshot_type
A prior patch segmented channel snapshots, and changed the underlying
data object type associated with ast_channel_snapshot_type stasis
messages. Prior to Asterisk 18 it was a type ast_channel_snapshot, but
now it type ast_channel_snapshot_update.

When publishing ast_channel_snapshot_type in pbx_realtime the
ast_channel_snapshot was being passed in as the message data
object. When a handler, expecting a data object type of
ast_channel_snapshot_update, dereferenced this value a crash
would occur.

This patch makes it so pbx_realtime now uses the expected type, and
channel snapshot publish method when publishing.

ASTERISK-29168 #close

Change-Id: I9a2cfa0ec285169317f4b9146e4027da8a4fe896
2021-01-06 09:13:13 -06:00
..
ael/ael-test Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
dundi-parser.c Merge "pbx_dundi: Added IPv6 support for dundi" 2018-08-27 09:38:15 -05:00
dundi-parser.h pbx_dundi: Added IPv6 support for dundi 2018-08-17 16:03:14 -05:00
Makefile Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
pbx_ael.c loader: Add dependency fields to module structures. 2018-01-15 13:25:51 -05:00
pbx_config.c pbx_config: Only the first [globals] section is seen. 2018-11-08 06:43:10 -05:00
pbx_dundi.c Compiler fixes for gcc 10 2020-06-10 09:33:28 -05:00
pbx_loopback.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
pbx_lua.c pbx_lua: Support displaying lua error message if no debug table exists 2018-04-30 10:31:34 +02:00
pbx_realtime.c pbx_realtime: wrong type stored on publish of ast_channel_snapshot_type 2021-01-06 09:13:13 -06:00
pbx_spool.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00