Help - Search - Members - Calendar
Full Version: Dial a number via python
Skype Community > English > Development, Betas and Skype Garage > Public API
the lion
Hello all, ive just started new on the python to skype interface. im having difficulty in understanding how to make python place a call with a number. i can get it to dial a friend allright but i want to dial a number like

+442464675345

if someone could guide me or give me an example piece of python code i will SOOO be greatful

thanks in advance!
TheUberOverlord
Using this format, with the leading plus sign should work.
the lion
well with the method i got it trys to find the number as a friend so...
TheUberOverlord
Are you using this example?

https://developer.skype.com/wiki/Skype4Py/e...les/s4p_call_py

If so, for F in skype.Friends: does not include SkypeOut friends, so you will need to change the logic.

Skype Hardwired Groups are listed here:

https://developer.skype.com/Docs/ApiDoc/GROUP_object
the lion
thx alot that helped! i got it working

another question - is it possible to add this number to a conference IF a conference is active?
TheUberOverlord
You are very welcome.

Here is an example in C#:

http://forum.skype.com/index.php?showtopic...p;#entry1466981
the lion
ok well ive been playing all afternoon here but to no avail

i keep getting
CODE
Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    skypecall()
  File "C:\Documents\skypetest", line 83, in skypecall
    else: skype.PlaceCall(CmdLine)
  File "C:\pythonIDE\lib\Skype4Py\skype.py", line 692, in PlaceCall
    reply = self._DoCommand('CALL %s' % ', '.join(Targets))
  File "C:\pythonIDE\lib\Skype4Py\skype.py", line 281, in _DoCommand
    raise SkypeError(int(errnum), errstr)
SkypeError: [Errno 99] CALL: A call exists in INPROGRESS state


whenever i use the

skype.ActiveCalls.Join(CmdLine)

command

fyi "CmdLine" contains the number string only
TheUberOverlord
You must make sure that any calls in progress are on hold, before doing a join, and you don't want to join the current call in progress, to itself.

If you are trying to call another caller, and then add that call, to the conference, you will need to place the current calls, on hold first.

Please look back at my C# example:

http://forum.skype.com/index.php?showtopic...p;#entry1466981
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.