[asterisk-commits] wedhorn: branch 12 r405893 - /branches/12/channels/chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jan 18 17:58:08 CST 2014


Author: wedhorn
Date: Sat Jan 18 17:57:57 2014
New Revision: 405893

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=405893
Log:
Skinny: fix reversed device reset from CLI.

Existing code would do a full device restart when "skinny reset device"
was entered at the CLI and do a reset when "skinny reset device restart"
entered. 

Modified:
    branches/12/channels/chan_skinny.c

Modified: branches/12/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/channels/chan_skinny.c?view=diff&rev=405893&r1=405892&r2=405893
==============================================================================
--- branches/12/channels/chan_skinny.c (original)
+++ branches/12/channels/chan_skinny.c Sat Jan 18 17:57:57 2014
@@ -3964,15 +3964,15 @@
 
 	AST_LIST_LOCK(&devices);
 	AST_LIST_TRAVERSE(&devices, d, list) {
-		int fullrestart = 0;
+		int resetonly = 1;
 		if (!strcasecmp(a->argv[2], d->id) || !strcasecmp(a->argv[2], d->name) || !strcasecmp(a->argv[2], "all")) {
 			if (!(d->session))
 				continue;
 
 			if (a->argc == 4 && !strcasecmp(a->argv[3], "restart"))
-				fullrestart = 1;
-
-			transmit_reset(d, fullrestart);
+				resetonly = 0;
+
+			transmit_reset(d, resetonly);
 		}
 	}
 	AST_LIST_UNLOCK(&devices);




More information about the asterisk-commits mailing list