graphQL - how get extension State


(Alexandre17000) #1

Hi all,
I want use GraphQl to get extension State. For example, I want to know if extension 666 is in communication and with who?
So I make this,
{
allExtensions {
extension {

  device {
    description
    device_id

  }
  user {
    id
  }
}

}
}
But I don’t find how to get the extension State (inuse, idle,ringing…). And after, how to get the number called?

Can you help me?

Thanks,


(Matt Brooks) #2

@alexandre17000 The GraphQL API is pretty limited in what it can do today. I don’t believe it can tell you call state today. That being said, I would recommend pulling the call state directly from Asterisk. Check out this article on stack overflow: https://stackoverflow.com/questions/2315744/how-can-i-know-the-status-of-a-call-asterisk-and-php


(system) closed #3

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.