chan_audiosocket/chan_rtp/res_stasis_snoop: Disable device state caching for ephemeral channels
Resolves: #1638
goto failure;
}
ast_channel_set_fd(chan, 0, fd);
+ /* Prevent device state caching as this channel involves ephemeral destinations or sources */
+ ast_set_flag(ast_channel_flags(chan), AST_FLAG_DISABLE_DEVSTATE_CACHE);
ast_channel_tech_set(chan, &audiosocket_channel_tech);
ast_rtp_instance_destroy(instance);
goto failure;
}
+ /* Prevent device state caching as this channel involves ephemeral destinations or sources */
+ ast_set_flag(ast_channel_flags(chan), AST_FLAG_DISABLE_DEVSTATE_CACHE);
ast_rtp_instance_set_channel_id(instance, ast_channel_uniqueid(chan));
ast_rtp_instance_set_remote_address(instance, &destination_address);
ast_rtp_instance_destroy(instance);
goto failure;
}
+ /*Prevent device state caching as this channel involves ephemeral destinations or sources */
+ ast_set_flag(ast_channel_flags(chan), AST_FLAG_DISABLE_DEVSTATE_CACHE);
ast_rtp_instance_set_channel_id(instance, ast_channel_uniqueid(chan));
ast_rtp_instance_set_remote_address(instance, &address);
ast_channel_set_fd(chan, 0, ast_rtp_instance_fd(instance, 0));
goto failure;
}
+ /* Prevent device state caching as this channel involves ephemeral destinations or sources */
+ ast_set_flag(ast_channel_flags(chan), AST_FLAG_DISABLE_DEVSTATE_CACHE);
ast_debug(3, "%s: WebSocket channel %s allocated for connection %s\n",
ast_channel_name(chan), requestor_name,
instance->connection_id);
/* To keep the channel valid on the Snoop structure until it is destroyed we bump the ref up here */
ast_channel_ref(snoop->chan);
+ /* Prevent device state caching as this channel involves ephemeral destinations or sources */
+ ast_set_flag(ast_channel_flags(snoop->chan), AST_FLAG_DISABLE_DEVSTATE_CACHE);
ast_channel_tech_set(snoop->chan, &snoop_tech);
ao2_ref(snoop, +1);