Patch ensures that d->activeline and l->activesub are moved over to the
new device and line so that on callend the appropriate subs can be found
to complete hangup before device resets.
(closes issue ASTERISK-16610)
Reported by: wedhorn
Tested by: snuffy, myself
Patches:
skinny-reloadactive01.diff uploaded by wedhorn (license 5019)
........
Merged revisions 380942 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@380943
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
}
ast_mutex_lock(<emp->lock);
l->instance = ltemp->instance;
+ if (l == temp->activeline) {
+ d->activeline = l;
+ }
if (!AST_LIST_EMPTY(<emp->sub)) {
ast_mutex_lock(&l->lock);
l->sub = ltemp->sub;
+ l->activesub = ltemp->activesub;
AST_LIST_TRAVERSE(&l->sub, sub, list) {
sub->line = l;
}