Evangelos Ribeiro Tzaras
30c4e90499
ui-call-data: Store origin id and adapt to changes
2022-03-04 18:00:32 +01:00
Evangelos Ribeiro Tzaras
16b86c29b2
origin: Add id property and adapt to changes
...
The id property will be used to keep track of which origin was used for a call,
so that we can default to reusing the same origin when placing a call from the
history.
2022-03-04 18:00:32 +01:00
Evangelos Ribeiro Tzaras
04605efac7
plugins: Implement call-type property
2022-03-04 18:00:32 +01:00
Evangelos Ribeiro Tzaras
64ff76e62f
manager: Remove unused function declaration
...
If we have the origin, we can always go directly with calls_origin_dial().
2022-03-04 18:00:32 +01:00
Evangelos Ribeiro Tzaras
3ebc3ed88d
call: Prefer pragma once over explicit include guard
2022-03-04 18:00:32 +01:00
Evangelos Ribeiro Tzaras
a85f37e853
record-store: Sort include headers
2022-03-04 18:00:32 +01:00
Evangelos Ribeiro Tzaras
4d5d3fffdf
schema: Set G722 as the preferred audio codec
...
It has much better quality than PCMA.
2022-03-04 14:06:08 +01:00
Evangelos Ribeiro Tzaras
23ab31360a
desktop: Add X-GNOME-UsesNotification
...
This allows Calls to be listed in GNOME Control Center's 'Notification' panel
as mentioned in https://docs.gtk.org/gio/class.Notification.html
2022-03-02 11:42:29 +01:00
Evangelos Ribeiro Tzaras
b0f54e7d60
ci: Bump flatpak job timeout to 4 hours
...
The jobs are taking a bit longer currently.
2022-03-02 09:56:44 +01:00
Evangelos Ribeiro Tzaras
778f3567f2
flatpak: Update dependencies
2022-03-02 09:56:44 +01:00
Evangelos Ribeiro Tzaras
c2d2c33eae
tests: build: Avoid linking against sip module
...
Fixes the deprecation warning from meson:
DEPRECATION: target sip links against shared module sip, which is incorrect.
This will be an error in the future, so please use shared_library() for sip instead.
If shared_module() was used for sip because it has references to undefined symbols,
use shared_libary() with `override_options: ['b_lundef=false']` instead.
2022-03-02 09:16:12 +01:00
Evangelos Ribeiro Tzaras
30d6c71826
sip: media-manager: Remove unused code
...
It has outlived its usefulness since 7d113d4180
Also PCMA was never the "best" codec to begin with.
2022-03-01 18:24:04 +01:00
Evangelos Ribeiro Tzaras
f017261c59
tests: Split media tests into separate file
...
This gives us a better separation of concerns and it will make it a bit easier
to move the sip independent media pieces out of the plugin in the mid to long
term.
2022-03-01 18:24:04 +01:00
Evangelos Ribeiro Tzaras
ab64421880
tests: sip: Initialize and deinitialize GStreamer explicitly
2022-03-01 18:04:18 +01:00
Evangelos Ribeiro Tzaras
c3c099294c
tests: sip: Codestyle: Use int and char instead of gint and gchar
2022-03-01 18:04:18 +01:00
Evangelos Ribeiro Tzaras
92c8a69e17
sip: media-pipeline: Initialize GStreamer if it's not already initialized
2022-03-01 18:04:18 +01:00
Evangelos Ribeiro Tzaras
a78a2f3daf
sip: media-manager: Initialize GStreamer if it's not already initialized
2022-03-01 18:04:18 +01:00
Evangelos Ribeiro Tzaras
a99755424f
media-manager: Don't run deinitialize GStreamer in finalize()
...
This makes running tests harder as we cannot call gst_init() after gst_deinit()
has been called.
This is what the API reference has to say about it at
https://gstreamer.freedesktop.org/documentation/gstreamer/gst.html?gi-language=c#gst_deinit
It is normally not needed to call this function in a normal application as the
resources will automatically be freed when the program terminates. This function
is therefore mostly used by testsuites and other memory profiling tools.
2022-03-01 18:04:18 +01:00
Evangelos Ribeiro Tzaras
2d4c3f9b43
sip: call: Remove unnecessary G_OBJECT() cast
...
g_object_set() takes a gpointer as argument, so there is no need to cast the
argument using G_OBJECT()
2022-03-01 18:04:18 +01:00
Evangelos Ribeiro Tzaras
fee633e78b
sip: media-pipeline: Prefix overriden GObjectClass methods
...
Purely cosmetical change to be in line with our style guide.
2022-03-01 18:04:18 +01:00
Evangelos Ribeiro Tzaras
bf428f0fa6
sip: media-pipeline: Remove comment about preexisting linked pads
...
Since we're not reusing pipelines we don't have to check for any existing linked
pads.
2022-03-01 18:04:18 +01:00
Evangelos Ribeiro Tzaras
ce00698e71
sip: build: Use simple variant of gnome.mkenums
...
We were using standard template files anyway.
2022-03-01 18:04:18 +01:00
Evangelos Ribeiro Tzaras
e185cac3cb
sip: Debug print remote SDP and codec to be used
...
Fixes #415
2022-03-01 16:32:30 +01:00
Evangelos Ribeiro Tzaras
876f12df95
sip: media-manager: Don't include sofia-sip/nua.h in public header
...
It isn't needed in the implementation either. It was only useful because it
included system headers like sys/types.h and sys/socket.h which we should now
include directly.
This will make it easier to move the media manager into the core sources.
2022-03-01 16:31:44 +01:00
Evangelos Ribeiro Tzaras
19cf2ab92f
sip: media-pipeline: Add G_BEGIN_DECLS and G_END_DECLS to header
2022-03-01 16:31:44 +01:00
Hugo Carvalho
49ab460c50
Update Portuguese translation
2022-02-26 18:16:34 +00:00
Evangelos Ribeiro Tzaras
c0a23f5ddc
Document and release 42.rc.0
2022-02-25 14:43:30 +01:00
Evangelos Ribeiro Tzaras
5231ff95ad
Update libcall-ui
...
This update brings a fix to the build and updated translations.
2022-02-25 14:43:30 +01:00
Evangelos Ribeiro Tzaras
094d402d9b
notifier: Fix logic error
...
After introducing the STR_IS_NULL_OR_EMPTY macro the rewrite of the logic was
inverted.
Fixes d3677ad5d1
2022-02-25 14:30:35 +01:00
Evangelos Ribeiro Tzaras
d3677ad5d1
notifier: Fix expression testing if there is a contact
...
Previously cui_call_get_display_name() would return the ID of the caller if no
contact was found. As this has changed recently the test for got_contact broke.
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
bac8b81a43
tests: util: Test STR_IS_NULL_OR_EMPTY macro
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
53129e92af
util: Add STR_IS_NULL_OR_EMPTY macro
...
Shamelessly copied from
https://gitlab.gnome.org/World/Phosh/phosh/-/blob/main/src/util.h#L13
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
5b171bf2c5
record-row: Handle calls with NULL id gracefully
...
Shuffles some code around so that the property bindings are at the end.
This allows us to return early if there is a NULL contact (as is the case
for anonymous callers).
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
cd075d9269
record-row: Use primary info instead of name property
...
RECHECK if bestmatch can ever have a NULL id!
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
f0cd344072
tests: Add primitive contact tests
...
This makes sure that a NULL id will return a NULL contact and additionally
asserts that even a NULL contact will give us sensible primary/secondary display
information.
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
7f40314810
best-match: Add property for primary and secondary display information
...
This allows to get rid of any special casing that the users of the
calls_best_match_get_name() and calls_best_match_get_id() had to do previously.
We also allow passing in NULL for *_get_primary_info ()
and *_get_secondary_info () for the anonymous caller case.
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
3ac8cc1580
dummy-provider: Add new anonymous incoming call on SIGUSR2
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
79875cb64e
ui-call-data: Handle anonymous callers gracefully
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
9ffcbe2de8
contacts-provider: Don't throw a critical when trying to lookup NULL id
...
Anonymous callers will show up with a NULL id, so don't emit a critical here.
Fixes 006673a9e1
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
c36b6d713a
call: Allow setting NULL id
...
A NULL id will be reported for anonymous callers.
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
73ac050cef
call: Annotate properties and add introspection attributes on getters/setters
...
See https://gnome.pages.gitlab.gnome.org/gi-docgen/attributes.html
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
4187eec127
notifier: Codestyle
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
1e734dbbff
notifier: Chain up to parents constructed() before doing anything else
...
Not strictly needed here, because we don't depend on the parent being
constructed but this is how it should generally be done.
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
690ac121e9
best-match: Assert CALLS_IS_BEST_MATCH in private functions
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
51598700d7
best-match: Codestyle
2022-02-18 10:55:53 +01:00
Evangelos Ribeiro Tzaras
6e7984cb5d
application: Reuse existing functions in app.dial action
...
For that we must move open_sip_uri() and open_tel_uri() up to avoid having to
add forward declarations.
Fixes #402
2022-02-18 09:20:07 +00:00
Evangelos Ribeiro Tzaras
006673a9e1
contacts-provider: Guard against lookup with NULL id
...
If the id is NULL g_str_hash(NULL) will be called which tries dereferencing the
pointer.
Fixes #408
2022-02-15 08:02:18 +01:00
Evangelos Ribeiro Tzaras
8c0d135298
media-pipeline: Put deprecated GStreamer function behind version check macro
...
gst_element_get_request_pad() is marked as deprecated in GStreamer 1.20.0 in
favour of gst_element_request_pad_simple()
2022-02-12 23:49:30 +00:00
Evangelos Ribeiro Tzaras
8bf2f2cf1d
main-window: Bump copyright year in about window
2022-02-13 00:01:50 +01:00
Evangelos Ribeiro Tzaras
d6dab91840
meson: Post release bump
2022-02-13 00:01:50 +01:00