javascript session.execute
*Hi, I have some questions can any one assist me and answer this query Question 1: Can we able to execute all the api command through JavaScript using session.execute. Question 2: How to kill the session using uuid_kill whether it is possible. **If yes means how we will use uuid_kill in session* * i have tried some thing like this : session.execute("uuid_kill", "session.uuid"); session.execute("uuid_kill session.uuid"); but there is no output for the session.execute. Whether it is possible to execute uuid_kill in javascript Thanks in advance Warm Regards, N.Baskar *
1) look in the wiki and try to understand the difference between application and FSAPI functions. 2) use apiExecute function from js to execute FSAPI functions such as uuid_kill On Wed, Jun 17, 2009 at 1:44 AM, Baskar <yudha2008@gmail.com> wrote:
*Hi,
I have some questions can any one assist me and answer this query
Question 1: Can we able to execute all the api command through JavaScript using session.execute.
Question 2: How to kill the session using uuid_kill whether it is possible. **If yes means how we will use uuid_kill in session* * i have tried some thing like this :
session.execute("uuid_kill", "session.uuid");
session.execute("uuid_kill session.uuid");
but there is no output for the session.execute.
Whether it is possible to execute uuid_kill in javascript
Thanks in advance
Warm Regards, N.Baskar
* _______________________________________________ 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/ 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> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Applications are the ones in mod_dptools and FSAPI are mod_commands API right? On Wed, Jun 17, 2009 at 9:27 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
1) look in the wiki and try to understand the difference between application and FSAPI functions. 2) use apiExecute function from js to execute FSAPI functions such as uuid_kill
On Wed, Jun 17, 2009 at 1:44 AM, Baskar <yudha2008@gmail.com> wrote:
*Hi,
I have some questions can any one assist me and answer this query
Question 1: Can we able to execute all the api command through JavaScript using session.execute.
Question 2: How to kill the session using uuid_kill whether it is possible. **If yes means how we will use uuid_kill in session* * i have tried some thing like this :
session.execute("uuid_kill", "session.uuid");
session.execute("uuid_kill session.uuid");
but there is no output for the session.execute.
Whether it is possible to execute uuid_kill in javascript
Thanks in advance
Warm Regards, N.Baskar
* _______________________________________________ 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/
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> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
Another way to view it: FSAPI or "APIs" are done at the CLI. (API at the CLI) dptools or dial plan applications (apps) are done inside the dialplan So if you have something like "api.execute" then you would use that to execute an FSAPI, just as if you'd typed it at the CLI. On the other hand if you have a session object that's like having a dialplan in your script, so you do dialplan type stuff with a session object. Hope that helps... -MC On Wed, Jun 17, 2009 at 12:29 PM, Brian West <brian@freeswitch.org> wrote:
Thats one way to put it ;)
/b
On Jun 17, 2009, at 12:26 PM, Diego Viola wrote:
Applications are the ones in mod_dptools and FSAPI are mod_commands API right?
_______________________________________________ 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
participants (5)
-
Anthony Minessale
-
Baskar
-
Brian West
-
Diego Viola
-
Michael Collins