steps
1. I am subscribed to all the following extensions : departments, individual extension ids
2. whenever we recieve a call and the caller types the extension id for individual agent , we recieve the agents presence in subscription properly..
3. when I select on department 's extension on call, the call is not forwarded to agent directly, and I am not receiving that notification in callback for that agent. Instead I receive notification object for department extension as :
{
"uuid": "*",
"event": "/restapi/v1.0/account/*/extension/*/presence?detailedTelephonyState=true",
"timestamp": "*",
"subscriptionId": "*",
"ownerId": "*",
"body": {
"extensionId": *,
"sequence": *,
"presenceStatus": "Offline"
}
}
4. even when the presence of agent extension is already enabled
So I am not able to figure out if this is right way to do things.
My aim is to recieve department call and get the presence of agent using subscription api to whom the call is forwarded to.