Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] javascript session.execute


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
yudha2008 at gmail.com
Guest





PostPosted: Wed Jun 17, 2009 1:45 am    Post subject: [Freeswitch-users] javascript session.execute Reply with quote

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





PostPosted: Wed Jun 17, 2009 8:36 am    Post subject: [Freeswitch-users] javascript session.execute Reply with quote

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:
Quote:
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 (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 ([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





PostPosted: Wed Jun 17, 2009 12:28 pm    Post subject: [Freeswitch-users] javascript session.execute Reply with quote

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:
Quote:
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:


Quote:

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 (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 ([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

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Jun 17, 2009 12:31 pm    Post subject: [Freeswitch-users] javascript session.execute Reply with quote

Thats one way to put it Wink

/b

On Jun 17, 2009, at 12:26 PM, Diego Viola wrote:

Quote:
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
Back to top
msc at freeswitch.org
Guest





PostPosted: Wed Jun 17, 2009 1:27 pm    Post subject: [Freeswitch-users] javascript session.execute Reply with quote

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:
Quote:
Thats one way to put it Wink

/b

On Jun 17, 2009, at 12:26 PM, Diego Viola wrote:

Quote:
Applications are the ones in mod_dptools and FSAPI are mod_commands
API right?




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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


Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services