summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorMatthew Nicholson <mnicholson@digium.com>2010-07-16 18:31:08 +0000
committerMatthew Nicholson <mnicholson@digium.com>2010-07-16 18:31:08 +0000
commit1c848835aa14d1bc025174e8d20cf041f9054525 (patch)
treedcbeef82a648453f7b8ce4baf3bc97658cd8514f /main/pbx.c
parentd72336e83f27c5c82bda38e8401716dd6b3a622c (diff)
Merged revisions 277327 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r277327 | mnicholson | 2010-07-16 13:30:22 -0500 (Fri, 16 Jul 2010) | 8 lines 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 ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@277331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 3de941740..4216b853a 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -4133,8 +4133,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: