Subject: | Bug in Leg.pm, found workaround |
Date: | Mon, 9 Sep 2019 09:45:01 +0300 |
To: | bug-Net-SIP [...] rt.cpan.org |
From: | cjayho <cj.fooser [...] gmail.com> |
Hello.
Found a bug in Net::Sip::Simple when using such script (see
attachment), got an error when calling ./call.pl <number> <filename>:
Expected 'PeerService' at /usr/share/perl5/Net/SIP/Util.pm line 40.
So I found myself a workaround to fix that error:
in /usr/share/perl5/Net/SIP/Leg.pm line 150 replace from this:
last if $sock = INETSOCK(%sockargs, LocalPort => $port);
to this
last if $sock = INETSOCK(%sockargs, LocalPort => $port, PeerService => $port);
Please include this fix in the future release.
Thank you.
Message body is not shown because sender requested not to inline it.