session.execute(&quot;transfer&quot;, &quot;&lt;application&gt;:&#39;&lt;app args&gt;&#39; inline&quot;);<br><br><div class="gmail_quote">On Wed, Jun 9, 2010 at 7:14 PM, David Swardstrom <span dir="ltr">&lt;<a href="mailto:dswardstrom@remotelink.com">dswardstrom@remotelink.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
I really want to do the transfer and plan to exit() after the transfer takes<br>
place.<br>
What I have is a string like the following: &quot;conf-ivr.js 6&quot;.<br>
The conf-ivr.js is my version of the conf-ivr.js example.<br>
The value &quot;6&quot; indicates a sub-type of conference so that we can support<br>
different flavors.<br>
I guess I could use the following:<br>
session.execute(&quot;transfer&quot;, &quot;conf-ivr6&quot;);<br>
Then put the following into the xml:<br>
   &lt;extension name=&quot;JavaScript Transfer to Conference application&quot;&gt;<br>
      &lt;condition field=&quot;destination_number&quot; expression=&quot;^conf-ivr6$&quot;&gt;<br>
         &lt;action application=&quot;javascript&quot; data=&quot;conf-ivr.js 6&quot;/&gt;<br>
      &lt;/condition&gt;<br>
   &lt;/extension&gt;<br>
<br>
What I hoped for was a way to avoid putting specific stuff for each<br>
application into the XML.<br>
I just wanted to be able to provide a new JS application or a new flavor of<br>
a JS application<br>
without having to also modify the XML and get the XML reloaded into<br>
FreeSwitch.<br>
<br>
Is it possible to pass parameters via the transfer so the XML would look<br>
like this:<br>
   &lt;extension name=&quot;JavaScript Transfer to JS application&quot;&gt;<br>
      &lt;condition field=&quot;destination_number&quot; expression=&quot;^myjsapp$&quot;&gt;<br>
         &lt;action application=&quot;javascript&quot; data=&quot;$1&quot;/&gt;<br>
      &lt;/condition&gt;<br>
   &lt;/extension&gt;<br>
<br>
There was a hint about using something called &quot;inline&quot; which indicated that<br>
an XML dialplan<br>
would not be needed.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/JavaScript-control-Transfer-tp5160890p5161043.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/JavaScript-control-Transfer-tp5160890p5161043.html</a><br>

Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5"><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>
</div></div></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>