mirror of
https://github.com/sailfishos/ofono
synced 2025-11-24 11:29:46 +08:00
Compare commits
4 Commits
mer/1.23+g
...
mer/1.23+g
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e067fa827 | ||
|
|
2ee5e4c827 | ||
|
|
1366e426be | ||
|
|
586c9b9262 |
@@ -349,12 +349,12 @@ static int tone_queue(struct ofono_voicecall *vc, const char *tone_str,
|
||||
|
||||
/*
|
||||
* Tones can be 0-9, *, #, A-D according to 27.007 C.2.11,
|
||||
* and p for Pause.
|
||||
* and p for Pause (also , for Pause as per ITU-T V.250 6.3.1.2).
|
||||
*/
|
||||
for (i = 0; tone_str[i]; i++)
|
||||
if (!g_ascii_isdigit(tone_str[i]) && tone_str[i] != 'p' &&
|
||||
tone_str[i] != 'P' && tone_str[i] != '*' &&
|
||||
tone_str[i] != '.' && tone_str[i] != ',' &&
|
||||
tone_str[i] != ',' &&
|
||||
tone_str[i] != '#' && (tone_str[i] < 'A' ||
|
||||
tone_str[i] > 'D'))
|
||||
return -EINVAL;
|
||||
@@ -4389,7 +4389,7 @@ static void tone_request_cb(const struct ofono_error *error, void *data)
|
||||
goto done;
|
||||
}
|
||||
|
||||
len = strspn(entry->left, "pP.,");
|
||||
len = strspn(entry->left, "pP,");
|
||||
entry->left += len;
|
||||
|
||||
done:
|
||||
@@ -4423,7 +4423,7 @@ static gboolean tone_request_run(gpointer user_data)
|
||||
if (entry == NULL)
|
||||
return FALSE;
|
||||
|
||||
len = strcspn(entry->left, "pP.,");
|
||||
len = strcspn(entry->left, "pP,");
|
||||
|
||||
if (len) {
|
||||
if (len > 8) /* Arbitrary length limit per request */
|
||||
|
||||
@@ -2,7 +2,6 @@ Name: ofono
|
||||
Summary: Open Source Telephony
|
||||
Version: 1.23
|
||||
Release: 1
|
||||
Group: Communications/Connectivity Adaptation
|
||||
License: GPLv2
|
||||
URL: https://git.sailfishos.org/mer-core/ofono
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
@@ -38,13 +37,13 @@ BuildRequires: pkgconfig(mobile-broadband-provider-info)
|
||||
BuildRequires: libtool
|
||||
BuildRequires: automake
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: systemd
|
||||
|
||||
%description
|
||||
Telephony stack
|
||||
|
||||
%package devel
|
||||
Summary: Headers for oFono
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
@@ -52,7 +51,6 @@ Development headers and libraries for oFono
|
||||
|
||||
%package tests
|
||||
Summary: Test Scripts for oFono
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: dbus-python3
|
||||
Requires: python3-gobject
|
||||
@@ -64,7 +62,6 @@ Scripts for testing oFono and its functionality
|
||||
|
||||
%package configs-mer
|
||||
Summary: Package to provide default configs for ofono
|
||||
Group: Development/Tools
|
||||
Provides: ofono-configs
|
||||
|
||||
%description configs-mer
|
||||
@@ -72,7 +69,6 @@ This package provides default configs for ofono
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description doc
|
||||
@@ -98,9 +94,9 @@ autoreconf --force --install
|
||||
--disable-add-remove-context \
|
||||
--disable-isimodem \
|
||||
--disable-qmimodem \
|
||||
--with-systemdunitdir="/%{_lib}/systemd/system"
|
||||
--with-systemdunitdir=%{_unitdir}
|
||||
|
||||
make %{_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%check
|
||||
# run unit tests
|
||||
@@ -111,9 +107,9 @@ rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
mkdir -p %{buildroot}/%{_sysconfdir}/ofono/push_forwarder.d
|
||||
mkdir -p %{buildroot}/%{_lib}/systemd/system/network.target.wants
|
||||
mkdir -p %{buildroot}%{_unitdir}/network.target.wants
|
||||
mkdir -p %{buildroot}/var/lib/ofono
|
||||
ln -s ../ofono.service %{buildroot}/%{_lib}/systemd/system/network.target.wants/ofono.service
|
||||
ln -s ../ofono.service %{buildroot}%{_unitdir}/network.target.wants/ofono.service
|
||||
|
||||
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
|
||||
install -m0644 -t %{buildroot}%{_docdir}/%{name}-%{version} \
|
||||
@@ -139,8 +135,8 @@ systemctl daemon-reload ||:
|
||||
%license COPYING
|
||||
%config %{_sysconfdir}/dbus-1/system.d/*.conf
|
||||
%{_sbindir}/*
|
||||
/%{_lib}/systemd/system/network.target.wants/ofono.service
|
||||
/%{_lib}/systemd/system/ofono.service
|
||||
%{_unitdir}/network.target.wants/ofono.service
|
||||
%{_unitdir}/ofono.service
|
||||
%dir %{_sysconfdir}/ofono/
|
||||
%dir %{_sysconfdir}/ofono/push_forwarder.d
|
||||
# This file is part of phonesim and not needed with ofono.
|
||||
|
||||
Reference in New Issue
Block a user