[Freeswitch-users] JavaScript control Transfer

Anthony Minessale anthony.minessale at gmail.com
Wed Jun 9 16:20:29 PDT 2010


when you say execute an application do you mean literally a dp application
like set or voicemail ?
transfer takes an extension as an arg not an application and when you do run
that transfer command you must exit your script so the transfer can take
place.

session.execute("transfer", "<SOME EXTENSION NUMBER");
//exit the script asap


if you want to just execute an app do

session.execute("<some app", "<some args>");
// control returns here


or if you want to run an extension like an app and return to your script do

session.execute("execute_extension", "<SOME EXTENSION NUMBER>");
// control returns here






On Wed, Jun 9, 2010 at 6:05 PM, David Swardstrom <dswardstrom at remotelink.com
> wrote:

> I have been working on a small Javascript application to determine
> the specific Javascript application to execute based on the DNIS.
> The goal is:
> * Provide an entry in a dialplan public XML file to invoke the application.
> * Use a database lookup (ODBC) using DNIS.
> * Fail if the DNIS is not found (hangup the session)
> * If the DNIS is found:
> ** use another entry in the database to determine
> ** the working application and any static parameters.
> * Invoke/Transfer to/Activate the other application.
>
> It is fairly simple to do all but the first step.
> I have been having problems trying to get the last step to work.
>
> What I would like is something like this:
> session.execute("transfer", transfer_string);
> Where transfer_string is the string from the Database.
> Or where transfer_string is the string from the DB
> plus some fixed options.
>
> I would prefer not to have to add entries into
> the dialplan/pubic/00_xx.xml file but will if I have to.
> I did notice an option called "inline" which potentially avoid this.
>
> I suspect part of my problem is not quite understanding the transfer
> syntax.
>
> If I ever get this running properly, I will provide a Wiki example of a
> simplified version of this (ie, without some of work specific code).
>
> Regards,
> David Swardstrom
> (profile)http://wiki.freeswitch.org/wiki/User:Dswardstrom
>
> _______________________________________________
> 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/20100609/372cba27/attachment-0001.html 


More information about the FreeSWITCH-users mailing list