Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvinus committed May 26, 2016
1 parent 31bc7e6 commit 8c56b70
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Click to Shell
==============

Redirects phone links like `callto:`, `tel:`, or `sms:` to a user-provided shell script.

How to install on a Mac
=======================

Download the latest release of this project and move the `clicktoshell.app` file in `/Applications` (or somewhere else).

You should also install [RCDefaultApp](http://www.rubicode.com/Software/RCDefaultApp/) to make it easy to register the right protocol handlers.

In RCDefaultApp, go to the "URL" tab, select `callto` for instance, then select `clicktoshell.app` as a default app.

Then, create a file `clicktoshell-callto.sh` in your user directory (for instance, `/Users/Bob/clicktoshell-callto.sh`).

This shell script will get executed each time the user clicks a `callto:` link, with the phone (formatted in international format) as first argument.

An example of script using the [Keyyo VoIP API](https://api.keyyo.com/developers/):

```
curl https://ssl.keyyo.com/makecall.html?ACCOUNT=+33111111111&CALLEE=$1&CALLEE_NAME=Keyyo
```

0 comments on commit 8c56b70

Please sign in to comment.