diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-08-07 16:50:47 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-08-07 16:50:47 +0000 |
commit | 69534943eda1a8b97b31c3a3853e07c003fbb1e5 (patch) | |
tree | 1ff22969307172b65f211445e246aefc86292eff /apps/app_queue.c | |
parent | 9f91de65c8190e5d9c9eeb5dd068f88aad7a7370 (diff) |
Update persistent state on all exit conditions.
(closes issue #12916)
Reported by: sgenyuk
Patches:
app_queue.patch.txt uploaded by neutrino88 (license 297)
Tested by: sgenyuk, aragon
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@136488 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 33283f224..d303aa55f 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1890,6 +1890,7 @@ static int ring_entry(struct queue_ent *qe, struct callattempt *tmp, int *busies ast_verbose(VERBOSE_PREFIX_3 "Couldn't call %s\n", tmp->interface); do_hang(tmp); (*busies)++; + update_status(tmp->member->interface, ast_device_state(tmp->member->interface)); return 0; } else if (qe->parent->eventwhencalled) { char vars[2048]; @@ -1913,6 +1914,7 @@ static int ring_entry(struct queue_ent *qe, struct callattempt *tmp, int *busies ast_verbose(VERBOSE_PREFIX_3 "Called %s\n", tmp->interface); } + update_status(tmp->member->interface, ast_device_state(tmp->member->interface)); return 1; } |