mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 14:44:28 +00:00
Fixes a bug where the interface for a queue member gets reloaded as the state_interface, if a state_interface was set, on reload because the
state_interface isn't stored in the ast_db. (closes issue #13043) Reported by: jvandal Patches: app_queue.patch uploaded by jvandal (license 413) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@129684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3857,7 +3857,7 @@ static struct member *interface_exists(struct call_queue *q, const char *interfa
|
|||||||
|
|
||||||
/*! \brief Dump all members in a specific queue to the database
|
/*! \brief Dump all members in a specific queue to the database
|
||||||
*
|
*
|
||||||
* <pm_family>/<queuename> = <interface>;<penalty>;<paused>[|...]
|
* <pm_family>/<queuename> = <interface>;<penalty>;<paused>;<state_interface>[|...]
|
||||||
*/
|
*/
|
||||||
static void dump_queue_members(struct call_queue *pm_queue)
|
static void dump_queue_members(struct call_queue *pm_queue)
|
||||||
{
|
{
|
||||||
@@ -3879,8 +3879,8 @@ static void dump_queue_members(struct call_queue *pm_queue)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = snprintf(value + value_len, sizeof(value) - value_len, "%s%s;%d;%d;%s",
|
res = snprintf(value + value_len, sizeof(value) - value_len, "%s%s;%d;%d;%s;%s",
|
||||||
value_len ? "|" : "", cur_member->interface, cur_member->penalty, cur_member->paused, cur_member->membername);
|
value_len ? "|" : "", cur_member->interface, cur_member->penalty, cur_member->paused, cur_member->membername, cur_member->state_interface);
|
||||||
|
|
||||||
ao2_ref(cur_member, -1);
|
ao2_ref(cur_member, -1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user