tis-tsip icon

tSIP

Silent install package for tSIP

0.3.10-2

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a new VirusTotal scan is performed.
If the package passes this last check, it is promoted to PROD and published on the store.

  • package: tis-tsip
  • name: tSIP
  • version: 0.3.10-2
  • categories: Utilities,System and network
  • maintainer: WAPT Team,Tranquil IT,Hubert TOUVET,Gaëtan SEGAT,Pierre COSSON
  • editor: Tomasz Ostrowski
  • licence: BSD license
  • target_os: windows
  • impacted_process: tSIP
  • architecture: all
  • signature_date:
  • size: 3.60 Mo
  • installed_size: 9.01 Mo
  • homepage : https://github.com/tomek-o

package           : tis-tsip
version           : 0.3.10-2
architecture      : all
section           : base
priority          : optional
name              : tSIP
categories        : Utilities,System and network
maintainer        : WAPT Team,Tranquil IT,Hubert TOUVET,Gaëtan SEGAT,Pierre COSSON
description       : Small, portable SIP softphone for Windows
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : 
target_os         : windows
min_wapt_version  : 2.1
sources           : https://github.com/tomek-o/tSIP
installed_size    : 9011200
impacted_process  : tSIP
description_fr    : Petit téléphone logiciel SIP portable pour Windows
description_pl    : Mały, przenośny telefon programowy SIP dla Windows
description_de    : Kleines, tragbares SIP-Softphone für Windows
description_es    : Pequeño softphone SIP portátil para Windows
description_pt    : Softphone SIP pequeno e portátil para Windows
description_it    : Softphone SIP piccolo e portatile per Windows
description_nl    : Kleine, draagbare SIP-softphone voor Windows
description_ru    : Маленький, портативный SIP-софтфон для Windows
audit_schedule    : 
editor            : Tomasz Ostrowski
keywords          : 
licence           : BSD license
homepage          : https://github.com/tomek-o
package_uuid      : b1e5bf13-38f2-4d90-8682-b3296d2ee29a
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : a361c9b4b98685af1111e479397274e7f81473d25985853ceb017fb7c9c2d025
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2025-09-16T19:26:10.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : b/CJBtsHbdKGneKAE0fUUCKCGcG7yWwXKhx9Mgyw0ugukiS8RrQvVLYpbFBEZt861W28wxc0kpXehigbAbLkE5n/6O2uA/QvRC4h2epxS8rZAHZvtYFrP+mi+qhcnVQ1sa+UR9rB5Uw9nGLIKhq3C62kg3pTbWRNgF2yUSDoOMtK7yaf+ZtlGcu32QmxgUZiubJu6MdrsOVFkDU2KEDT1vo4XQ2vncqPlLYIfE0DbKOVRepSDiyjVnkeHjiln2Ttfmyo7u8zR7GXGLkOZJqf+BNu4hM3oCtr0d5uYVvAiTbHM3T2qJF8LMSduzvXkVFbxZsTthjRDrzwjKrC8PyrJw==

# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "tSIP"
app_name = "tSIP"
app_dir = makepath(programfiles32, app_name)
app_path = makepath(app_dir, "tSIP.exe")


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.zip" % bin_contains)[0]

    # Getting installed software version
    if isfile(app_path):
        if installed_softwares(name=app_name):
            for installed_app in installed_softwares(name=app_name):
                installed_version = installed_app["version"]
                break
        else:
            installed_version = get_version_from_binary(app_path)
    else:
        installed_version = None

    # Installing software
    print("Installing: %s" % app_name)
    if installed_version is None or Version(installed_version) < Version(package_version) or force:
        killalltasks(control.get_impacted_process_list())
        if isdir(app_dir):
            remove_tree(app_dir)
        mkdirs(app_dir)
        print("Extracting: %s to: %s" % (bin_name, app_dir))
        unzip(bin_name, ".")
        temp_dir = bin_name.rsplit(".", 1)[0]
        for file_to_move in glob.glob("%s/*" % temp_dir):
            shutil.move(file_to_move, app_dir)
        remove_tree(temp_dir)

        # Creating shortcuts
        icon_path = app_path
        create_desktop_shortcut(app_name, app_path, icon=icon_path)
        create_programs_menu_shortcut(app_name, app_path, icon=icon_path)

        # Adding software to "list-registry"
        print("Registering: %s to Windows Registry" % app_name)
        register_windows_uninstall(control, win64app=iswin64())
        register_uninstall(app_name, win64app=iswin64(), icon=icon_path)
    else:
        print("%s is already installed. Skipping" % app_name)


def uninstall():
    # Uninstalling software
    killalltasks(control.get_impacted_process_list())
    if isdir(app_dir):
        remove_tree(app_dir)
    unregister_uninstall(app_name, win64app=iswin64())

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_name)


def audit():
    # Declaring local variables
    package_version = control.get_software_version()
    installed_version = None

    # Getting installed software version
    for installed_app in installed_softwares(name=app_name):
        installed_version = installed_app["version"]
        break

    # Auditing software
    print("Auditing: %s" % control.package)
    if installed_version is None:
        print("%s is not installed" % app_name)
        return "ERROR"
    elif Version(installed_version) != Version(package_version):
        print("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, package_version))
        return "WARNING"
    else:
        print("%s is installed in correct version (%s)" % (app_name, installed_version))
        return "OK"

# -*- coding: utf-8 -*-
from setuphelpers import *
import json


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://api.github.com/repos/tomek-o/tSIP/releases/latest"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        if "tSIP" in download["name"]:
            download_url = download["browser_download_url"]
            version = json_load["tag_name"].split("-")[-1].replace("v", "")
            latest_bin = download["name"]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return package_updated

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
5ad4663640fea017252eeb5a75dd1d5d7158741abc91b6bf747bac8bcb8f6ff5 : WAPT/changelog.txt
33f7ec1ae88724cd6560a54dce0bd1d0482cb735c648475f50109c0cdd9d53ae : WAPT/control
a361c9b4b98685af1111e479397274e7f81473d25985853ceb017fb7c9c2d025 : WAPT/icon.png
2b07dd1f5a8354c218d1b0eaaef2e2e56d862d97478aa11c291c6603773041e9 : luti.json
2cd516a1527aeca833964890745dc128f14a40654e6b468b4f4d27c3a9699292 : setup.py
8ff28e8ffa67e53c4e9f93f1a0f93656953bd32aff02f8498171bd3aba8cd180 : tSIP_0_3_10_bin.zip
4af7f65d1c033fc668e29fc0c16cdfb2e4f3707c0999a4bdcb20293c2595cb8d : update_package.py

0.2.9
===
split update package
update to git
improve code