mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-28 23:15:59 +00:00
Add support for Digium Phones.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8-digiumphones@357459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1548,13 +1548,19 @@ static int extensionstate2devicestate(int state)
|
||||
return state;
|
||||
}
|
||||
|
||||
static int extension_state_cb(char *context, char *exten, enum ast_extension_states state, void *data)
|
||||
static int extension_state_cb(char *context, char *exten, struct ast_state_cb_info *info, void *data)
|
||||
{
|
||||
struct ao2_iterator miter, qiter;
|
||||
struct member *m;
|
||||
struct call_queue *q;
|
||||
int state = info->exten_state;
|
||||
int found = 0, device_state = extensionstate2devicestate(state);
|
||||
|
||||
/* only interested in extension state updates involving device states */
|
||||
if (info->reason != AST_HINT_UPDATE_DEVICE) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
qiter = ao2_iterator_init(queues, 0);
|
||||
while ((q = ao2_t_iterator_next(&qiter, "Iterate through queues"))) {
|
||||
ao2_lock(q);
|
||||
|
||||
Reference in New Issue
Block a user