linphone-users
[Top][All Lists]
Advanced

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

[Linphone-users] Linphone question: Triggered actions


From: Dennis Filder
Subject: [Linphone-users] Linphone question: Triggered actions
Date: Thu, 29 Jul 2021 18:10:20 +0200

On Wed, Jul 28, 2021 at 04:50:06PM +0200, sjef@bosman.fr 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
> numeroinconnu.fr 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.

Regards.



reply via email to

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