Hi, I'm talking about a JavaScript which is run through the FreeSwitch embedded engine. I want to know if there is a command or method (perhaps of the Session object) from which I can send a customized event to the event engine. Thanks Cesar Cepeda.
-----Mensaje original----- De: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch- users-bounces@lists.freeswitch.org] En nombre de Chris Danielson Enviado el: Lunes, 23 de Julio de 2007 13:07 Para: freeswitch-users@lists.freeswitch.org Asunto: Re: [Freeswitch-users] Sending an event from Javascript
Just to clear up the question... Are we talking about a JavaScript script that is run through the FreeSwitch embedded engine or are we talking about a web page that calls the event_socket layer via JavaScript. If we are talking about the latter, then Jose, is moving you in the right direction. You can make an asynchronous call to the specified ip and port (listen-ip and listen-port).
Ideally, for Asynchronous JavaScript integration I would recommend using the Prototype (www.prototypejs.org) open source library.
Kind Regards, Chris
directly is imposible send this information, but you can compose a URL a manage the keywords and variable and send the info to other page (php, servlet, jsp or another) to manage the information. Java Script is only to simple app to manage a view for explorer.
I recomend that you use Ajax is most powerfull and integrate JavaScript with other app and the view is most estetical.
PD sorry by my english,
2007/7/20, Cesar Cepeda <cesar@auronix.com>:
Is it possible to send an event to the event_socket interface from a Javascript script? If so, how is it done?
Thanks
Cesar Cepeda.
_______________________________________________ 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
-- --- Eng. José R. Barrios R. Network & Data Manager TELKUS- COLOMBIA www.telkus-ip.com Tels +57 300 8059882 MSN: pepescool@gmail.com SKYPE: pepescool _______________________________________________ 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
_______________________________________________ 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