[asterisk-commits] oej: branch oej/manager-check-trunk r342765 - /team/oej/manager-check-trunk/m...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 31 10:09:00 CDT 2011


Author: oej
Date: Mon Oct 31 10:08:54 2011
New Revision: 342765

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=342765
Log:
Adding debug stuff

Modified:
    team/oej/manager-check-trunk/main/manager.c

Modified: team/oej/manager-check-trunk/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/manager-check-trunk/main/manager.c?view=diff&rev=342765&r1=342764&r2=342765
==============================================================================
--- team/oej/manager-check-trunk/main/manager.c (original)
+++ team/oej/manager-check-trunk/main/manager.c Mon Oct 31 10:08:54 2011
@@ -6507,11 +6507,13 @@
 static int get_manager_sessions_cb(void *obj, void *arg, void *data, int flags)
 {
 	struct mansession_session *session = obj;
-	const char *login = arg;
+	const char *login = (char *)arg;
 	int *no_sessions = data;
 
+	ast_debug(1,"**** Comparing %s with login name %s \n", session->username, login);
 	if (strcasecmp(session->username, login) == 0) {
 		*no_sessions++;
+		ast_debug(1,"**** Found a positive match: %d\n", *no_sessions);
 	}
 
 	return 0;




More information about the asterisk-commits mailing list