Reputation: 1
im trying to figure out how to check for the state of the current call in Skype
class skpy.msg.SkypeCallMsg[source]¶ A message representing a change in state to a voice or video call inside the conversation.
state New state of the call.
TYPE State
users User objects embedded in the message.
TYPE SkypeUser list
userNames Names of the users, as seen by the initiator of the call.
TYPE str list
State = ('Started', 'Ended', 'Missed') Possible call states (either started and incoming, or ended).
State.Started New call has just begun.
State.Ended Call failed to connect, or all call participants have hung up.
State.Missed Missed the call as it ended.
TYPE SkypeEnum
something like Skype.CallMsg.State == "Started"
doesnt work and i have no idea how to reference it
Upvotes: 0
Views: 225
Reputation: 11
A state is an enum object with 3 values (Started, Missed, and Ended). To check if the call event has started, you use event.msg.State.Started
(returns bool: either True or False).
Hope this helps.
Upvotes: 1
Reputation: 9
I have the same issue, but i can listen incoming calls with SkypeEventLoop.onEvent()
and printing event.msg.content
, im used value of the event.msg.content
, when call incoming possible to print value of event.msg.content
, that value can be much long, but i took the first 6 symbols to recognize call event in another values.
Upvotes: 0