projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e71e9b0
)
Add same magic to remove from queue
author
Mark Spencer
<markster@digium.com>
Mon, 18 Aug 2003 14:03:54 +0000
(14:03 +0000)
committer
Mark Spencer
<markster@digium.com>
Mon, 18 Aug 2003 14:03:54 +0000
(14:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1363
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_queue.c
patch
|
blob
|
history
diff --git
a/apps/app_queue.c
b/apps/app_queue.c
index
9206e1d
..
41e787b
100755
(executable)
--- a/
apps/app_queue.c
+++ b/
apps/app_queue.c
@@
-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 )