From 227dd8d2bcbb86599b22483bc56972aab66d7890 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Sun, 18 Jul 2021 22:07:34 -0500 Subject: [PATCH] Intercept DIAL and CALL to tel: and rewrite to cheogram This is a proof of concept. It catches tel: from browser, but also taps on call button in contacts, etc, and rewrites to a Cheogram JID. It does not query the user's roster for gateway options, or ask the gateways to convert the URI, but simply assumes Cheogram format and jams it in. It also does not initiate a call, but simply uses the default XmppUri action which will be to either add to roster or open conversation. --- src/main/AndroidManifest.xml | 8 ++++++++ .../eu/siacs/conversations/ui/UriHandlerActivity.java | 2 ++ src/main/java/eu/siacs/conversations/utils/XmppUri.java | 2 ++ 3 files changed, 12 insertions(+) diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index c98aae0419d3e7576a455c3e193fecd18a65bb98..f5db03b69cf197635283ed22d35094ad43ade33c 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -144,6 +144,14 @@ + + + + + + + +