mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Add same magic to remove from queue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -929,6 +929,7 @@ static int rqm_exec(struct ast_channel *chan, void *data) | ||||
| 	struct member * node ; | ||||
| 	struct member * look ; | ||||
| 	char info[512]; | ||||
| 	char tmpchan[256]=""; | ||||
| 	char *interface=NULL; | ||||
| 	struct ast_call_queue *q; | ||||
| 	int found=0 ; | ||||
| @@ -949,8 +950,13 @@ static int rqm_exec(struct ast_channel *chan, void *data) | ||||
| 			*interface = '\0'; | ||||
| 			interface++; | ||||
| 		} | ||||
| 		else | ||||
| 			interface = chan->name ; | ||||
| 		else { | ||||
| 			strncpy(tmpchan, chan->name, sizeof(tmpchan) - 1); | ||||
| 			interface = strrchr(tmpchan, '-'); | ||||
| 			if (interface) | ||||
| 				*interface = '\0'; | ||||
| 			interface = tmpchan; | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if( ( q = queues) != NULL ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user