[asterisk-commits] file: branch file/issue12713 r185963 - /team/file/issue12713/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 2 09:04:49 CDT 2009


Author: file
Date: Thu Apr  2 09:04:45 2009
New Revision: 185963

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=185963
Log:
When doing a redirect instead of a refer for a transfer treat it implicitly as a success.

Modified:
    team/file/issue12713/channels/chan_sip.c

Modified: team/file/issue12713/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/team/file/issue12713/channels/chan_sip.c?view=diff&rev=185963&r1=185962&r2=185963
==============================================================================
--- team/file/issue12713/channels/chan_sip.c (original)
+++ team/file/issue12713/channels/chan_sip.c Thu Apr  2 09:04:45 2009
@@ -24203,6 +24203,11 @@
 
 	sip_scheddestroy(p, SIP_TRANS_TIMEOUT);	/* Make sure we stop send this reply. */
 	sip_alreadygone(p);
+
+	if (p->owner) {
+		enum ast_control_transfer message = AST_TRANSFER_SUCCESS;
+		ast_queue_control_data(p->owner, AST_CONTROL_TRANSFER, &message, sizeof(message));
+	}
 	/* hangup here */
 	return 0;
 }




More information about the asterisk-commits mailing list