Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2010-09-20 06:05:06 +0400
committerEion Robb <eion@robbmob.com>2010-09-20 06:05:06 +0400
commita7072b60af3992b752a13bb6dac276dd8bccc632 (patch)
tree01b16d23f45a8f639466bd06bbd2351d12f960cd
parent93b0f38c47cd4df0a09e5002db00129579d1d189 (diff)
Check whether 'ringing' call is an incoming call before displaying to the user (fixes bug where outgoing skypeout calls were popping up as incoming calls)
-rw-r--r--skype_events.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/skype_events.c b/skype_events.c
index c0db142..4135a30 100644
--- a/skype_events.c
+++ b/skype_events.c
@@ -738,7 +738,12 @@ skype_handle_received_message(char *message)
{
if (g_str_equal(string_parts[3], "RINGING"))
{
- skype_handle_incoming_call(gc, string_parts[1]);
+ temp = skype_send_message("GET CALL %s TYPE", string_parts[1]);
+ type = g_new0(gchar, 9);
+ sscanf(temp, "CALL %*s TYPE %[^_]", type);
+ g_free(temp);
+ if (g_str_equal(type, "INCOMING"))
+ skype_handle_incoming_call(gc, string_parts[1]);
} else if (g_str_equal(string_parts[3], "FINISHED") ||
g_str_equal(string_parts[3], "CANCELLED") ||
g_str_equal(string_parts[3], "FAILED"))