#!/bin/sh
# Hand a tel: link to tüit X. /telefon/tel only fills the dial field,
# it never dials by itself. Plain firefox reuses the running instance.
[ -n "$1" ] || exit 0
enc=$(printf '%s' "$1" | python3 -I -c 'import sys,urllib.parse;print(urllib.parse.quote(sys.stdin.read(),safe=""))')
exec firefox "https://tueit-x.int.tueit.de/telefon/tel?nummer=$enc"
