Call number via command line

100 views
Skip to first unread message

Marco Mayer

unread,
Nov 16, 2016, 4:05:00 AM11/16/16
to Telephone Discussions
Hi,

is there a way to call a number directly from the command line? I thought of something 

open /Applications/Telephone.app --args 08001234567

That would be really cool!

Thanks,

Marco

Alexey Kuznetsov

unread,
Nov 16, 2016, 4:14:51 AM11/16/16
to Telephone Discussions
Hello Marco,

Yes, there is. Telephone supports tel: and sip: URL schemes. When it is also the default handler for those schemes in your system and any other app opens such URL, Telephone is launched, if needed, and makes a call.

You can open URLs from Terminal using the open command:

open tel:+1234567890
open sip:us...@domain.com

Please note that tel: and sip: URL schemes do NOT have slashes opposite to http:. So, tel://123 is incorrect, tel:123 is correct

See FAQ (https://www.64characters.com/telephone/faq/) for HTML link examples using those schemes.

If your system has FaceTime as the default handler of the tel: scheme, you can change this in FaceTime preferences. Select Telephone in the ‘Default for Calls’ pop-up in the bottom.

Alexey
> --
> You received this message because you are subscribed to the Google Groups "Telephone Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to telephone-ap...@googlegroups.com.
> To post to this group, send email to teleph...@googlegroups.com.
> Visit this group at https://groups.google.com/group/telephone-app.
> For more options, visit https://groups.google.com/d/optout.

Marco Mayer

unread,
Nov 16, 2016, 4:42:03 AM11/16/16
to Telephone Discussions
Thanks Alexey,

That helps but it would be nice to have a possibility to do this via command line arguments opening the app. Two reasons: Need to make sure Telephone is launched, otherwise this won't work and it needs to be set as the default app for calls. Now I want to use this in a script that should call me if something goes wrong, and I'm a bit worried that it won't work if some OS X update changed the default app back or Telephone stops running (I prevent that by calling the app before just to make sure).

So I think it would be a nice feature!

Thank you,

Marco

Alexey Kuznetsov

unread,
Nov 16, 2016, 5:26:25 AM11/16/16
to Telephone Discussions
I see, I see. Then it probably should be implemented by supporting scripting. Telephone is not a one-shot command-line tool. It launches and keeps running, but the command-line arguments are supposed to be used during launch. What we need here is to keep communicating with the app while it’s running.

Alexey
Reply all
Reply to author
Forward
0 new messages