[Top][All Lists]

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

Re: [Linphone-users] Linphone question: Triggered actions

From: Sjef Bosman
Subject: Re: [Linphone-users] Linphone question: Triggered actions
Date: Thu, 29 Jul 2021 23:58:53 +0200

I'll try tomorrow (not in 2 minutes of course).


On Thu, 29 Jul 2021 at 18:10, Dennis Filder <> wrote:
On Wed, Jul 28, 2021 at 04:50:06PM +0200, wrote:

> I am used to the Twinkle application on Linux. It gives me the possibility
> to start an application when a new call comes in. My use-case: I attach
> the caller-id to a URL that I open with Firefox, on the website
> so I get warned beforehand when yet another spammer is
> calling me. I think it would be a great feature to have in linphone as
> well, I assume for many users.
> My questions:
> - is it available in linphone? [No]
> - is it available as some addon-tool or so? [No]
> - can it be developed, and how much work is it?

The old Linphone 3 sent notifications via Dbus, but apparently that
code was scrapped.

Watching/querying call-history.db won't work because incoming calls
get committed to it only after the call has terminated.

What works somewhat is running Linphone like this and parsing its
output and execute programs based on that:

    stdbuf -o L linphone \
      | grep --line-buffered -e '"Add call:"' \
      | stdbuf -o L cut -d'"' -f6- \
      | sed --unbuffered 's@\(\\"\)\(.*\)\(\\"\).*@\2@' \
      | xargs -d '\n' -n1 printf '%s\n'

You can then call a shellscript from xargs that performs the lookup.
The regex for the sed command may need fine-tuning.


Linphone-users mailing list

reply via email to

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