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

Thanks!!

On Thu, 29 Jul 2021 at 18:10, Dennis Filder <[email protected]> wrote:

> On Wed, Jul 28, 2021 at 04:50:06PM +0200, [email protected] 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.
>
> _______________________________________________
> Linphone-users mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/linphone-users
>
_______________________________________________
Linphone-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/linphone-users

Reply via email to