[Freeswitch-users] Perl ESL not responding !

Stanislav Sinyagin ssinyagin at gmail.com
Sat Mar 14 05:22:37 MSK 2015


Just in case, here's the installation sequence for ESL Perl library on
Debian
https://github.com/voxserv/freeswitch-perf-dialer/blob/master/README.md
On Mar 14, 2015 2:07 AM, "SamyGo" <govoiper at gmail.com> wrote:

> Hi all,
>
> I'm feeling stupid for asking this question related to ESL. It has worked
> for me always but I've a new installation where I've compiled perl ESL
> library and when I try to make test scripts run they don't do anything at
> all.
>
> The perl code accepts the ESL library, executes the ESLConnection()
> function but afterwards any command I send is not seen on the ESL socket !
>
> Here is one of the test scripts from freeswitch source:
>
> #!/usr/bin/perl
> use lib '/usr/src/freeswitch/libs/esl/perl';
> require ESL;
>
> my $command = shift;
> my $args = join(" ", @ARGV);
>
> my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");
> if (! $con) { die "Unable to establish connection to $host:$port\n"; }
> $con->events("plain","all");
> while ( $con->connected() ) {
>     my $e = $con->recvEventTimed(0);
>     print $e->serialize;
> }
>
>
> It just doesn't go in the while() loop. No $con established but no error
> as well !
>
> I tried "telnet" to the 8021 port and only then I see packets on port 8021.
>
> I know that there is something fishy with the perl ESL compilation but
> that didn't gave any error either and created the required ESL.so w/o
> complaining !
>
> Can anyone help me on figuring out what I've missed ?
>
> Best Regards,
> Sammy
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150314/dc129e4c/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list