aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-17 16:26:41 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-17 16:26:41 +0000
commit6be93e1bdce1ca5ce080697aa60effea6856bc5c (patch)
tree238c19d42af729975997b4cb9654615b031752a4
parent8a4a72de86e68f6c979fdffa7e9890ba05b3b425 (diff)
Get the device state of the state interface instead of the interface when creating a new queue member.
Thanks to Atis Lezdins for bringing this up on the Asterisk-Dev mailing list. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98993 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 5e166f265..ed13c3d5b 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -842,7 +842,7 @@ static struct member *create_queue_member(const char *interface, const char *mem
ast_copy_string(cur->membername, interface, sizeof(cur->membername));
if (!strchr(cur->interface, '/'))
ast_log(LOG_WARNING, "No location at interface '%s'\n", interface);
- cur->status = ast_device_state(interface);
+ cur->status = ast_device_state(state_interface);
}
return cur;