]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Adding the Feature to sent a Reason Header in a SIP Cancel message by set the flag...
authorStefan Schmidt <sst@sil.at>
Wed, 7 Sep 2011 13:26:50 +0000 (13:26 +0000)
committerStefan Schmidt <sst@sil.at>
Wed, 7 Sep 2011 13:26:50 +0000 (13:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@334682 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/features.c

index 7afd71b4aa88b277a5c4fbbf33201deba9debda1..6e7dbe69d3715b91f856f9b73334cafe65843cc5 100644 (file)
@@ -7064,6 +7064,9 @@ int ast_do_pickup(struct ast_channel *chan, struct ast_channel *target)
                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)) {
                ast_log(LOG_WARNING, "Unable to masquerade '%s' into '%s'\n", chan_name,
                        target_name);