diff options
author | Mark Michelson <mmichelson@digium.com> | 2009-02-04 22:16:19 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2009-02-04 22:16:19 +0000 |
commit | 172777bd028cd38d4b51d3a68dbd6884117930dc (patch) | |
tree | 92e688530645877082cd046fd7d24cbb2b12ddb3 /apps | |
parent | f931abc61a1bd4f7580f2f611deb876cbd879cf5 (diff) |
Fix some areas where the incorrect interface was passed to ast_device_state
I swear it feels like I already did this once...
(closes issue #14359)
Reported by: francesco_r
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@173507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index caa6613c1..30ea73f2c 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2453,7 +2453,7 @@ static int ring_entry(struct queue_ent *qe, struct callattempt *tmp, int *busies ast_verb(3, "Couldn't call %s\n", tmp->interface); do_hang(tmp); (*busies)++; - update_status(qe->parent, tmp->member, ast_device_state(tmp->member->interface)); + update_status(qe->parent, tmp->member, ast_device_state(tmp->member->state_interface)); return 0; } else if (qe->parent->eventwhencalled) { char vars[2048]; @@ -2479,7 +2479,7 @@ static int ring_entry(struct queue_ent *qe, struct callattempt *tmp, int *busies ast_verb(3, "Called %s\n", tmp->interface); } - update_status(qe->parent, tmp->member, ast_device_state(tmp->member->interface)); + update_status(qe->parent, tmp->member, ast_device_state(tmp->member->state_interface)); return 1; } @@ -5722,7 +5722,7 @@ static int reload_queues(int reload) while ((cur = ao2_iterator_next(&mem_iter))) { if (cur->dynamic) q->membercount++; - cur->status = ast_device_state(cur->interface); + cur->status = ast_device_state(cur->state_interface); ao2_ref(cur, -1); } ao2_unlock(q); |