Hi FS Gurus, I'm new to freeswitch. Trying to use javascript in chatplan, but get error code c:716 Invalid chat application interface [javascript]! Same fucntion call in Lua is OK. So looking chatplan not support javascript? If yes, any plan to add javascript to chatplan? Chatplan mainly dealing with text manipulation, Lua is a bit weak at string handling. /rgds, Pip
its entirely possible but does not yet exist. I pushed a patch that may enable it, but i did not have a way to test it atm. So you will have to try it for me and see what happens. try git HEAD On Fri, Aug 10, 2012 at 5:35 AM, 王理 <itispip-qq@hotmail.com> wrote:
Hi FS Gurus,
I'm new to freeswitch. Trying to use javascript in chatplan, but get error code c:716 Invalid chat application interface [javascript]!
Same fucntion call in Lua is OK. So looking chatplan not support javascript?
If yes, any plan to add javascript to chatplan? Chatplan mainly dealing with text manipulation, Lua is a bit weak at string handling.
/rgds, Pip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Hi, new Javascript interface in chatplan works well; But strangely I cannot call js function "email", every attempt ended up "Reference error, email is not defined". Call to other js fucntions no problem. Is this function missed in src? Pip 2012/8/11 Anthony Minessale <anthony.minessale@gmail.com>
its entirely possible but does not yet exist. I pushed a patch that may enable it, but i did not have a way to test it atm. So you will have to try it for me and see what happens.
try git HEAD
On Fri, Aug 10, 2012 at 5:35 AM, 王理 <itispip-qq@hotmail.com> wrote:
Hi FS Gurus,
I'm new to freeswitch. Trying to use javascript in chatplan, but get error code c:716 Invalid chat application interface [javascript]!
Same fucntion call in Lua is OK. So looking chatplan not support javascript?
If yes, any plan to add javascript to chatplan? Chatplan mainly dealing with text manipulation, Lua is a bit weak at string handling.
/rgds, Pip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
that did not exist, I just added it but if you find another obstacle after that you're on your own. On Tue, Aug 14, 2012 at 5:34 AM, Pip Live <itispip-qq@hotmail.com> wrote:
Hi, new Javascript interface in chatplan works well; But strangely I cannot call js function "email", every attempt ended up "Reference error, email is not defined". Call to other js fucntions no problem.
Is this function missed in src?
Pip
2012/8/11 Anthony Minessale <anthony.minessale@gmail.com>
its entirely possible but does not yet exist. I pushed a patch that may enable it, but i did not have a way to test it atm. So you will have to try it for me and see what happens.
try git HEAD
On Fri, Aug 10, 2012 at 5:35 AM, 王理 <itispip-qq@hotmail.com> wrote:
Hi FS Gurus,
I'm new to freeswitch. Trying to use javascript in chatplan, but get error code c:716 Invalid chat application interface [javascript]!
Same fucntion call in Lua is OK. So looking chatplan not support javascript?
If yes, any plan to add javascript to chatplan? Chatplan mainly dealing with text manipulation, Lua is a bit weak at string handling.
/rgds, Pip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
participants (3)
-
Anthony Minessale
-
Pip Live
-
王理