<div>Its a security feature to prevent injection.</div><div>I think I can get it to work, try latest GIT</div><div><br></div><div>otherwise</div>create an new object in your lua script and run distributor in the script.<div>
then build the string.</div><div><br></div><div>or</div><div><br></div><div>use session:execute(&quot;set&quot;, &quot;var=val&quot;)</div><div><br><br><div class="gmail_quote">On Thu, Jul 15, 2010 at 7:20 AM, Ahmed Ajmal <span dir="ltr">&lt;<a href="mailto:ahmed.ajmal@breezecom.ae">ahmed.ajmal@breezecom.ae</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><span>Hi</span></p>

<p class="MsoNormal"><span> </span></p>

<p class="MsoNormal"><span>I have a
strange problem creating a bridge string from LUA. The LUA script returns a
bridge string which looks like this:</span></p>

<p class="MsoNormal"><span> </span></p>

<p class="MsoNormal"><span>sofia/gateway/${distributor(my_dist)}/1773XXXXXXX</span></p>

<p class="MsoNormal"><span> </span></p>

<p class="MsoNormal"><span>I pass this
bridge string to the bridge app in the dialplan:</span></p>

<p class="MsoNormal"><span>&lt;action
application=&quot;bridge&quot; data=&quot;${bridge_string}&quot;/&gt;</span></p>

<p class="MsoNormal"><span> </span></p>

<p class="MsoNormal"><span>On executing
the dialplan I get the following error:</span></p>

<p class="MsoNormal"><em><span style="font-style:normal">Invalid data</span></em><span>
(${bridge_string} <em><span style="font-style:normal">contains a variable</span></em></span></p>

<p class="MsoNormal"><em><span style="font-style:normal"> </span></em></p>

<p class="MsoNormal"><em><span style="font-style:normal">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.</span></em></p>

<p class="MsoNormal"><em><span style="font-style:normal"> </span></em></p>

<p class="MsoNormal"><em><span style="font-style:normal">Thanks</span></em></p>

<p class="MsoNormal"><em><span style="font-style:normal">Ahmed</span></em><span></span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

</div>

</div>


<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>