[Freeswitch-users] JavaScript control Transfer

Anthony Minessale anthony.minessale at gmail.com
Thu Jun 10 09:24:31 PDT 2010


session.execute("transfer", "<application>:'<app args>' inline");

On Wed, Jun 9, 2010 at 7:14 PM, David Swardstrom <dswardstrom at 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-tp5160890p5161043.html
> Sent from the freeswitch-users mailing list archive at Nabble.com.
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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 at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100610/3127ff14/attachment-0001.html 


More information about the FreeSWITCH-users mailing list