diff --git a/build/MagnusBilling-current.tar.gz b/build/MagnusBilling-current.tar.gz index 0da4abd19..579512e10 100644 Binary files a/build/MagnusBilling-current.tar.gz and b/build/MagnusBilling-current.tar.gz differ diff --git a/resources/asterisk/DidAgi.php b/resources/asterisk/DidAgi.php index e7ecc13eb..a88d83ad6 100755 --- a/resources/asterisk/DidAgi.php +++ b/resources/asterisk/DidAgi.php @@ -65,7 +65,7 @@ public function checkIfIsDidCall(&$agi, &$MAGNUS, &$CalcAgi) $this->modelDid = $agi->query($sql)->fetch(PDO::FETCH_OBJ); if (isset($this->modelDid->id)) { $agi->verbose("Is a DID call", 5); - $sql = "SELECT * FROM pkg_did_destination WHERE activated = 1 AND id_did = '" . $this->modelDid->id . "' ORDER BY priority"; + $sql = "SELECT * FROM pkg_did_destination WHERE id_did = '" . $this->modelDid->id . "' ORDER BY priority"; $this->modelDestination = $agi->query($sql)->fetchAll(PDO::FETCH_ASSOC); if (isset($this->did_voip_model->record_call) && $this->did_voip_model->record_call == 1) {