Description: Display voice icon if contact has call equipment.
Author: Gabriele Giacone <1o5g4r8o@gmail.com>
Forwarded: https://code.google.com/p/skype4pidgin/issues/detail?id=207

--- a/libskype.c
+++ b/libskype.c
@@ -424,6 +424,8 @@ plugin_init(PurplePlugin *plugin)
 
 	option = purple_account_option_bool_new(_("Show SkypeOut contacts as 'Online'"), "skypeout_online", TRUE);
 	prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+	option = purple_account_option_bool_new(_("Show Voice/Video emblems if contact is Voice/Video capable"), "voicevideoemblems", TRUE);
+	prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
 	option = purple_account_option_bool_new(_("Make Skype online/offline when going online/offline"), "skype_sync", TRUE);
 	prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
 	//option = purple_account_option_bool_new(_("Automatically check for updates"), "check_for_updates", TRUE);
@@ -1190,6 +1192,7 @@ skype_set_buddies(PurpleAccount *acct)
 					purple_prpl_got_user_status(acct, buddy->name, full_friends_list[i+5], NULL);
 				}
 				skype_send_message_nowait("GET USER %s IS_VIDEO_CAPABLE", buddy->name);
+				skype_send_message_nowait("GET USER %s HASCALLEQUIPMENT", buddy->name);
 			}
 			g_strfreev(full_friends_list);
 			skype_put_buddies_in_groups();
@@ -1554,9 +1557,11 @@ skype_list_emblem(PurpleBuddy *buddy)
 				return "birthday";
 			}
 		}
-		if (sbuddy->is_video_capable)
-		{
-			return "video";	
+		if (purple_account_get_bool(buddy->account, "voicevideoemblems", TRUE)) {
+			if (sbuddy->is_video_capable)
+				return "video";
+			if (sbuddy->has_call_equipment)
+				return "voice";
 		}
 	}
 	return NULL;
@@ -1589,6 +1594,7 @@ skype_update_buddy_status(PurpleBuddy *b
 	skype_send_message_nowait("GET USER %s MOOD_TEXT", buddy->name);
 	skype_send_message_nowait("GET USER %s RICH_MOOD_TEXT", buddy->name);
 	skype_send_message_nowait("GET USER %s IS_VIDEO_CAPABLE", buddy->name);
+	skype_send_message_nowait("GET USER %s HASCALLEQUIPMENT", buddy->name);
 	
 	/* if this function was called from another thread, don't loop over it */
 	return FALSE;
@@ -2123,6 +2129,7 @@ skype_buddy_new(PurpleBuddy *buddy)
 	{
 		skype_send_message_nowait("GET USER %s ONLINESTATUS", buddy->name);
 		skype_send_message_nowait("GET USER %s IS_VIDEO_CAPABLE", buddy->name);
+		skype_send_message_nowait("GET USER %s HASCALLEQUIPMENT", buddy->name);
 	}
 	return newbuddy;
 }
