mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 13:58:38 +00:00
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
This commit is contained in:
@@ -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));
|
ast_copy_string(cur->membername, interface, sizeof(cur->membername));
|
||||||
if (!strchr(cur->interface, '/'))
|
if (!strchr(cur->interface, '/'))
|
||||||
ast_log(LOG_WARNING, "No location at interface '%s'\n", 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;
|
return cur;
|
||||||
|
|||||||
Reference in New Issue
Block a user