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
my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon") || die $@; What distro are you using? On Fri, Mar 13, 2015 at 8:06 PM, SamyGo <govoiper@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
$esl->connected() or die("Cannot connect to FreeSWITCH"); That's a more correct way to do that :) On Mar 14, 2015 2:07 AM, "SamyGo" <govoiper@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Brian, Im using Ubuntu 12.04 Precise Server. Should I change this ? Thanks Stanislav I'll try that dialler code as well..but yeah did the same Perl ESL installation. I did install the perl development libraries which are required for the esl perlmod. So, again I compiled as per the mentioned github link and tried running everything over again , :( sadly no joy. On Fri, Mar 13, 2015 at 10:38 PM, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:
$esl->connected() or die("Cannot connect to FreeSWITCH");
That's a more correct way to do that :) On Mar 14, 2015 2:07 AM, "SamyGo" <govoiper@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@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@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
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.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 http://www.freeswitch.org
Ubuntu 12 is the devil..😱 On Friday, March 13, 2015, SamyGo <govoiper@gmail.com> wrote:
Brian, Im using Ubuntu 12.04 Precise Server. Should I change this ?
Thanks Stanislav I'll try that dialler code as well..but yeah did the same Perl ESL installation. I did install the perl development libraries which are required for the esl perlmod.
So, again I compiled as per the mentioned github link and tried running everything over again , :( sadly no joy.
On Fri, Mar 13, 2015 at 10:38 PM, Stanislav Sinyagin <ssinyagin@gmail.com <javascript:_e(%7B%7D,'cvml','ssinyagin@gmail.com');>> wrote:
$esl->connected() or die("Cannot connect to FreeSWITCH");
That's a more correct way to do that :) On Mar 14, 2015 2:07 AM, "SamyGo" <govoiper@gmail.com <javascript:_e(%7B%7D,'cvml','govoiper@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@freeswitch.org <javascript:_e(%7B%7D,'cvml','consulting@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@lists.freeswitch.org <javascript:_e(%7B%7D,'cvml','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 <javascript:_e(%7B%7D,'cvml','consulting@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@lists.freeswitch.org <javascript:_e(%7B%7D,'cvml','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 ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>* ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900
Yup, couple years back it was the game, Im just doing the dist-upgrade to see what happens. So, thinking that Im using old version I also tried the v1.2.stable branch and same results. On Fri, Mar 13, 2015 at 10:56 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
Ubuntu 12 is the devil.. [image: 😱]
On Friday, March 13, 2015, SamyGo <govoiper@gmail.com> wrote:
Brian, Im using Ubuntu 12.04 Precise Server. Should I change this ?
Thanks Stanislav I'll try that dialler code as well..but yeah did the same Perl ESL installation. I did install the perl development libraries which are required for the esl perlmod.
So, again I compiled as per the mentioned github link and tried running everything over again , :( sadly no joy.
On Fri, Mar 13, 2015 at 10:38 PM, Stanislav Sinyagin <ssinyagin@gmail.com
wrote:
$esl->connected() or die("Cannot connect to FreeSWITCH");
That's a more correct way to do that :) On Mar 14, 2015 2:07 AM, "SamyGo" <govoiper@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@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@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
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.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 http://www.freeswitch.org
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>*
ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I’m surprised that FS 1.2 would even compile with all those cobwebs J Bote From: SamyGo Sent: Friday, 13 March, 2015 23:00 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Perl ESL not responding ! Yup, couple years back it was the game, Im just doing the dist-upgrade to see what happens. So, thinking that Im using old version I also tried the v1.2.stable branch and same results. On Fri, Mar 13, 2015 at 10:56 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote: Ubuntu 12 is the devil.. ?? On Friday, March 13, 2015, SamyGo <govoiper@gmail.com> wrote: Brian, Im using Ubuntu 12.04 Precise Server. Should I change this ? Thanks Stanislav I'll try that dialler code as well..but yeah did the same Perl ESL installation. I did install the perl development libraries which are required for the esl perlmod. So, again I compiled as per the mentioned github link and tried running everything over again , :( sadly no joy. On Fri, Mar 13, 2015 at 10:38 PM, Stanislav Sinyagin <ssinyagin@gmail.com> wrote: $esl->connected() or die("Cannot connect to FreeSWITCH"); That's a more correct way to do that :) On Mar 14, 2015 2:07 AM, "SamyGo" <govoiper@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
To get warnings in perl you have to use warnings library or -w flag 14 марта 2015 г. 9:51 пользователь "Bote Man" <bote_radio@botecomm.com> написал:
I’m surprised that FS 1.2 would even compile with all those cobwebs J
Bote
*From:* SamyGo *Sent:* Friday, 13 March, 2015 23:00 *To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] Perl ESL not responding !
Yup, couple years back it was the game, Im just doing the dist-upgrade to see what happens. So, thinking that Im using old version I also tried the v1.2.stable branch and same results.
On Fri, Mar 13, 2015 at 10:56 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
Ubuntu 12 is the devil..
[image: 😱]
On Friday, March 13, 2015, SamyGo <govoiper@gmail.com> wrote:
Brian, Im using Ubuntu 12.04 Precise Server. Should I change this ?
Thanks Stanislav I'll try that dialler code as well..but yeah did the same Perl ESL installation. I did install the perl development libraries which are required for the esl perlmod.
So, again I compiled as per the mentioned github link and tried running everything over again , :( sadly no joy.
On Fri, Mar 13, 2015 at 10:38 PM, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:
$esl->connected() or die("Cannot connect to FreeSWITCH");
That's a more correct way to do that :)
On Mar 14, 2015 2:07 AM, "SamyGo" <govoiper@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (6)
-
Anthony Minessale
-
Bote Man
-
Brian West
-
Kamil Nigmatullin
-
SamyGo
-
Stanislav Sinyagin