]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Update persistent state on all exit conditions.
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 7 Aug 2008 16:50:47 +0000 (16:50 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 7 Aug 2008 16:50:47 +0000 (16:50 +0000)
(closes issue #12916)
 Reported by: sgenyuk
 Patches:
       app_queue.patch.txt uploaded by neutrino88 (license 297)
 Tested by: sgenyuk, aragon

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@136488 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 33283f22422f0526ab247d5af1596112ac9ac581..d303aa55f9f846824da680feefeaff25b4e56dc8 100644 (file)
@@ -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;
 }