aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-04 22:16:19 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-04 22:16:19 +0000
commita67779f7218efaf60895ab9b4cebd04ec1d0a794 (patch)
tree92e688530645877082cd046fd7d24cbb2b12ddb3 /apps
parent84eb734defe4a0fb37d951bba9a844777b6a8506 (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: http://svn.digium.com/svn/asterisk/trunk@173507 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c6
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);