linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] include identity of the callee in the notifica


From: AW
Subject: Re: [Linphone-developers] include identity of the callee in the notification
Date: Sun, 3 Sep 2017 06:22:23 +0000 (UTC)

I mean a patch like this
(somehow I cant compile it myself, because: it doesnt find FindBelcard.cmake):

> diff -u gtk/main.c,orig gtk/main.c
--- gtk/main.c,orig 2017-09-03 06:10:16.479504293 +0000
+++ gtk/main.c 2017-09-03 06:17:28.898352426 +0000
@@ -1263,6 +1263,7 @@
 #ifdef HAVE_NOTIFY
  char *body=NULL;
  char *remote=call!=NULL ? linphone_call_get_remote_address_as_string(call) : NULL;
+ char *lclid=call ? linphone_address_as_string(call->dir==LinphoneCallIncoming?call->log->to:call->log->from) : NULL;
  NotifyNotification *n;
  switch(linphone_call_get_state(call)){
  case LinphoneCallError:
@@ -1272,7 +1273,7 @@
  make_notification(_("Call ended"),body=g_markup_printf_escaped("<b>%s</b>",remote));
  break;
  case LinphoneCallIncomingReceived:
- n=build_notification(_("Incoming call"),body=g_markup_printf_escaped("<b>%s</b>",remote));
+ n=build_notification(_("Incoming call"),body=g_markup_printf_escaped("from <b>%s</b> to %s",remote,lclid));
  if (n){
  if (notify_actions_supported()) {
  notify_notification_add_action (n,"answer", _("Answer"),
@@ -1291,6 +1292,7 @@
  }
  if (body) g_free(body);
  if (remote) g_free(remote);
+ if (lclid) g_free(lclid);
 #else
  if (linphone_call_get_state(call) == LinphoneCallIncomingReceived)
  show_main_window = TRUE;

-arne



AW <address@hidden> schrieb am 15:16 Samstag, 2.September 2017:


Hi!

Just in case somebody would like to know,
which of his phone numbers (identities) is called
(e. g. if he/she wants to use his/her high voice if number 555-1234 is called, and his normal voice if number 555-5678 is called),
what would he/she do,
so that linphone displays that information?

Thx.

Bye
Arne



reply via email to

[Prev in Thread] Current Thread [Next in Thread]