Skip to content

Commit

Permalink
Fixed recognition of chan-sccp release version 4.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Diotallevi committed Jan 17, 2021
1 parent 4eb8169 commit 64e4c3d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Sccp_manager.inc/aminterface/oldinterface.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ function getChanSCCPVersion()
} elseif ($version_parts[1] == "2") {
$result["vCode"] = 420;
} elseif ($version_parts[1] >= "3") {
$result["vCode"] = 430;
if ($version_parts[2] == "3"){
$result["vCode"] = 433;
} else {
$result["vCode"] = 430;
}
}
}

Expand Down
6 changes: 5 additions & 1 deletion Sccp_manager.inc/srvinterface.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,11 @@ function getChanSCCPVersion() {
$result["vCode"] = 420;
break;
case 3. . .5:
$result["vCode"] = 430;
if($version_parts[2] == "3"){
$result["vCode"] = 433;
} else {
$result["vCode"] = 430;
}
break;
default:
$result["vCode"] = 400;
Expand Down

0 comments on commit 64e4c3d

Please sign in to comment.