[Asterisk-cvs] asterisk/apps app_queue.c,1.115,1.116

markster at lists.digium.com markster at lists.digium.com
Tue Jan 18 14:40:42 CST 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv4096/apps

Modified Files:
	app_queue.c 
Log Message:
Fix agentcallback login (bug #3293)


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- app_queue.c	18 Jan 2005 16:40:56 -0000	1.115
+++ app_queue.c	18 Jan 2005 20:43:53 -0000	1.116
@@ -338,8 +338,10 @@
 	struct statechange *sc = data;
 	struct member *cur;
 	char *loc;
+	char *technology;
 
-	loc = strchr(sc->dev, '/');
+	technology = ast_strdupa(sc->dev);
+	loc = strchr(technology, '/');
 	if (loc) {
 		*loc = '\0';
 		loc++;
@@ -349,7 +351,7 @@
 		return NULL;
 	}
 	if (option_debug)
-		ast_log(LOG_DEBUG, "Device '%s/%s' changed to state '%d'\n", sc->dev, loc, sc->state);
+		ast_log(LOG_DEBUG, "Device '%s/%s' changed to state '%d'\n", technology, loc, sc->state);
 	ast_mutex_lock(&qlock);
 	for (q = queues; q; q = q->next) {
 		ast_mutex_lock(&q->lock);
@@ -376,7 +378,7 @@
 	}
 	ast_mutex_unlock(&qlock);
 	if (option_debug)
-		ast_log(LOG_DEBUG, "Device '%s/%s' changed to state '%d'\n", sc->dev, loc, sc->state);
+		ast_log(LOG_DEBUG, "Device '%s/%s' changed to state '%d'\n", technology, loc, sc->state);
 	free(sc);
 	return NULL;
 }




More information about the svn-commits mailing list