From: Mark Michelson Date: Thu, 17 Jan 2008 16:26:41 +0000 (+0000) Subject: Get the device state of the state interface instead of the interface when creating... X-Git-Tag: 1.6.0-beta1~3^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c39ec55d8ec1911de2f7ff7c1994d5985f87ab8;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/trunk@98993 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 5e166f2651..ed13c3d5be 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;