mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
Adding the Feature to sent a Reason Header in a SIP Cancel message by set the flag AST_FLAG_ANSWERED_ELSEWHERE before doing a masquerade in the pickup function.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@334682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7048,6 +7048,9 @@ int ast_do_pickup(struct ast_channel *chan, struct ast_channel *target)
|
|||||||
ast_log(LOG_WARNING, "Unable to queue answer on '%s'\n", chan_name);
|
ast_log(LOG_WARNING, "Unable to queue answer on '%s'\n", chan_name);
|
||||||
goto pickup_failed;
|
goto pickup_failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* setting this flag to generate a reason header in the cancel message to the ringing channel */
|
||||||
|
ast_set_flag(chan, AST_FLAG_ANSWERED_ELSEWHERE);
|
||||||
|
|
||||||
if (ast_channel_masquerade(target, chan)) {
|
if (ast_channel_masquerade(target, chan)) {
|
||||||
ast_log(LOG_WARNING, "Unable to masquerade '%s' into '%s'\n", chan_name,
|
ast_log(LOG_WARNING, "Unable to masquerade '%s' into '%s'\n", chan_name,
|
||||||
|
|||||||
Reference in New Issue
Block a user