[svn-commits] wedhorn: branch 11 r380942 - /branches/11/channels/chan_skinny.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Feb 6 02:42:11 CST 2013


Author: wedhorn
Date: Wed Feb  6 02:42:09 2013
New Revision: 380942

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380942
Log:
Fix reload skinny with active devices.

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)

Modified:
    branches/11/channels/chan_skinny.c

Modified: branches/11/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_skinny.c?view=diff&rev=380942&r1=380941&r2=380942
==============================================================================
--- branches/11/channels/chan_skinny.c (original)
+++ branches/11/channels/chan_skinny.c Wed Feb  6 02:42:09 2013
@@ -7695,9 +7695,13 @@
 					}
 					ast_mutex_lock(&ltemp->lock);
 					l->instance = ltemp->instance;
+					if (l == temp->activeline) {
+						d->activeline = l;
+					}
 					if (!AST_LIST_EMPTY(&ltemp->sub)) {
 						ast_mutex_lock(&l->lock);
 						l->sub = ltemp->sub;
+						l->activesub = ltemp->activesub;
 						AST_LIST_TRAVERSE(&l->sub, sub, list) {
 							sub->line = l;
 						}




More information about the svn-commits mailing list