[PATCH] isiusb: add message-waiting

2011-03-03 Thread Jukka Saunamaki
--- plugins/isiusb.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/plugins/isiusb.c b/plugins/isiusb.c index c036604..cf31756 100644 --- a/plugins/isiusb.c +++ b/plugins/isiusb.c @@ -54,6 +54,7 @@ #include ofono/radio-settings.h #include ofono/gprs.h #include

[PATCH] Gprs context settings provisioning plugin

2011-02-10 Thread Jukka Saunamaki
--- Makefile.am|3 + plugins/context-provisioning.c | 418 2 files changed, 421 insertions(+), 0 deletions(-) create mode 100644 plugins/context-provisioning.c diff --git a/Makefile.am b/Makefile.am index 42ad86f..18938b6 100644

[PATCH 0/3] gprs-provision: Add SPN to provision API

2011-02-08 Thread Jukka Saunamaki
Hello This patchset adds Service Provider Name (SPN) into GPRS context provisioning API. SPN is read (asynchronously) in the middle of gprs atom registration, if provisioning is needed. --Jukka Jukka Saunamaki (3): gprs-provision: add SPN to provisioning API header gprs,gprs

[PATCH 1/3] gprs-provision: add SPN to provisioning API header

2011-02-08 Thread Jukka Saunamaki
--- include/gprs-provision.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/gprs-provision.h b/include/gprs-provision.h index bc021a8..e9eec61 100644 --- a/include/gprs-provision.h +++ b/include/gprs-provision.h @@ -42,7 +42,7 @@ struct ofono_gprs_provision_data

[PATCH 2/3] gprs,gprs-provision: add SPN to provisioning API

2011-02-08 Thread Jukka Saunamaki
--- src/gprs-provision.c |4 +- src/gprs.c | 87 + src/ofono.h |2 +- 3 files changed, 68 insertions(+), 25 deletions(-) diff --git a/src/gprs-provision.c b/src/gprs-provision.c index 3cd84e8..011d5a8 100644 ---

[PATCH 3/3] gprs-provision: update example with SPN

2011-02-08 Thread Jukka Saunamaki
--- examples/provision.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/provision.c b/examples/provision.c index 356b0b3..546a161 100644 --- a/examples/provision.c +++ b/examples/provision.c @@ -37,6 +37,7 @@ #include ofono/log.h static int

Re: [PATCH 0/3] EF-SPN API to sim-atom

2011-02-01 Thread Jukka Saunamaki
Hi On Tue, 2011-02-01 at 22:38 +0200, ext Aki Niemi wrote: That reminds me, I think there are SIMs out there that use the CPHS ONS instead of SPN, and these can be used interchangeably. Jukka, don't you actually also need the ONS? In theory maybe, but in practice so far all cases where

Re: [PATCH 0/3] EF-SPN API to sim-atom

2011-01-30 Thread Jukka Saunamaki
Hello On Thu, 2011-01-27 at 15:22 +0200, Jukka Saunamaki wrote: Here is an asynchronous implementation of SIM Service Provider Name (EF-SPN) getter API. The trick is to delay setting sim ready until spn reading is finished. Any comments about this? So, yes, it slightly delays SIM

[PATCH 0/3] EF-SPN API to sim-atom

2011-01-27 Thread Jukka Saunamaki
Hello Here is an asynchronous implementation of SIM Service Provider Name (EF-SPN) getter API. The trick is to delay setting sim ready until spn reading is finished. Patch to use the new API in netreg is included. --Jukka Jukka Saunamaki (3): sim: add ofono_sim_get_spn API header

[PATCH 1/3] sim: add ofono_sim_get_spn API header

2011-01-27 Thread Jukka Saunamaki
--- include/sim.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/sim.h b/include/sim.h index 5e3ba5b..7e573fd 100644 --- a/include/sim.h +++ b/include/sim.h @@ -180,6 +180,8 @@ void *ofono_sim_get_data(struct ofono_sim *sim); const char

[PATCH 3/3] netreg: use ofono_sim_get_spn()

2011-01-27 Thread Jukka Saunamaki
--- src/network.c | 46 +++--- 1 files changed, 7 insertions(+), 39 deletions(-) diff --git a/src/network.c b/src/network.c index b5450ee..f602db4 100644 --- a/src/network.c +++ b/src/network.c @@ -1507,51 +1507,21 @@ static void sim_spdi_read_cb(int ok,

Re: Hi, use qtdbus to access Ofono method

2011-01-27 Thread Jukka Saunamaki
Hi On Fri, 2011-01-28 at 13:47 +0800, cy xie wrote: Has anybody used qtdbus to access Ofono interface? I have faced some problem on it, the qdbusinterface create OK, but when call the ofono api, it will note the signature doesn't exist. please give me some info or show me and example.

[PATCH 2/5] ofono.h: add gprs-provision

2011-01-26 Thread Jukka Saunamaki
--- src/ofono.h |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/ofono.h b/src/ofono.h index e48dbf6..056c7f1 100644 --- a/src/ofono.h +++ b/src/ofono.h @@ -420,3 +420,12 @@ void __ofono_nettime_info_received(struct ofono_modem *modem, #include

[PATCH 1/5] gprs-provision: add driver API header

2011-01-26 Thread Jukka Saunamaki
--- Makefile.am |3 +- include/gprs-provision.h | 59 ++ 2 files changed, 61 insertions(+), 1 deletions(-) create mode 100644 include/gprs-provision.h diff --git a/Makefile.am b/Makefile.am index f941a19..f543135 100644 ---

[PATCH 5/5] gprs-provision: add example context provisioning driver

2011-01-26 Thread Jukka Saunamaki
--- Makefile.am |3 ++ examples/provision.c | 95 ++ 2 files changed, 98 insertions(+), 0 deletions(-) create mode 100644 examples/provision.c diff --git a/Makefile.am b/Makefile.am index 9c4f383..c70dcbf 100644 --- a/Makefile.am

[PATCH 4/5] gprs: add gprs context provisioning

2011-01-26 Thread Jukka Saunamaki
--- src/gprs.c | 99 +-- 1 files changed, 95 insertions(+), 4 deletions(-) diff --git a/src/gprs.c b/src/gprs.c index 92d0b1a..7fad23b 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -43,6 +43,8 @@ #include common.h #include storage.h

[PATCH 3/5] gprs-provision: add driver API sources

2011-01-26 Thread Jukka Saunamaki
--- Makefile.am |2 +- src/gprs-provision.c | 104 ++ 2 files changed, 105 insertions(+), 1 deletions(-) create mode 100644 src/gprs-provision.c diff --git a/Makefile.am b/Makefile.am index f543135..9c4f383 100644 --- a/Makefile.am

[gprs-provision PATCHv7 0/5] Plugin API for provisioning of GPRS context settings

2011-01-26 Thread Jukka Saunamaki
Hello And again a patchset about automatic provisioning of GPRS context settings. Since the safe reading of EF-SPN turned out to be impossible until general solution is implemented, I must temporary give up my insistence on it. So the following provisioning driver API must be considered as

Re: [gprs-provision PATCHv7 0/5] Plugin API for provisioning of GPRS context settings

2011-01-26 Thread Jukka Saunamaki
Hello Denis, On Wed, 2011-01-26 at 14:56 -0600, ext Denis Kenzior wrote: And again a patchset about automatic provisioning of GPRS context settings. Since the safe reading of EF-SPN turned out to be impossible until general solution is implemented, I must temporary give up my insistence

Re: EF-SPN API (was: [gprs-provision PATCHv7 0/5] Plugin API for provisioning of GPRS context settings)

2011-01-26 Thread Jukka Saunamaki
Hi Marcel, On Thu, 2011-01-27 at 08:37 +0100, ext Marcel Holtmann wrote: you can have a look on what it would take to store a) read SPN in the SIM atom and store it and b) let netreg atom use that value. Simple solution for this would be something like: ... don't make this

[gprs-provision RFCPATCHv6 0/4] Plugin API for provisioning of GPRS context settings

2011-01-25 Thread Jukka Saunamaki
no need for it. It is now the gprs-atom that queries SPN from SIM before calling provisioning. Cases when gprs-atom is unregistered or removed while SPN query is in progress, should be handled gracefully (unlike e.g. in netreg atom...) --Jukka Saunamäki Jukka Saunamaki (4): gprs

[PATCH 1/4] gprs-provision: add driver API header

2011-01-25 Thread Jukka Saunamaki
--- Makefile.am |3 +- include/gprs-provision.h | 69 ++ 2 files changed, 71 insertions(+), 1 deletions(-) create mode 100644 include/gprs-provision.h diff --git a/Makefile.am b/Makefile.am index f941a19..f543135 100644 ---

[PATCH 3/4] gprs: add gprs context provisioning

2011-01-25 Thread Jukka Saunamaki
--- src/gprs.c | 172 1 files changed, 162 insertions(+), 10 deletions(-) diff --git a/src/gprs.c b/src/gprs.c index 92d0b1a..3e281e5 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -44,6 +44,11 @@ #include storage.h #include idmap.h

[PATCH 2/4] gprs-provision: add driver API sources

2011-01-25 Thread Jukka Saunamaki
--- Makefile.am |2 +- src/gprs-provision.c | 104 ++ 2 files changed, 105 insertions(+), 1 deletions(-) create mode 100644 src/gprs-provision.c diff --git a/Makefile.am b/Makefile.am index f543135..9c4f383 100644 --- a/Makefile.am

[PATCH 4/4] gprs-provision: add example context provisioning driver

2011-01-25 Thread Jukka Saunamaki
--- Makefile.am |3 ++ examples/provision.c | 97 ++ 2 files changed, 100 insertions(+), 0 deletions(-) create mode 100644 examples/provision.c diff --git a/Makefile.am b/Makefile.am index 9c4f383..c70dcbf 100644 --- a/Makefile.am

Re: [gprs-provision RFCPATCHv6 0/4] Plugin API for provisioning of GPRS context settings

2011-01-25 Thread Jukka Saunamaki
Hi On Tue, 2011-01-25 at 13:28 +0100, ext Marcel Holtmann wrote: I think that our only leftover is how we handle the SPN detail. Denis, what is your preference here? My take would be that we store it inside network registration and provide it to external modules. I don't see a point in

Re: SAT support in oFono

2011-01-24 Thread Jukka Saunamaki
Hello - BIP (Bearer independent protocol), including commands like OPEN CHANNEL, CLOSE CHANNEL, SEND/RECEIVE DATA BIP is on many operators' wish list of supported SAT features. Even it is optional in 3GPP, some market areas will probably require BIP. I don't have an example to give

[gprs-provision PATCHv5 0/6] Plugin API for provisioning of GPRS context setting

2011-01-20 Thread Jukka Saunamaki
plugin is included. In case it is called when using phonesim with default.xml configuration, the plugin returns dummy settings for two contexts, one type Internet and one type MMS. --Jukka Saunamäki Jukka Saunamaki (6): gprs-provision: add driver API header ofono.h: add new atom type

[PATCH 1/6] gprs-provision: add driver API header

2011-01-20 Thread Jukka Saunamaki
--- Makefile.am |2 +- include/gprs-provision.h | 74 ++ 2 files changed, 75 insertions(+), 1 deletions(-) create mode 100644 include/gprs-provision.h diff --git a/Makefile.am b/Makefile.am index c1c34ca..7a03f08 100644 ---

[PATCH 2/6] ofono.h: add new atom type for gprs-provision

2011-01-20 Thread Jukka Saunamaki
--- src/ofono.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/ofono.h b/src/ofono.h index 77567c2..43a703f 100644 --- a/src/ofono.h +++ b/src/ofono.h @@ -127,6 +127,7 @@ enum ofono_atom_type { OFONO_ATOM_TYPE_NETTIME = 21, OFONO_ATOM_TYPE_CTM

[PATCH 5/6] gprs: add gprs context provisioning

2011-01-20 Thread Jukka Saunamaki
--- src/gprs.c | 147 ++-- 1 files changed, 133 insertions(+), 14 deletions(-) diff --git a/src/gprs.c b/src/gprs.c index 7ef81d5..06f6555 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -43,6 +43,7 @@ #include common.h #include storage.h

[PATCH 6/6] gprs-provision: add example context provisioning driver

2011-01-20 Thread Jukka Saunamaki
--- Makefile.am |3 + examples/provision.c | 221 ++ 2 files changed, 224 insertions(+), 0 deletions(-) create mode 100644 examples/provision.c diff --git a/Makefile.am b/Makefile.am index 97480d5..7a87aee 100644 --- a/Makefile.am

[PATCH 4/6] modem: probe gprs_provision drivers

2011-01-20 Thread Jukka Saunamaki
--- src/modem.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/modem.c b/src/modem.c index e966a6e..a302590 100644 --- a/src/modem.c +++ b/src/modem.c @@ -424,6 +424,7 @@ static void modem_change_state(struct ofono_modem *modem,

Re: [PATCH 1/6] gprs-provision: add driver API header

2011-01-20 Thread Jukka Saunamaki
Hi On Thu, 2011-01-20 at 15:51 -0600, Denis Kenzior wrote: So I don't really see the point in an asynchronous provisioning driver. If you want to do this over D-Bus or something then you might as well provision via the ConnectionManager interface. The other problem with being async is that

[PATCH 2/3] sim: getters for mcc and mnc definition

2011-01-19 Thread Jukka Saunamaki
--- include/sim.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/sim.h b/include/sim.h index 830322a..81df60e 100644 --- a/include/sim.h +++ b/include/sim.h @@ -178,6 +178,8 @@ void ofono_sim_set_data(struct ofono_sim *sim, void *data); void

[gprs-provision PATCHv4 0/8] plugin API for provisioning of GPRS context settings

2011-01-18 Thread Jukka Saunamaki
). --Jukka Saunamäki Jukka Saunamaki (8): gprs-provision: add driver API header gprs-provision: add new atom type gprs-provision: add driver API sources gprs-provision: probe gprs_provision drivers gprs: add gprs context provisioning sim: getters for mcc and mnc

[PATCH 4/8] gprs-provision: probe gprs_provision drivers

2011-01-18 Thread Jukka Saunamaki
--- src/modem.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/modem.c b/src/modem.c index f587766..a835775 100644 --- a/src/modem.c +++ b/src/modem.c @@ -424,6 +424,7 @@ static void modem_change_state(struct ofono_modem *modem,

[PATCH 2/8] gprs-provision: add new atom type

2011-01-18 Thread Jukka Saunamaki
--- src/ofono.h |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/ofono.h b/src/ofono.h index 77567c2..873b688 100644 --- a/src/ofono.h +++ b/src/ofono.h @@ -127,6 +127,7 @@ enum ofono_atom_type { OFONO_ATOM_TYPE_NETTIME = 21, OFONO_ATOM_TYPE_CTM

[PATCH 5/8] gprs: add gprs context provisioning

2011-01-18 Thread Jukka Saunamaki
--- src/gprs.c | 147 ++-- 1 files changed, 133 insertions(+), 14 deletions(-) diff --git a/src/gprs.c b/src/gprs.c index 0e86bdf..b0d58f6 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -43,6 +43,7 @@ #include common.h #include storage.h

[PATCH 3/8] gprs-provision: add driver API sources

2011-01-18 Thread Jukka Saunamaki
--- Makefile.am |2 +- src/gprs-provision.c | 236 ++ 2 files changed, 237 insertions(+), 1 deletions(-) create mode 100644 src/gprs-provision.c diff --git a/Makefile.am b/Makefile.am index 22ec95d..e792851 100644 --- a/Makefile.am

[PATCH 1/8] gprs-provision: add driver API header

2011-01-18 Thread Jukka Saunamaki
--- Makefile.am |2 +- include/gprs-provision.h | 80 ++ 2 files changed, 81 insertions(+), 1 deletions(-) create mode 100644 include/gprs-provision.h diff --git a/Makefile.am b/Makefile.am index da59be7..22ec95d 100644 ---

[PATCH 6/8] sim: getters for mcc and mnc definition

2011-01-18 Thread Jukka Saunamaki
--- include/sim.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/sim.h b/include/sim.h index 830322a..81df60e 100644 --- a/include/sim.h +++ b/include/sim.h @@ -178,6 +178,8 @@ void ofono_sim_set_data(struct ofono_sim *sim, void *data); void

[PATCH 7/8] sim: getters for mcc and mnc implementation

2011-01-18 Thread Jukka Saunamaki
--- src/sim.c | 50 +++--- 1 files changed, 31 insertions(+), 19 deletions(-) diff --git a/src/sim.c b/src/sim.c index d627647..86c3f13 100644 --- a/src/sim.c +++ b/src/sim.c @@ -78,6 +78,8 @@ struct ofono_sim { gboolean barred_dialing;

[PATCH 8/8] gprs-provision: add example context provisioning driver

2011-01-18 Thread Jukka Saunamaki
--- Makefile.am |3 + examples/provision.c | 206 ++ 2 files changed, 209 insertions(+), 0 deletions(-) create mode 100644 examples/provision.c diff --git a/Makefile.am b/Makefile.am index e792851..a74f75e 100644 --- a/Makefile.am

Re: [PATCH 1/8] gprs-provision: add driver API header

2011-01-18 Thread Jukka Saunamaki
Hi Marcel, +/* + * Callback from provisioning plugin. + * settings: list of struct ofono_gprs_provision_data + * + * It is responsibility of callback function to free settings-list + * settings-list elements must be freed with ofono_gprs_provision_data_free() + */ +typedef void

[PATCH 0/3] sim: add getters for mcc and mnc

2011-01-18 Thread Jukka Saunamaki
These patches add getter functions for home PLMN MCC and MCC values to SIM atom. Jukka Saunamaki (3): sim: store mcc and mnc separate from imsi sim: getters for mcc and mnc definition sim: getters for mcc and mnc implementation include/sim.h |2 ++ src/sim.c | 50

[PATCH 3/3] sim: getters for mcc and mnc implementation

2011-01-18 Thread Jukka Saunamaki
--- src/sim.c | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/sim.c b/src/sim.c index 891116b..86c3f13 100644 --- a/src/sim.c +++ b/src/sim.c @@ -1990,6 +1990,22 @@ const char *ofono_sim_get_imsi(struct ofono_sim *sim) return sim-imsi; }

Re: [RFC PATCH 4/4] Dummy example GPRS context provisioning driver

2011-01-16 Thread Jukka Saunamaki
Hello On Sat, 2011-01-15 at 02:30 +0100, Marcel Holtmann wrote: I would advise the UI against using the name from the context information and better using the one from the network registration instead. Well that would make sense... Therefore the operators don't do it ;-) For

Re: [RFC PATCH 4/4] Dummy example GPRS context provisioning driver

2011-01-14 Thread Jukka Saunamaki
Hi , I was not sure if all MVNOs have their own MNC, but in any case some operators use different trade names. Off the top of my hat I know our local Finnish operators Elisa and Sonera use trade names like Kolumbus and TeleFinland, and their name shown in UI needs to be correct. what

Re: [RFC PATCH 4/4] Dummy example GPRS context provisioning driver

2011-01-14 Thread Jukka Saunamaki
Hi On Fri, 2011-01-14 at 14:44 +0100, ext Marcel Holtmann wrote: Hi Jukka, I was not sure if all MVNOs have their own MNC, but in any case some operators use different trade names. Off the top of my hat I know our local Finnish operators Elisa and Sonera use trade names like

Re: [RFC PATCH 4/4] Dummy example GPRS context provisioning driver

2011-01-13 Thread Jukka Saunamaki
Hello Denis, On Thu, 2011-01-13 at 09:57 -0600, Denis Kenzior wrote: Some virtual operators are using the same MCC/MNC as their host, or some operators have several different trade names, and these can have different access settings (at least different UI visible name). SPN in SIM

Re: [RFC PATCH 4/4] Dummy example GPRS context provisioning driver

2011-01-12 Thread Jukka Saunamaki
Hello On Wed, 2011-01-12 at 10:46 -0600, Denis Kenzior wrote: ...SIM EF-SPN... You're correct that netreg is the only consumer. There was no need for anyone else to see this information. However, this begs the question, why do you need the SPN data? Some virtual operators are using the

Re: [RFC PATCH 2/4] gprs: add automatic context settings provisioning

2011-01-11 Thread Jukka Saunamaki
Hello Marcel, On Tue, 2011-01-11 at 22:51 -0800, ext Marcel Holtmann wrote: -void ofono_gprs_register(struct ofono_gprs *gprs) +static void ofono_gprs_finish_register(struct ofono_gprs *gprs) { DBusConnection *conn = ofono_dbus_get_connection(); struct ofono_modem *modem =

Re: [RFC PATCH 4/4] Dummy example GPRS context provisioning driver

2011-01-11 Thread Jukka Saunamaki
Hello On Tue, 2011-01-11 at 22:48 -0800, ext Marcel Holtmann wrote: + if (sim != NULL) { + ofono_sim_read(sim, SIM_EFSPN_FILEID, + OFONO_SIM_FILE_STRUCTURE_TRANSPARENT, + sim_spn_read_cb, req); + return; + }

[RFC PATCHv3 0/4] Plugin API for provisioning of GPRS context settings

2011-01-10 Thread Jukka Saunamaki
Hello Here is another RFC patchset about implementing automatic provisioning GPRS context settings. (Internet Access Provider database TODO item). This time the approach is to add a new driver/plugin API for provisioning modules. Different kind of provisioning modules may be created for

[RFC PATCH 2/4] gprs: add automatic context settings provisioning

2011-01-10 Thread Jukka Saunamaki
--- src/gprs.c | 116 --- 1 files changed, 102 insertions(+), 14 deletions(-) diff --git a/src/gprs.c b/src/gprs.c index 58166f8..7d188a3 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -43,6 +43,7 @@ #include common.h #include storage.h

[RFC PATCH 1/4] Added GPRS context provisioning driver API sources

2011-01-10 Thread Jukka Saunamaki
--- Makefile.am |4 +- include/gprs-provision.h | 73 + src/gprs-provision.c | 133 ++ 3 files changed, 208 insertions(+), 2 deletions(-) create mode 100644 include/gprs-provision.h create mode 100644

[RFC PATCH 3/4] sim: add ofono_sim_get_mnc_length

2011-01-10 Thread Jukka Saunamaki
--- include/sim.h |1 + src/sim.c |8 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/sim.h b/include/sim.h index 7860e24..9b21f2e 100644 --- a/include/sim.h +++ b/include/sim.h @@ -173,6 +173,7 @@ void ofono_sim_set_data(struct ofono_sim *sim, void

Re: [RFC PATCHv2 1/4] Automatic provisioning of GPRS context settings

2011-01-04 Thread Jukka Saunamaki
Hello Marcel, the oFono plugins work like kernel modules. They are pretty much generic. Inside the init function you can a driver register function and inside the exit function, you call the driver unregister function. Right, that seems clear enough. static int setup_context(struct

Re: [RFC PATCHv2 1/4] Automatic provisioning of GPRS context settings

2011-01-03 Thread Jukka Saunamaki
Hello On Mon, 2011-01-03 at 10:57 +0200, Kalle Valo wrote: Jukka Saunamaki jukka.saunam...@nokia.com writes: Settings database is an XML formatted file (combination of all xml-files in a directory), containing one element per settings for a specific type of GPRS context (internet, mms

Re: [RFC PATCHv2 1/4] Automatic provisioning of GPRS context settings

2011-01-03 Thread Jukka Saunamaki
Hello Well, my intention was to make format simple and fast to parse, but still be extensible enough, which I think my proposed format fulfills. These access-elements contain just data needed for GPRS context settings (as attributes), and if there is need for any other operator

Re: [RFC PATCHv2 1/4] Automatic provisioning of GPRS context settings

2011-01-03 Thread Jukka Saunamaki
Hello Marcel, On Mon, 2011-01-03 at 15:03 -0800, ext Marcel Holtmann wrote: thinking about this a bit more and with the background that there is already an existing public database, we might should just enable a provision driver inside the oFono core. Meaning that we can have multiple

[RFC PATCHv2 1/4] Automatic provisioning of GPRS context settings

2011-01-02 Thread Jukka Saunamaki
Hello Here is another RFC patchset about implementing automatic provisioning of Internet and MMS GPRS context settings. (Internet Access Provider database TODO item). In case there are no previously configured contexts found during gprs atom registration, this code tries to provision Internet

[RFC PATCHv2 2/4] operator-settings: Add GPRS context provisioning sources

2011-01-02 Thread Jukka Saunamaki
--- Makefile.am |3 +- src/operator-settings.c | 314 +++ src/operator-settings.h | 37 ++ 3 files changed, 353 insertions(+), 1 deletions(-) create mode 100644 src/operator-settings.c create mode 100644 src/operator-settings.h

[RFC PATCHv2 1/4] sim: add ofono_sim_get_mnc_length

2011-01-02 Thread Jukka Saunamaki
--- include/sim.h |1 + src/sim.c |8 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/sim.h b/include/sim.h index 7860e24..3d0c6b7 100644 --- a/include/sim.h +++ b/include/sim.h @@ -173,6 +173,7 @@ void ofono_sim_set_data(struct ofono_sim *sim, void

[RFC PATCHv2 4/4] operator-settings: Example GPRS context settings file

2011-01-02 Thread Jukka Saunamaki
--- examples/example-operator-settings.xml | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 examples/example-operator-settings.xml diff --git a/examples/example-operator-settings.xml b/examples/example-operator-settings.xml new file mode 100644 index

[RFC PATCHv2 3/4] gprs: add automatic context settings provisioning

2011-01-02 Thread Jukka Saunamaki
--- src/gprs.c | 176 +++- 1 files changed, 162 insertions(+), 14 deletions(-) diff --git a/src/gprs.c b/src/gprs.c index 58166f8..c9d4fb3 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -43,6 +43,9 @@ #include common.h #include storage.h

Re: [RFC PATCH 0/4] Automatic provisioning of GPRS context settings

2010-12-22 Thread Jukka Saunamaki
Hi On 21/12/10 16:11, ext Marcel Holtmann wrote: Settings database is CSV (comma separated values) formatted file(s) with fields for: (type=INTERNET|MMS protocol=ipv4|ipv6) MCC,MNC,SPN,type,UI name, APN, username, password, protocol, proxy IP address, proxy port, MMS server URL e.g. file

[RFC PATCH 2/4] sim: add ofono_sim_get_mnc_length

2010-12-21 Thread Jukka Saunamaki
--- include/sim.h |1 + src/sim.c |8 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/sim.h b/include/sim.h index 7860e24..3d0c6b7 100644 --- a/include/sim.h +++ b/include/sim.h @@ -173,6 +173,7 @@ void ofono_sim_set_data(struct ofono_sim *sim, void

[RFC PATCH 4/4] operator-settings: Example GPRS context settings file

2010-12-21 Thread Jukka Saunamaki
--- examples/example-operator-settings.csv |9 + 1 files changed, 9 insertions(+), 0 deletions(-) create mode 100644 examples/example-operator-settings.csv diff --git a/examples/example-operator-settings.csv b/examples/example-operator-settings.csv new file mode 100644 index

[RFC PATCH 0/4] Automatic provisioning of GPRS context settings

2010-12-21 Thread Jukka Saunamaki
Hello Here is a first attempt to implement automatic provisioning of Internet and MMS GPRS context settings. (Internet Access Provider database TODO item). In case there are no previously configured contexts found during gprs atom registration, this code tries to provision Internet and MMS

[RFC PATCH 3/4] gprs: add automatic context settings provisioning

2010-12-21 Thread Jukka Saunamaki
--- src/gprs.c | 169 +++- 1 files changed, 155 insertions(+), 14 deletions(-) diff --git a/src/gprs.c b/src/gprs.c index 58166f8..f2f2c9f 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -43,6 +43,9 @@ #include common.h #include storage.h