We have a queue then a post call survey. So the call flow looks like:
Caller calls in > 7001 Queue > Agent > Agent hung up > Post call survey > hung up
Post call survey is creating using a custom destination. Within this I am using a AGI php script to update a database with the results.
This is working well, the issue I have I cannot find what variable to use to get the queue extension or name which the caller originally called. In this example 7001. Using dumpchan and can see that FROM_DID has the data I need, but can find out what the variable name for this is.
If it is relevant, I am using queuespro to handle the post call transfer.
Any help would be great.