Skip to content

Commit

Permalink
Merge pull request PhantomVl#93 from andreadiotta/fix_chan-sccp_versi…
Browse files Browse the repository at this point in the history
…on_detect

Fixed recognition of chan-sccp release version 4.3.3
  • Loading branch information
PhantomVl authored Feb 5, 2021
2 parents 2c28342 + 64e4c3d commit 2f854e7
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 @@ -302,7 +302,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 @@ -272,7 +272,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 2f854e7

Please sign in to comment.