Its a security feature to prevent injection.
I think I can get it to work, try latest GIT

otherwise
create an new object in your lua script and run distributor in the script.
then build the string.

or

use session:execute("set", "var=val")


On Thu, Jul 15, 2010 at 7:20 AM, Ahmed Ajmal <ahmed.ajmal@breezecom.ae> wrote:

Hi

 

I have a strange problem creating a bridge string from LUA. The LUA script returns a bridge string which looks like this:

 

sofia/gateway/${distributor(my_dist)}/1773XXXXXXX

 

I pass this bridge string to the bridge app in the dialplan:

<action application="bridge" data="${bridge_string}"/>

 

On executing the dialplan I get the following error:

Invalid data (${bridge_string} contains a variable

 

I have tried executing the bridge app from within the lua script it works but I would prefer to have the dialplan process it. I am on Freeswitch 1.0.6.

 

Thanks

Ahmed

 

 

 

 


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900