mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-17 02:02:22 +00:00
app_queue: Fix conversion of complex extension states into device states
Queue members using dialplan hints as a state interface must handle INUSE+RINGING hint as RINGINUSE devstate, and INUSE + ONHOLD as INUSE. ASTERISK-28369 Change-Id: I127e06943d4b4f1afc518f9e396de77449992b9f
This commit is contained in:
committed by
George Joseph
parent
725eca3bfa
commit
4d8fc97e4a
@@ -2605,9 +2605,15 @@ static int extensionstate2devicestate(int state)
|
||||
case AST_EXTENSION_RINGING:
|
||||
state = AST_DEVICE_RINGING;
|
||||
break;
|
||||
case AST_EXTENSION_INUSE | AST_EXTENSION_RINGING:
|
||||
state = AST_DEVICE_RINGINUSE;
|
||||
break;
|
||||
case AST_EXTENSION_ONHOLD:
|
||||
state = AST_DEVICE_ONHOLD;
|
||||
break;
|
||||
case AST_EXTENSION_INUSE | AST_EXTENSION_ONHOLD:
|
||||
state = AST_DEVICE_INUSE;
|
||||
break;
|
||||
case AST_EXTENSION_UNAVAILABLE:
|
||||
state = AST_DEVICE_UNAVAILABLE;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user