Subject: | amiver() not working with asterisk > 1.8 |
Date: | Thu, 9 Jul 2020 11:47:57 +1000 |
To: | bug-Asterisk-AMI [...] rt.cpan.org |
From: | Alex 'AdUser' Z <ad_user [...] runbox.com> |
I discovered, that amiver() method working only for oldest known
asterisk versions. Tested on latest stable module version (0.2.8).
Here is collection of AMI greeetings from our site:
* Asterisk Call Manager/1.1 (Asterisk 1.8) <- works
* Asterisk Call Manager/2.8.0 (Asterisk 13) <- don't
* Asterisk Call Manager/5.0.1 (Asterisk 16) <- don't
Official docs also says, that AMI now using tree-component versions:
Show quoted text
> AMI version numbers are formatted as MAJOR.BREAKING.NON-BREAKING:
Show quoted text > MAJOR – changes when a new major version of Asterisk is released
> BREAKING – changes when an incompatible API modification is made
> NON-BREAKING – changes when backwards compatible updates are made
From:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+Manager+Interface+%28AMI%29+Changes
But module expects only two-component versions (MAJOR.MINOR):
if ($line =~ /^Asterisk\ Call\ Manager\/([0-9]\.[0-9])$/ox) {
$self->{AMIVER} = $1;
--
-- Alex