automatically accepting calls in empathy
<p>I need to customize Empathy 2.28 such that when an incoming call arrives, it's automatically accepted without a window.  The code section lies as:</p>

<pre><code>static void
event_channel_process_voip_func (EventPriv *event)
{
  GtkWidget *dialog;
  GtkWidget *button;
  GtkWidget *image;

  if (event-&gt;approval-&gt;dialog != NULL)
    {
      gtk_window_present (GTK_WINDOW (event-&gt;approval-&gt;dialog));
      return;
    }

  dialog = gtk_message_dialog_new (NULL, 0,
      GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, _("Incoming call"));
  gtk_message_dialog_format_secondary_text (
    GTK_MESSAGE_DIALOG (dialog),
      _("%s is calling you, do you want to answer?"),
      empathy_contact_get_name (event-&gt;approval-&gt;contact));

  gtk_dialog_set_default_response (GTK_DIALOG (dialog),
      GTK_RESPONSE_OK);

  button = gtk_dialog_add_button (GTK_DIALOG (dialog),
      _("_Reject"), GTK_RESPONSE_REJECT);
  image = gtk_image_new_from_icon_name (GTK_STOCK_CANCEL,
    GTK_ICON_SIZE_BUTTON);
  gtk_button_set_image (GTK_BUTTON (button), image);

  button = gtk_dialog_add_button (GTK_DIALOG (dialog),
      _("_Answer"), GTK_RESPONSE_ACCEPT);

  image = gtk_image_new_from_icon_name (GTK_STOCK_APPLY, GTK_ICON_SIZE_BUTTON);
  gtk_button_set_image (GTK_BUTTON (button), image);

  g_signal_connect (dialog, "response",
      G_CALLBACK (event_manager_call_window_confirmation_dialog_response_cb),
      event-&gt;approval);

  gtk_widget_show (dialog);

  event-&gt;approval-&gt;dialog = dialog;
}
</code></pre>

<p>Can anyone help me solve this?</p>
