8 Nov
2010
8 Nov
'10
7:27 p.m.
Hello, I am using lua extensively for dynamic dialplan generatian. In some cases, a dialplan is run with execute_extension instead of transfer. How do I get the Caller-Hunt-Destination from within the lua script? It doesn't seem to be a session variable, and I can't pass arguments to the lua script when it is used as a dialplan. session:getVariable(caller-destination) returns the caller destination, which is usually different than the hunt-destination when execute_extension is used. Any suggestions? Can this be added as a session variable somehow?