Package Skype4Py :: Module call :: Class Call
[frames] | no frames]

Class Call

source code

  object --+    
           |    
utils.Cached --+
               |
  object --+   |
           |   |
 DeviceMixin --+
               |
              Call

Represents a voice/video call.
Instance Methods
 
__repr__(self)
repr(x)
source code
 
Answer(self)
Answers the call.
source code
bool
CanTransfer(self, Target)
Queries if a call can be transferred to a contact or phone number.
source code
 
Finish(self)
Ends the call.
source code
 
Forward(self)
Forwards a call.
source code
 
Hold(self)
Puts the call on hold.
source code
Conference
Join(self, Id)
Joins with another call to form a conference.
source code
 
MarkAsSeen(self)
Marks the call as seen.
source code
 
RedirectToVoicemail(self)
Redirects a call to voicemail.
source code
 
Resume(self)
Resumes the held call.
source code
 
StartVideoReceive(self)
Starts video receive.
source code
 
StartVideoSend(self)
Starts video send.
source code
 
StopVideoReceive(self)
Stops video receive.
source code
 
StopVideoSend(self)
Stops video send.
source code
 
Transfer(self, *Targets)
Transfers a call to one or more contacts or phone numbers.
source code

Inherited from utils.Cached: __copy__

Inherited from DeviceMixin: CaptureMicDevice, InputDevice, OutputDevice

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods

Inherited from utils.Cached: __new__

Properties
int ConferenceId
Conference Id.
datetime.datetime Datetime
Date and time of the call.
str DTMF
Set this property to send DTMF codes.
int Duration
Duration of the call in seconds.
enums.cfr* FailureReason
Call failure reason.
str ForwardedBy
Skypename of the user who forwarded a call.
int Id
Call Id.
bool InputStatus
True if call voice input is enabled.
ParticipantCollection Participants
Participants of a conference call not hosted by the user.
unicode PartnerDisplayName
The DisplayName of the remote caller.
str PartnerHandle
The Skypename of the remote caller.
str PstnNumber
PSTN number of the call.
unicode PstnStatus
PSTN number status.
int Rate
Call rate.
unicode RateCurrency
Call rate currency.
int RatePrecision
Call rate precision.
unicode RateToText
Returns the call rate as a text with currency and properly formatted value.
float RateValue
Call rate value.
bool Seen
Queries/sets the seen status of the call.
enums.cls* Status
The call status.
unicode Subject
Call subject.
str TargetIdentity
Target number for incoming SkypeIn calls.
float Timestamp
Call date and time expressed as a timestamp.
bool TransferActive
Returns True if the call has been transferred.
str TransferredBy
Returns the Skypename of the user who transferred the call.
str TransferredTo
Returns the Skypename of the user or phone number the call has been transferred to.
enums.cls* TransferStatus
Returns the call transfer status.
enums.clt* Type
Call type.
enums.vss* VideoReceiveStatus
Call video receive status.
enums.vss* VideoSendStatus
Call video send status.
enums.cvs* VideoStatus
Call video status.
int VmAllowedDuration
Returns the permitted duration of a voicemail in seconds.
int VmDuration
Returns the duration of a voicemail.

Inherited from object: __class__

Method Details

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

CanTransfer(self, Target)

source code 
Queries if a call can be transferred to a contact or phone number.
Parameters:
  • Target (str) - Skypename or phone number the call is to be transferred to.
Returns: bool
True if call can be transferred, False otherwise.

Join(self, Id)

source code 
Joins with another call to form a conference.
Parameters:
  • Id (int) - Call Id of the other call to join to the conference.
Returns: Conference
Conference object.

Transfer(self, *Targets)

source code 
Transfers a call to one or more contacts or phone numbers.
Parameters:
  • Targets (str) - one or more phone numbers or Skypenames the call is being transferred to.

Note: You can transfer an incoming call to a group by specifying more than one target, first one of the group to answer will get the call.

See Also: CanTransfer


Property Details

ConferenceId

Conference Id.
Get Method:
_GetConferenceId(self)
Type:
int

Datetime

Date and time of the call.
Get Method:
_GetDatetime(self)
Type:
datetime.datetime

See Also: Timestamp

DTMF

Set this property to send DTMF codes. Permitted symbols are: [0..9, #, *].
Set Method:
_SetDTMF(self, Value)
Type:
str

Note: This command functions for active calls only.

Duration

Duration of the call in seconds.
Get Method:
_GetDuration(self)
Type:
int

FailureReason

Call failure reason. Read if Status == enums.clsFailed.
Get Method:
_GetFailureReason(self)
Type:
enums.cfr*

ForwardedBy

Skypename of the user who forwarded a call.
Get Method:
_GetForwardedBy(self)
Type:
str

Id

Call Id.
Get Method:
_GetId(self)
Type:
int

InputStatus

True if call voice input is enabled.
Get Method:
_GetInputStatus(self)
Type:
bool

Participants

Participants of a conference call not hosted by the user.
Get Method:
_GetParticipants(self)
Type:
ParticipantCollection

PartnerDisplayName

The DisplayName of the remote caller.
Get Method:
_GetPartnerDisplayName(self)
Type:
unicode

PartnerHandle

The Skypename of the remote caller.
Get Method:
_GetPartnerHandle(self)
Type:
str

PstnNumber

PSTN number of the call.
Get Method:
_GetPstnNumber(self)
Type:
str

PstnStatus

PSTN number status.
Get Method:
_GetPstnStatus(self)
Type:
unicode

Rate

Call rate. Expressed using RatePrecision. If you're just interested in the call rate expressed in current currency, use RateValue instead.
Get Method:
_GetRate(self)
Type:
int

RateCurrency

Call rate currency.
Get Method:
_GetRateCurrency(self)
Type:
unicode

RatePrecision

Call rate precision. Expressed as a number of times the call rate has to be divided by 10.
Get Method:
_GetRatePrecision(self)
Type:
int

RateToText

Returns the call rate as a text with currency and properly formatted value.
Get Method:
_GetRateToText(self)
Type:
unicode

RateValue

Call rate value. Expressed in current currency.
Get Method:
_GetRateValue(self)
Type:
float

Seen

Queries/sets the seen status of the call. True if the call was seen, False otherwise.
Get Method:
_GetSeen(self)
Set Method:
_SetSeen(self, Value)
Type:
bool

Note: You cannot alter the call seen status from seen to unseen.

Status

The call status.
Get Method:
_GetStatus(self)
Set Method:
_SetStatus(self, Value)
Type:
enums.cls*

Subject

Call subject.
Get Method:
_GetSubject(self)
Type:
unicode

TargetIdentity

Target number for incoming SkypeIn calls.
Get Method:
_GetTargetIdentity(self)
Type:
str

Timestamp

Call date and time expressed as a timestamp.
Get Method:
_GetTimestamp(self)
Type:
float

See Also: Datetime

TransferActive

Returns True if the call has been transferred.
Get Method:
_GetTransferActive(self)
Type:
bool

TransferredBy

Returns the Skypename of the user who transferred the call.
Get Method:
_GetTransferredBy(self)
Type:
str

TransferredTo

Returns the Skypename of the user or phone number the call has been transferred to.
Get Method:
_GetTransferredTo(self)
Type:
str

TransferStatus

Returns the call transfer status.
Get Method:
_GetTransferStatus(self)
Type:
enums.cls*

Type

Call type.
Get Method:
_GetType(self)
Type:
enums.clt*

VideoReceiveStatus

Call video receive status.
Get Method:
_GetVideoReceiveStatus(self)
Type:
enums.vss*

VideoSendStatus

Call video send status.
Get Method:
_GetVideoSendStatus(self)
Type:
enums.vss*

VideoStatus

Call video status.
Get Method:
_GetVideoStatus(self)
Type:
enums.cvs*

VmAllowedDuration

Returns the permitted duration of a voicemail in seconds.
Get Method:
_GetVmAllowedDuration(self)
Type:
int

VmDuration

Returns the duration of a voicemail.
Get Method:
_GetVmDuration(self)
Type:
int