I've seen several links suggesting it is possible to make a call from the command-line with skype. The instructions suggest something along the lines of:
skype --callto:+14445551234
However, this gets me an error message, "skype: unrecognized option '--callto:+14445551234".
Is this possible?
Use case scenario:
I want to call a particular number frequently.
- assuming skype client is already running and logged in.
- I create a shortcut on my desktop, which runs
skype --callto:+14445551234
or something similar. - Double-click the shortcut.
- skype window pops up, immediately calling this number
Can this be done?
I know there is a Skype API. Can this be done from a normal skype installation on Ubuntu, without installing any developer tools?
EDIT: I am considering this question to be still open, because I would like to know if this is possible from a default installation of skype without any additional functionality.
However, the answer below regarding "Skype4Py" does answer the desired outcome, albeit with an additional tool. I will mark this as the answer if another is not forthcoming in a few weeks.
Very simple:
Tested. It works. Not just with nicknames. Also with direct phone numbers:
( this means: OPs main mistake was a colon instead of a space... )
Yes, if you use Skype4Py.
I've created a simple callto.py script based on examples/callfriend.py from Skype4Py. It takes a phone number or a friend name from the skype roster as an argument. It's only working if skype is already launched.
Skype will ask you if you want to give API permission to Skype4Py.
Code follows:
You can write a bash script without using any API. Your usage is wrong. The correct way is:
You can view more options by typing the following command in the terminal
Some years ago I wrote a little Python script do do this sort of thing.
This was for the Linux version of Skype. So I cannot be sure it will still work.
The following seems to work with Skype for Linux 8.73.0.92 on Ubuntu 18.04.6:
which opens a number-calling prompt with the number typed in but doesn't make the actual call, a user has to press the call button themselves.
By the way
works too, so it seems that they left at least some of the version 4 APIs but I couldn't find any documentation for it online.