mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
CEL refactoring cleanup
This change removes AST_CEL_BRIDGE_UPDATE since it should no longer be used because masquerade situations are now accounted for in other ways. This also refactors usage of AST_CEL_FORWARD to be produced by a Dial message which has been extended with a "forward" field. (closes issue ASTERISK-21566) Review: https://reviewboard.asterisk.org/r/2635/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4449,8 +4449,6 @@ static struct callattempt *wait_for_answer(struct queue_ent *qe, struct callatte
|
||||
o->block_connected_update = 0;
|
||||
}
|
||||
|
||||
ast_cel_report_event(in, AST_CEL_FORWARD, NULL, ast_channel_call_forward(o->chan), NULL);
|
||||
|
||||
ast_verb(3, "Now forwarding %s to '%s/%s' (thanks to %s)\n", inchan_name, tech, stuff, ochan_name);
|
||||
/* Setup parameters */
|
||||
o->chan = ast_request(tech, ast_channel_nativeformats(in), in, stuff, &status);
|
||||
@@ -4544,7 +4542,8 @@ static struct callattempt *wait_for_answer(struct queue_ent *qe, struct callatte
|
||||
ast_channel_unlock(qe->chan);
|
||||
|
||||
ast_channel_lock_both(qe->chan, original);
|
||||
ast_channel_publish_dial(qe->chan, original, NULL, "CANCEL");
|
||||
ast_channel_publish_dial_forward(qe->chan, original, NULL, "CANCEL",
|
||||
ast_channel_call_forward(original));
|
||||
ast_channel_unlock(original);
|
||||
ast_channel_unlock(qe->chan);
|
||||
/* Hangup the original channel now, in case we needed it */
|
||||
|
Reference in New Issue
Block a user