[Freeswitch-users] Using Lua Dialplan hunting

Tim St. Pierre fs-list at communicatefreely.net
Mon Nov 8 11:27:12 PST 2010


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?



More information about the FreeSWITCH-users mailing list