I am trying to get user information from a given extension using the Asterisk API commands. something like:
getUserInfo('4000');
response could be:
name: Bob Smith
email: bob@smith.com
...
...
etc....
I have tried the action: ExtensionState but that doesn't do it for me. It only returns:
Response: Success
ActionID: 1
Message: Extension Status
Exten: idonno
Context: default
Hint:
Status: -1