mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-22 13:25:17 +00:00
Deprecated macro usage for connected line, redirecting, and CCSS
This commit adds GoSub alternatives to connected line, redirecting, and CCSS macro hooks so that macro can finally be deprecated. This also adds deprecation warnings for those features when used and in documentation. Review: https://reviewboard.asterisk.org/r/1760/ (closes issue SWP-4256) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@357013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1304,7 +1304,8 @@ static int app_exec(struct ast_channel *chan, const char *data)
|
||||
|
||||
/* Update connected line to caller if available. */
|
||||
if (targs.pending_out_connected_update) {
|
||||
if (ast_channel_connected_line_macro(outbound, caller, &targs.connected_out, 1, 0)) {
|
||||
if (ast_channel_connected_line_sub(outbound, caller, &targs.connected_out, 0) &&
|
||||
ast_channel_connected_line_macro(outbound, caller, &targs.connected_out, 1, 0)) {
|
||||
ast_channel_update_connected_line(caller, &targs.connected_out, NULL);
|
||||
}
|
||||
}
|
||||
@@ -1329,7 +1330,8 @@ static int app_exec(struct ast_channel *chan, const char *data)
|
||||
|
||||
/* Update connected line to winner if changed. */
|
||||
if (targs.pending_in_connected_update) {
|
||||
if (ast_channel_connected_line_macro(caller, outbound, &targs.connected_in, 0, 0)) {
|
||||
if (ast_channel_connected_line_sub(caller, outbound, &targs.connected_in, 0) &&
|
||||
ast_channel_connected_line_macro(caller, outbound, &targs.connected_in, 0, 0)) {
|
||||
ast_channel_update_connected_line(outbound, &targs.connected_in, NULL);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user