mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +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:
@@ -917,12 +917,14 @@ static enum ast_bridge_result local_bridge_loop(struct ast_channel *c0, struct a
|
||||
}
|
||||
ast_frfree(fr);
|
||||
} else if (fr->subclass.integer == AST_CONTROL_CONNECTED_LINE) {
|
||||
if (ast_channel_connected_line_macro(who, other, fr, other == c0, 1)) {
|
||||
if (ast_channel_connected_line_sub(who, other, fr, 1) &&
|
||||
ast_channel_connected_line_macro(who, other, fr, other == c0, 1)) {
|
||||
ast_indicate_data(other, fr->subclass.integer, fr->data.ptr, fr->datalen);
|
||||
}
|
||||
ast_frfree(fr);
|
||||
} else if (fr->subclass.integer == AST_CONTROL_REDIRECTING) {
|
||||
if (ast_channel_redirecting_macro(who, other, fr, other == c0, 1)) {
|
||||
if (ast_channel_redirecting_sub(who, other, fr, 1) &&
|
||||
ast_channel_redirecting_macro(who, other, fr, other == c0, 1)) {
|
||||
ast_indicate_data(other, fr->subclass.integer, fr->data.ptr, fr->datalen);
|
||||
}
|
||||
ast_frfree(fr);
|
||||
@@ -1206,12 +1208,14 @@ static enum ast_bridge_result remote_bridge_loop(struct ast_channel *c0,
|
||||
}
|
||||
ast_frfree(fr);
|
||||
} else if (fr->subclass.integer == AST_CONTROL_CONNECTED_LINE) {
|
||||
if (ast_channel_connected_line_macro(who, other, fr, other == c0, 1)) {
|
||||
if (ast_channel_connected_line_sub(who, other, fr, 1) &&
|
||||
ast_channel_connected_line_macro(who, other, fr, other == c0, 1)) {
|
||||
ast_indicate_data(other, fr->subclass.integer, fr->data.ptr, fr->datalen);
|
||||
}
|
||||
ast_frfree(fr);
|
||||
} else if (fr->subclass.integer == AST_CONTROL_REDIRECTING) {
|
||||
if (ast_channel_redirecting_macro(who, other, fr, other == c0, 1)) {
|
||||
if (ast_channel_redirecting_sub(who, other, fr, 1) &&
|
||||
ast_channel_redirecting_macro(who, other, fr, other == c0, 1)) {
|
||||
ast_indicate_data(other, fr->subclass.integer, fr->data.ptr, fr->datalen);
|
||||
}
|
||||
ast_frfree(fr);
|
||||
|
Reference in New Issue
Block a user