Unverified Commit 542817c5 authored by Yorick's avatar Yorick Committed by GitHub
Browse files

asterisk: version updates (#429640)

parents 460c723c 055527e4
Loading
Loading
Loading
Loading
+16 −16
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ let
      postInstall = ''
        # Install sample configuration files for this version of Asterisk
        make samples
        ${lib.optionalString (lib.versionAtLeast version "17.0.0") "make install-headers"}
        make install-headers
      '';

      meta = with lib; {
@@ -163,19 +163,20 @@ let
      };
    };

  pjproject_2_14_1 =
    fetchurl {
  pjproject_2_14_1 = fetchurl {
    url = "https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/2.14.1/pjproject-2.14.1.tar.bz2";
    hash = "sha256-MtsK8bOc0fT/H/pUydqK/ahMIVg8yiRDt3TSM1uhUFQ=";
    }
    // {
      pjsip_patches = [ ];
  };

  mp3-202 = fetchsvn {
  pjproject_2_15_1 = fetchurl {
    url = "https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/2.15.1/pjproject-2.15.1.tar.bz2";
    hash = "sha256-WLuDzsTUMfSNAG5FXYIWaEUPjPa2yV8JDe9HBi+jpgw=";
  };

  mp3-204 = fetchsvn {
    url = "http://svn.digium.com/svn/thirdparty/mp3/trunk";
    rev = "202";
    sha256 = "1s9idx2miwk178sa731ig9r4fzx4gy1q8xazfqyd7q4lfd70s1cy";
    rev = "204";
    hash = "sha256-Viec0LwFPfR7ewy+2hc/LIUR1LiDZfYos3RUbc+tyNk=";
  };

  asterisk-opus = fetchFromGitHub {
@@ -183,7 +184,7 @@ let
    repo = "asterisk-opus";
    # No releases, points to master as of 2022-04-06
    rev = "a959f072d3f364be983dd27e6e250b038aaef747";
    sha256 = "sha256-CASlTvTahOg9D5jccF/IN10LP/U8rRy9BFCSaHGQfCw=";
    hash = "sha256-CASlTvTahOg9D5jccF/IN10LP/U8rRy9BFCSaHGQfCw=";
  };

  # auto-generated by update.py
@@ -191,14 +192,13 @@ let
    _:
    { version, sha256 }:
    let
      pjsip = pjproject_2_14_1;
      pjsip = if lib.versionAtLeast version "20" then pjproject_2_15_1 else pjproject_2_14_1;
    in
    common {
      inherit version sha256;
      inherit (pjsip) pjsip_patches;
      externals = {
        "externals_cache/${pjsip.name}" = pjsip;
        "addons/mp3" = mp3-202;
        "addons/mp3" = mp3-204;
      };
    }
  ) (lib.importJSON ./versions.json);
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ from pathlib import Path
URL = "https://downloads.asterisk.org/pub/telephony/asterisk/"

page = requests.get(URL)
changelog = re.compile("^ChangeLog-\d+\.\d+\.\d+\.md$")
changelog = re.compile(r"^ChangeLog-\d+\.\d+\.\d+\.md$")
changelogs = [a.get_text() for a in BeautifulSoup(page.text, 'html.parser').find_all('a') if changelog.match(a.get_text())]
major_versions = {}
for changelog in changelogs:
+8 −8
Original line number Diff line number Diff line
{
  "asterisk_18": {
    "sha256": "5df5d1c3885428b8bf03e78d7b8c3079d4512679137ef1d47e865dc2058aa825",
    "version": "18.26.1"
    "sha256": "745689c84d63ae94dfa0b3d4bdde3c6907b72472018532f757d9c0d169705964",
    "version": "18.26.2"
  },
  "asterisk_20": {
    "sha256": "5ad25c136c7772f0ad10ae02d59f19b32c0cf64027278e3de6a6314ee24d5ff9",
    "version": "20.11.1"
    "sha256": "7c45cf254c7442748fa14ba4e31ae8f09cd2ad958168577de091c0bf0b0a2d2e",
    "version": "20.15.0"
  },
  "asterisk_21": {
    "sha256": "8df00a37b448fdaf63ffe25be0df02112211c1617efcb00b21cdb58f1baed89d",
    "version": "21.6.1"
    "sha256": "16051efbcc6fb95c0408f0ecc9dcf2d78a9346323f5d1fcd9723faedcb0f3fd8",
    "version": "21.10.0"
  },
  "asterisk_22": {
    "sha256": "e697740d91c33bf02d506d4da04635da48bfb0b5bb79bf8863c1a9b8f791264f",
    "version": "22.1.1"
    "sha256": "944967288ec01587feeef42869a97baa37ab635bea7d539df16f70d3af48c613",
    "version": "22.5.0"
  }
}
+1 −0
Original line number Diff line number Diff line
@@ -10064,6 +10064,7 @@ with pkgs;
    asterisk-lts
    asterisk_18
    asterisk_20
    asterisk_22
    ;

  asterisk-ldap = lowPrio (asterisk.override { ldapSupport = true; });