]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
core_unreal: Preserve ADSI capability when dialing Local channels.
authorNaveen Albert <asterisk@phreaknet.org>
Mon, 6 Oct 2025 19:00:24 +0000 (15:00 -0400)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 30 Oct 2025 16:05:56 +0000 (16:05 +0000)
Dial() already preserves the ADSI capability by copying it to the new
channel, but since Local channel pairs consist of two channels, we
also need to copy the capability to the second channel.

Resolves: #1517

main/core_unreal.c

index 42166d273a15739210e7312bbdc3c8321b1b8b3e..bcae2405b7d9c07186506d9aa6658fbb684a4c12 100644 (file)
@@ -887,6 +887,7 @@ void ast_unreal_call_setup(struct ast_channel *semi1, struct ast_channel *semi2)
        ast_connected_line_copy_to_caller(ast_channel_caller(semi2), ast_channel_connected(semi1));
        ast_connected_line_copy_from_caller(ast_channel_connected(semi2), ast_channel_caller(semi1));
 
+       ast_channel_adsicpe_set(semi2, ast_channel_adsicpe(semi1));
        ast_channel_language_set(semi2, ast_channel_language(semi1));
        ast_channel_musicclass_set(semi2, ast_channel_musicclass(semi1));
        ast_channel_parkinglot_set(semi2, ast_channel_parkinglot(semi1));