]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Interpret device state AST_DEVICE_UNKNOWN as extension state AST_EXTENSION_NOT_INUSE.
authorMatthew Nicholson <mnicholson@digium.com>
Fri, 16 Jul 2010 18:30:22 +0000 (18:30 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Fri, 16 Jul 2010 18:30:22 +0000 (18:30 +0000)
(closes issue #16035)
Reported by: francesco_r
Patches:
      pbx.c.patch uploaded by viniciusfontes (license 978)
Tested by: francesco_r, agx, lawbar

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

main/pbx.c

index e8c1d5ad0966eaf3e6911c5a1e7a617893b8d3ae..1ad2d2e1d7478135a87d5e3abc883197c447bb39 100644 (file)
@@ -1938,8 +1938,9 @@ enum ast_extension_states ast_devstate_to_extenstate(enum ast_device_state devst
                return AST_EXTENSION_ONHOLD;
        case AST_DEVICE_BUSY:
                return AST_EXTENSION_BUSY;
-       case AST_DEVICE_UNAVAILABLE:
        case AST_DEVICE_UNKNOWN:
+               return AST_EXTENSION_NOT_INUSE;
+       case AST_DEVICE_UNAVAILABLE:
        case AST_DEVICE_INVALID:
                return AST_EXTENSION_UNAVAILABLE;
        case AST_DEVICE_RINGINUSE: