* [PATCH 1/2] Gemalto: voicecall atom
@ 2018-10-17 17:10 Giacinto Cifelli
2018-10-17 17:10 ` [PATCH 2/2] plugins/gemalto: added voice support Giacinto Cifelli
2018-10-17 19:41 ` [PATCH 1/2] Gemalto: voicecall atom Jonas Bonn
0 siblings, 2 replies; 4+ messages in thread
From: Giacinto Cifelli @ 2018-10-17 17:10 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 2519 bytes --]
Added voicecall atom specific for Gemalto modems.
This atom uses the URC ^SLCC to monitor the call status, as well as
incoming calls.
Note the use in the atom of the variable GemaltoVtsQuotes: this is
needed to support future modules, as of today not yet available in the
plugin.
---
Makefile.am | 3 ++-
drivers/gemaltomodem/gemaltomodem.c | 3 +++
drivers/gemaltomodem/gemaltomodem.h | 5 +++++
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 6667524f..e8e4ed95 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -397,7 +397,8 @@ builtin_modules += gemaltomodem
builtin_sources += drivers/atmodem/atutil.h \
drivers/gemaltomodem/gemaltomodem.h \
drivers/gemaltomodem/gemaltomodem.c \
- drivers/gemaltomodem/location-reporting.c
+ drivers/gemaltomodem/location-reporting.c \
+ drivers/gemaltomodem/voicecall.c
builtin_modules += xmm7modem
builtin_sources += drivers/atmodem/atutil.h \
diff --git a/drivers/gemaltomodem/gemaltomodem.c b/drivers/gemaltomodem/gemaltomodem.c
index 91cf238a..4818ac66 100644
--- a/drivers/gemaltomodem/gemaltomodem.c
+++ b/drivers/gemaltomodem/gemaltomodem.c
@@ -3,6 +3,7 @@
* oFono - Open Source Telephony
*
* Copyright (C) 2017 Vincent Cesson. All rights reserved.
+ * Copyright (C) 2018 Gemalto M2M
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -35,12 +36,14 @@
static int gemaltomodem_init(void)
{
gemalto_location_reporting_init();
+ gemalto_voicecall_init();
return 0;
}
static void gemaltomodem_exit(void)
{
+ gemalto_voicecall_exit();
gemalto_location_reporting_exit();
}
diff --git a/drivers/gemaltomodem/gemaltomodem.h b/drivers/gemaltomodem/gemaltomodem.h
index 7ea1e8fb..b08ab438 100644
--- a/drivers/gemaltomodem/gemaltomodem.h
+++ b/drivers/gemaltomodem/gemaltomodem.h
@@ -3,6 +3,7 @@
* oFono - Open Source Telephony
*
* Copyright (C) 2017 Vincent Cesson. All rights reserved.
+ * Copyright (C) 2018 Gemalto M2M
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -23,3 +24,7 @@
extern void gemalto_location_reporting_init();
extern void gemalto_location_reporting_exit();
+
+extern void gemalto_voicecall_init();
+extern void gemalto_voicecall_exit();
+
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] plugins/gemalto: added voice support
2018-10-17 17:10 [PATCH 1/2] Gemalto: voicecall atom Giacinto Cifelli
@ 2018-10-17 17:10 ` Giacinto Cifelli
2018-10-17 19:41 ` [PATCH 1/2] Gemalto: voicecall atom Jonas Bonn
1 sibling, 0 replies; 4+ messages in thread
From: Giacinto Cifelli @ 2018-10-17 17:10 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1744 bytes --]
The plugin for Gemalto modems is enriched with all voice-related atoms,
as well as USSD.
All except the voicecall itself are from the atmodem, while the
voicecall is from gemaltomodem.
---
plugins/gemalto.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/plugins/gemalto.c b/plugins/gemalto.c
index 0fcf30d8..5d3c77a9 100644
--- a/plugins/gemalto.c
+++ b/plugins/gemalto.c
@@ -3,6 +3,7 @@
* oFono - Open Source Telephony
*
* Copyright (C) 2017 Vincent Cesson. All rights reserved.
+ * Copyright (C) 2018 Gemalto M2M
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -571,6 +572,10 @@ static void gemalto_pre_sim(struct ofono_modem *modem)
ofono_devinfo_create(modem, 0, "atmodem", data->app);
ofono_location_reporting_create(modem, 0, "gemaltomodem", data->app);
+
+ ofono_modem_set_integer(modem, "GemaltoVtsQuotes", 1);
+ ofono_voicecall_create(modem, 0, "gemaltomodem", data->app);
+
data->sim = ofono_sim_create(modem, OFONO_VENDOR_GEMALTO, "atmodem",
data->app);
@@ -597,6 +602,13 @@ static void gemalto_post_sim(struct ofono_modem *modem)
if (gprs && gc)
ofono_gprs_add_context(gprs, gc);
+ ofono_ussd_create(modem, 0, "atmodem", data->app);
+
+ ofono_call_forwarding_create(modem, 0, "atmodem", data->app);
+ ofono_call_settings_create(modem, 0, "atmodem", data->app);
+ ofono_call_meter_create(modem, 0, "atmodem", data->app);
+ ofono_call_barring_create(modem, 0, "atmodem", data->app);
+
if (!g_strcmp0(model, GEMALTO_MODEL_ALS3_PLS8x))
ofono_lte_create(modem, OFONO_VENDOR_CINTERION,
"atmodem", data->app);
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] Gemalto: voicecall atom
2018-10-17 17:10 [PATCH 1/2] Gemalto: voicecall atom Giacinto Cifelli
2018-10-17 17:10 ` [PATCH 2/2] plugins/gemalto: added voice support Giacinto Cifelli
@ 2018-10-17 19:41 ` Jonas Bonn
2018-10-17 20:24 ` Giacinto Cifelli
1 sibling, 1 reply; 4+ messages in thread
From: Jonas Bonn @ 2018-10-17 19:41 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 632 bytes --]
Hi,
On 17/10/18 19:10, Giacinto Cifelli wrote:
> Added voicecall atom specific for Gemalto modems.
> This atom uses the URC ^SLCC to monitor the call status, as well as
> incoming calls.
> Note the use in the atom of the variable GemaltoVtsQuotes: this is
> needed to support future modules, as of today not yet available in the
> plugin.
> ---
> Makefile.am | 3 ++-
> drivers/gemaltomodem/gemaltomodem.c | 3 +++
> drivers/gemaltomodem/gemaltomodem.h | 5 +++++
> 3 files changed, 10 insertions(+), 1 deletion(-)
What happened here? You seem to have lost voicecall.c...
/Jonas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] Gemalto: voicecall atom
2018-10-17 19:41 ` [PATCH 1/2] Gemalto: voicecall atom Jonas Bonn
@ 2018-10-17 20:24 ` Giacinto Cifelli
0 siblings, 0 replies; 4+ messages in thread
From: Giacinto Cifelli @ 2018-10-17 20:24 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 784 bytes --]
Hi,
On Wed, Oct 17, 2018 at 9:41 PM Jonas Bonn <jonas@norrbonn.se> wrote:
>
> Hi,
>
>
> On 17/10/18 19:10, Giacinto Cifelli wrote:
> > Added voicecall atom specific for Gemalto modems.
> > This atom uses the URC ^SLCC to monitor the call status, as well as
> > incoming calls.
> > Note the use in the atom of the variable GemaltoVtsQuotes: this is
> > needed to support future modules, as of today not yet available in the
> > plugin.
> > ---
> > Makefile.am | 3 ++-
> > drivers/gemaltomodem/gemaltomodem.c | 3 +++
> > drivers/gemaltomodem/gemaltomodem.h | 5 +++++
> > 3 files changed, 10 insertions(+), 1 deletion(-)
>
> What happened here? You seem to have lost voicecall.c...
>
thanks - I resubmit
> /Jonas
Giacinto
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-10-17 20:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-17 17:10 [PATCH 1/2] Gemalto: voicecall atom Giacinto Cifelli
2018-10-17 17:10 ` [PATCH 2/2] plugins/gemalto: added voice support Giacinto Cifelli
2018-10-17 19:41 ` [PATCH 1/2] Gemalto: voicecall atom Jonas Bonn
2018-10-17 20:24 ` Giacinto Cifelli
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.