FreePBX Paid Support


Not Logged in - No Account?

Don't have an account? Registering an account with us allows you to post to the forums, easily track new posts, subscribe to threads, pm (private message) other forum members, and receive periodic news letters (you can opt out if you desire). Once you are logged in this message will no longer appear. If you don't have an account, you can create one by registering here. Lost your password, request a new password. We respect your privacy which means we collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for full details.


Asterisk Manager API question

ellisgl's picture

I'm trying to track calls that are being put on hold and I've figure out the hold/off hold text:
HOLD:
Event: ExtensionStatus
Privilege: call,all
Exten: 1000
Context: ext-local
Status: 16

Picked back up:
Event: ExtensionStatus
Privilege: call,all
Exten: 1000
Context: ext-local
Status: 1

Now the problem is that there is no unique id showing up to tell me which call has been put on hold.

Anyone one now how to get that information?


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Bump....

ellisgl's picture

Bump....


On Hold

GWalmsley's picture

Hi,

You could enumerate through the current active calls and see which are associated with that extension?

Graham


Well they are stored in a DB

ellisgl's picture

Well they are stored in a DB and I could figure out what calls are associated to the extension, but I how do I figure out which one are on hold and then I could figure out which one isn't? Would I have to do an API call asking the status?