[asterisk-commits] kharwell: branch 1.8 r381770 - /branches/1.8/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 19 13:16:47 CST 2013


Author: kharwell
Date: Tue Feb 19 13:16:44 2013
New Revision: 381770

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=381770
Log:
Write the correct callid to the data1 field in queue_log for transfer events.

The incorrect callid was being written to the "data1" field in queue_log table
for transfer events.  The callid of the queue was being written instead of the
transfer target's callid.  This now gets the correct "transfer to" number and
places that in the "data1" field of the queue_log table when a transfer event
is triggered.

(closes issue ASTERISK-19960)
Reported by: vladimir shmagin

Modified:
    branches/1.8/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=381770&r1=381769&r2=381770
==============================================================================
--- branches/1.8/main/features.c (original)
+++ branches/1.8/main/features.c Tue Feb 19 13:16:44 2013
@@ -2851,7 +2851,13 @@
 		ast_party_connected_line_free(&connected_line);
 		return -1;
 	}
-	ast_explicit_goto(xferchan, transferee->context, transferee->exten, transferee->priority);
+
+	dash = strrchr(xferto, '@');
+	if (dash) {
+		/* Trim off the context. */
+		*dash = '\0';
+	}
+	ast_explicit_goto(xferchan, transferer_real_context, xferto, 1);
 	xferchan->_state = AST_STATE_UP;
 	ast_clear_flag(xferchan, AST_FLAGS_ALL);
 




More information about the asterisk-commits mailing list