session.execute("transfer", "<application>:'<app args>' inline"); On Wed, Jun 9, 2010 at 7:14 PM, David Swardstrom <dswardstrom@remotelink.com
wrote:
I really want to do the transfer and plan to exit() after the transfer takes place. What I have is a string like the following: "conf-ivr.js 6". The conf-ivr.js is my version of the conf-ivr.js example. The value "6" indicates a sub-type of conference so that we can support different flavors. I guess I could use the following: session.execute("transfer", "conf-ivr6"); Then put the following into the xml: <extension name="JavaScript Transfer to Conference application"> <condition field="destination_number" expression="^conf-ivr6$"> <action application="javascript" data="conf-ivr.js 6"/> </condition> </extension>
What I hoped for was a way to avoid putting specific stuff for each application into the XML. I just wanted to be able to provide a new JS application or a new flavor of a JS application without having to also modify the XML and get the XML reloaded into FreeSwitch.
Is it possible to pass parameters via the transfer so the XML would look like this: <extension name="JavaScript Transfer to JS application"> <condition field="destination_number" expression="^myjsapp$"> <action application="javascript" data="$1"/> </condition> </extension>
There was a hint about using something called "inline" which indicated that an XML dialplan would not be needed. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/JavaScript-control-Transfer-tp... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ 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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900