Telephone icon indicating copy to clipboard operation
Telephone copied to clipboard

Dial using Telephone via script / Terminal?

Open luckman212 opened this issue 4 years ago • 5 comments

Thanks for making & maintaining Telephone! I just subscribed to Pro.

I'm not using Telephone as my default tel:// handler (for reasons a bit too complicated to explain here) But, I still want to use it in some scripts, Alfred workflows etc.

Is there any sort of scripting interface, AppleScript, console (terminal) command, etc that I can use to control Telephone programmatically?

Thank you

luckman212 avatar Mar 21 '20 03:03 luckman212

Currently, only tel: and sip: URL schemes are supported. If you can’t use the former, maybe you could use the latter? You’ll need to specify your account’s domain as the host part of the SIP URI like this: sip:[email protected].

Also note that both sip: and tel: URIs don’t have slashes. The content comes right after the colon, for example: tel:+1234567789, sip:[email protected].

eofster avatar Mar 22 '20 20:03 eofster

Using different URI handlers for tel: and sip: does work, but it means that I can't ensure that scripts or Alfred workflows will "do the right thing" on other people's systems. Users would have to be sure they set the correct SIP domain, and assign the SIP URI handler (which isn't easy to do at all, I used SwiftDefaultApps but I'd guess many people might have difficulty with that.

A way to trigger a call explicity and directly using some sort of scripting language or commandline would be really useful.

luckman212 avatar Mar 22 '20 20:03 luckman212

I think routing incoming calls to VoiceXML instructions in general can be a cool idea. Route incoming calls first to VoiceXML URI, it can make it extremely programmable on inbound calls and leverage things like TTS to build SMB IVR menu right within Telephone.

The URI may also be called for instructions on outbound calls as well.

telecomsxchange avatar Apr 02 '20 21:04 telecomsxchange

That sounds neat but very complex. All I am asking for here is a simple way to trigger an outbound call using a script (osascript, bash, python -- anything would be great)

luckman212 avatar Apr 02 '20 22:04 luckman212

Maybe have a look at CalltoBouncer: https://github.com/64characters/CalltoBouncer

BenK885 avatar Dec 13 '21 18:12 BenK885