[asterisk-commits] schmidts: branch 10 r334682 - in /branches: 1.8/main/ 10/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 7 08:26:54 CDT 2011


Author: schmidts
Date: Wed Sep  7 08:26:50 2011
New Revision: 334682

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=334682
Log:
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.


Modified:
    branches/1.8/main/features.c
    branches/10/main/features.c

Modified: branches/1.8/main/features.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/features.c?view=diff&rev=334682&r1=334681&r2=334682
==============================================================================
--- branches/1.8/main/features.c (original)
+++ branches/1.8/main/features.c Wed Sep  7 08:26:50 2011
@@ -7048,6 +7048,9 @@
 		ast_log(LOG_WARNING, "Unable to queue answer on '%s'\n", chan_name);
 		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,

Modified: branches/10/main/features.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/features.c?view=diff&rev=334682&r1=334681&r2=334682
==============================================================================
--- branches/10/main/features.c (original)
+++ branches/10/main/features.c Wed Sep  7 08:26:50 2011
@@ -7064,6 +7064,9 @@
 		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);




More information about the asterisk-commits mailing list