diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-16 18:30:22 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-16 18:30:22 +0000 |
commit | bcc7c2c4c8e38f7f765bc6a3f6ca58d40100210e (patch) | |
tree | 2694e7a9524d1787c93461fa4a9e36ed8991b6dd /main/pbx.c | |
parent | 937300bc93aadd1a941a2e84f6d08072cb6f6bf2 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@277327 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index e8c1d5ad0..1ad2d2e1d 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -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: |