ESL help on remote machines
Hi All, I know I'm a little late to the ESL party, but I have a use for it and I want to try it out. As the inbound diagram depicts, I would like a perl script on a remote machine to trigger a simple lua script on the FreeSWITCH machine that generates an outbound call. https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket ----------- Machine A - perl esl ----------- | | \/ ---------- Freeswitch - lua originate ---------- | | \/ ---------- phone call --------- The perl esl page states the module must be compiled. Does this mean machine A needs to have the entire FS source code to compile the module? https://freeswitch.org/confluence/display/FREESWITCH/Perl+ESL If the entire src isn't needed, what's it take to install the ESL module successfully on machine A? Thanks, sean
On Tue, Jan 15, 2019 at 1:54 AM Jungle Boogie <jungleboogie0@gmail.com> wrote:
The perl esl page states the module must be compiled. Does this mean machine A needs to have the entire FS source code to compile the module? https://freeswitch.org/confluence/display/FREESWITCH/Perl+ESL
If the entire src isn't needed, what's it take to install the ESL module successfully on machine A?
I suppose you installed FreeSWITCH from packages, correct? A search in installable packages gives you the following: # apt-cache search freeswitch | grep -i perl freeswitch-mod-perl - mod_perl for FreeSWITCH freeswitch-mod-perl-dbg - mod_perl for FreeSWITCH (debug) libesl-perl - Cross-Platform Scalable Multi-Protocol Soft Switch I would install libesl-perl : # apt-get install libesl-perl -giovanni
Thanks, sean
_________________________________________________________________________ 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
-- Sincerely, Giovanni Maruzzelli OpenTelecom.IT cell: +39 347 266 56 18
On Tue 15 Jan 2019 10:11 AM, Giovanni Maruzzelli wrote:
On Tue, Jan 15, 2019 at 1:54 AM Jungle Boogie <jungleboogie0@gmail.com> wrote:
The perl esl page states the module must be compiled. Does this mean machine A needs to have the entire FS source code to compile the module? https://freeswitch.org/confluence/display/FREESWITCH/Perl+ESL
If the entire src isn't needed, what's it take to install the ESL module successfully on machine A?
I suppose you installed FreeSWITCH from packages, correct? A search in installable packages gives you the following:
I installed from master via git. Additionally, machine A isn't running debian. I think I'll just use a different machine and install debian onto it and try again. Thanks for the pkg suggestions, though!
# apt-cache search freeswitch | grep -i perl freeswitch-mod-perl - mod_perl for FreeSWITCH freeswitch-mod-perl-dbg - mod_perl for FreeSWITCH (debug) libesl-perl - Cross-Platform Scalable Multi-Protocol Soft Switch
I would install libesl-perl :
# apt-get install libesl-perl
-giovanni
You can simply connect to the esl socket (port 8021) on fs from Box A. No need for that lua script. You simply need to configure the ESL socket to listen on (I.e.: 0.0.0.0) and iptables it to only allow your box A. As far as the library is concerned, in my experience, yes. The simplest is to have the source, so You need the whole fs source and compile. You can afterwards remove it. Hope that helps. If all you need is to originate (meaning you don’t care about events afterwards) there is another way of originating, and that’s via the httapi: https://freeswitch.org/confluence/plugins/servlet/mobile#content/view/396642... With httapi you can all any api in fs. Hope that helps On Tue, 15 Jan 2019 at 00:50, Jungle Boogie <jungleboogie0@gmail.com> wrote:
Hi All,
I know I'm a little late to the ESL party, but I have a use for it and I want to try it out.
As the inbound diagram depicts, I would like a perl script on a remote machine to trigger a simple lua script on the FreeSWITCH machine that generates an outbound call.
https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket
----------- Machine A - perl esl ----------- | | \/ ---------- Freeswitch - lua originate ---------- | | \/ ---------- phone call ---------
The perl esl page states the module must be compiled. Does this mean machine A needs to have the entire FS source code to compile the module? https://freeswitch.org/confluence/display/FREESWITCH/Perl+ESL
If the entire src isn't needed, what's it take to install the ESL module successfully on machine A?
Thanks, sean
_________________________________________________________________________ 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
On Tue 15 Jan 2019 12:44 PM, David Villasmil wrote:
You can simply connect to the esl socket (port 8021) on fs from Box A. No need for that lua script. You simply need to configure the ESL socket to listen on (I.e.: 0.0.0.0) and iptables it to only allow your box A. As far as the library is concerned, in my experience, yes. The simplest is to have the source, so You need the whole fs source and compile. You can afterwards remove it.
Box A wasn't Debian, but I tried anyway to install freeswitch onto it for the perl module. It didn't work out, but I'm not disappointed. The machine was a pine64 arm64 board running OpenBSD -current. I may file a jira on the build issues soon.
Hope that helps.
If all you need is to originate (meaning you don’t care about events afterwards) there is another way of originating, and that’s via the httapi: https://freeswitch.org/confluence/plugins/servlet/mobile#content/view/396642...
With httapi you can all any api in fs.
Ah, that's a nice tip. I'll take a little time to study this method.
Hope that helps
yes, thanks for your reply!
participants (3)
-
David Villasmil
-
Giovanni Maruzzelli
-
Jungle Boogie