Using a freeswitch build from a package and want to access esl from a lua script. Is this possible? Or do I have to go the compiled route? FreeSWITCH Version 1.10.7-release-19-883d2cb662~64bit Cheers, Alex
On Friday 04 March 2022 at 12:37:35, Alex Lake wrote:
Using a freeswitch build from a package and want to access esl from a lua script. Is this possible?
Yes, depending on who packaged it for you. Which Linux distribution do you use?
FreeSWITCH Version 1.10.7-release-19-883d2cb662~64bit
In summary, you can use ESL from anything which can talk over a network socket https://freeswitch.org/confluence/display/FREESWITCH/Event+Socket+Library For Lua I believe https://freeswitch.org/confluence/display/FREESWITCH/Lua+API+Reference is what you need, although https://freeswitch.org/confluence/display/FREESWITCH/mod_lua may be useful as well. Antony. -- I don't know, maybe if we all waited then cosmic rays would write all our software for us. Of course it might take a while. - Ron Minnich, Los Alamos National Laboratory Please reply to the list; please *don't* CC me.
I don't know how the packages handle it, but I'm guessing they don't provide the necessary ESL libraries for each and every language. Even when you build from source you still must explicitly visit the directory containing the desired ESL language and run "make" from there, then it compiles and installs it for you. It's not intuitive, but it is documented well enough for perl (because that's what I used and fleshed out the wiki page for it). It should be the same for other languages. Here's the ESL installation wiki instructions https://freeswitch.org/confluence/display/FREESWITCH/Event+Socket+Library#Ev... It says there were packages for ancient Debian, so I would assume they have been kept up to date. John Boteler Bote Communications -----Original Message----- From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Antony Stone Sent: Friday, 4 March, 2022 07:43 To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Lua access to ESL On Friday 04 March 2022 at 12:37:35, Alex Lake wrote:
Using a freeswitch build from a package and want to access esl from a lua script. Is this possible?
Yes, depending on who packaged it for you. Which Linux distribution do you use?
FreeSWITCH Version 1.10.7-release-19-883d2cb662~64bit
In summary, you can use ESL from anything which can talk over a network socket https://freeswitch.org/confluence/display/FREESWITCH/Event+Socket+Library For Lua I believe https://freeswitch.org/confluence/display/FREESWITCH/Lua+API+Reference is what you need, although https://freeswitch.org/confluence/display/FREESWITCH/mod_lua may be useful as well. Antony. -- I don't know, maybe if we all waited then cosmic rays would write all our software for us. Of course it might take a while. - Ron Minnich, Los Alamos National Laboratory Please reply to the list; please *don't* CC me. _________________________________________________________________________ The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform. Join our online community to chat in real time https://signalwire.community Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com 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 https://freeswitch.com
participants (3)
-
Alex Lake
-
Antony Stone
-
Bote Man