Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Component/s: perlmod
-
Labels:None
-
Platform:Linux x86/gcc
-
CPU Info:
-
FreeSWITCH GIT Revision:HEAD
-
Reproduced with GIT HEAD?:Yes
Description
diff --git a/libs/esl/perl/ESL.pm b/libs/esl/perl/ESL.pm
index 69c012a..7d176c7 100644
--- a/libs/esl/perl/ESL.pm
+++ b/libs/esl/perl/ESL.pm
@@ -115,7 +115,10 @@ use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
%ITERATORS = ();
sub new {
my $pkg = shift;
- my $self = ESLc::new_ESLconnection(@_);
+ my ($host, $port, $secret) = @_;
+ $port = "$port"; # Explicitly stringify as SWIG does not like being
+ # passed an integer
+ my $self = ESLc::new_ESLconnection($host, $port, $secret);
bless $self, $pkg if defined($self);
}
index 69c012a..7d176c7 100644
--- a/libs/esl/perl/ESL.pm
+++ b/libs/esl/perl/ESL.pm
@@ -115,7 +115,10 @@ use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
%ITERATORS = ();
sub new {
my $pkg = shift;
- my $self = ESLc::new_ESLconnection(@_);
+ my ($host, $port, $secret) = @_;
+ $port = "$port"; # Explicitly stringify as SWIG does not like being
+ # passed an integer
+ my $self = ESLc::new_ESLconnection($host, $port, $secret);
bless $self, $pkg if defined($self);
}