[asterisk-commits] mmichelson: branch mmichelson/queue-log-atxfer r122214 - /team/mmichelson/que...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 12 11:18:53 CDT 2008


Author: mmichelson
Date: Thu Jun 12 11:18:52 2008
New Revision: 122214

URL: http://svn.digium.com/view/asterisk?view=rev&rev=122214
Log:
Fix a comment, some formatting, and a log message. I'm DONE!


Modified:
    team/mmichelson/queue-log-atxfer/apps/app_queue.c

Modified: team/mmichelson/queue-log-atxfer/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/queue-log-atxfer/apps/app_queue.c?view=diff&rev=122214&r1=122213&r2=122214
==============================================================================
--- team/mmichelson/queue-log-atxfer/apps/app_queue.c (original)
+++ team/mmichelson/queue-log-atxfer/apps/app_queue.c Thu Jun 12 11:18:52 2008
@@ -3062,8 +3062,8 @@
  * the actual transfer occurs. This happens during the masquerade after datastores are moved from old_chan
  * to new_chan. This is why new_chan is referenced for exten, context, and datastore information.
  *
- * At the end of this, we want to remove the datastore so that this does not get called on any further
- * transfers during this call.
+ * At the end of this, we want to remove the datastore so that this fixup function is not called on any
+ * future masquerades of the caller during the current call.
  */
 static void queue_transfer_fixup(void *data, struct ast_channel *old_chan, struct ast_channel *new_chan) 
 {
@@ -3072,11 +3072,13 @@
 	struct member *member = qtds->member;
 	int callstart = qtds->starttime;
 	struct ast_datastore *datastore;
+	
 	ast_queue_log(qe->parent->name, qe->chan->uniqueid, member->membername, "TRANSFER", "%s|%s|%ld|%ld",
 				new_chan->exten, new_chan->context, (long) (callstart - qe->start),
 				(long) (time(NULL) - callstart));
+	
 	if (!(datastore = ast_channel_datastore_find(new_chan, &queue_transfer_info, NULL))) {
-		ast_log(LOG_WARNING, "Can't find the datastore. WTF?\n");
+		ast_log(LOG_WARNING, "Can't find the queue_transfer datastore.\n");
 		return;
 	}
 




More information about the asterisk-commits mailing list