VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
yudha2008 at gmail.com Guest
|
Posted: Wed Jun 17, 2009 1:45 am Post subject: [Freeswitch-users] 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
|
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Wed Jun 17, 2009 8:36 am Post subject: [Freeswitch-users] javascript session.execute |
|
|
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 (yudha2008@gmail.com)> wrote:
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
diego.viola at gmail.com Guest
|
Posted: Wed Jun 17, 2009 12:28 pm Post subject: [Freeswitch-users] javascript session.execute |
|
|
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 (anthony.minessale@gmail.com)> wrote:
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Wed Jun 17, 2009 1:27 pm Post subject: [Freeswitch-users] javascript session.execute |
|
|
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 (brian@freeswitch.org)> wrote:
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|