[asterisk-commits] mnicholson: branch 1.4 r277327 - /branches/1.4/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 16 13:30:35 CDT 2010


Author: mnicholson
Date: Fri Jul 16 13:30:22 2010
New Revision: 277327

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=277327
Log:
Interpret device state AST_DEVICE_UNKNOWN as extension state AST_EXTENSION_NOT_INUSE.

(closes issue #16035)
Reported by: francesco_r
Patches:
      pbx.c.patch uploaded by viniciusfontes (license 978)
Tested by: francesco_r, agx, lawbar

Modified:
    branches/1.4/main/pbx.c

Modified: branches/1.4/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/pbx.c?view=diff&rev=277327&r1=277326&r2=277327
==============================================================================
--- branches/1.4/main/pbx.c (original)
+++ branches/1.4/main/pbx.c Fri Jul 16 13:30:22 2010
@@ -1938,8 +1938,9 @@
 		return AST_EXTENSION_ONHOLD;
 	case AST_DEVICE_BUSY:
 		return AST_EXTENSION_BUSY;
+	case AST_DEVICE_UNKNOWN:
+		return AST_EXTENSION_NOT_INUSE;
 	case AST_DEVICE_UNAVAILABLE:
-	case AST_DEVICE_UNKNOWN:
 	case AST_DEVICE_INVALID:
 		return AST_EXTENSION_UNAVAILABLE;
 	case AST_DEVICE_RINGINUSE:




More information about the asterisk-commits mailing list