We need to call an AGI with a Survey.
In “Queue Plus Option” we are setting up “Caller Post Hangup Destination” with a Misc Destination that call our AGI.
It is OK.
But we need to capture the extension (agent) that answer the call.
WE are using MEMBERINTERFACE to do that, but we can´t get the extension.
In queues_additional.conf our queue have setinferfacevar=yes
$qMembro = $agi->get_variable(“MEMBERINTERFACE”);
$channel = explode(’/’,"$qMembro[data]");
$usuario = explode(’@’,$channel);
$ramal = $usuario;
$agi->verbose("---- Extension: $ramal",1);
To test, we copy the dial plan with our queue to extensions_custom.conf
We modified this dial plan to call our same AGI, and we can get the extension using MEMBERINTERFACE.
It seems that with the “Caller Post Hangup Destination” option, the variables are cleaned before calling our AGI.
How can I solve it?
Thanks in advance.