diff options
author | Eion Robb <eion@robbmob.com> | 2010-12-06 00:59:20 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2010-12-06 00:59:20 +0300 |
commit | 3c22116665656becd6d7f0c7ef8ce2826179b227 (patch) | |
tree | b9ecd8520ad3ca250d2b300cb8bd247dc8a421f5 | |
parent | 5f10db094746e8bd8c356770deb85eb25f3a5487 (diff) |
Send another api command to reject incoming calls, and detect more events to hide the incoming call window
-rw-r--r-- | skype_events.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/skype_events.c b/skype_events.c index 3ce2af6..2c5c93d 100644 --- a/skype_events.c +++ b/skype_events.c @@ -746,6 +746,8 @@ skype_handle_received_message(char *message) 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], "REFUSED") || + g_str_equal(string_parts[3], "MISSED") || g_str_equal(string_parts[3], "FAILED")) { skype_handle_call_got_ended(string_parts[1]); @@ -895,6 +897,7 @@ void skype_call_reject_cb(gchar *call) { skype_send_message_nowait("ALTER CALL %s END HANGUP", call); + skype_send_message_nowait("ALTER CALL %s HANGUP", call); skype_send_message_nowait("SET CALL %s SEEN", call); skype_send_message_nowait("CLEAR CALLHISTORY INCOMING"); g_free(call); |