Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-12 Thread Denis Kenzior
Hi Tarmo, Once a proper database is used, this mostly goes away as an issue.  We did add the SPN field to MBPI schema in the olden days.  The problem is that nobody actually updated the MBPI database to take advantage of this. Hmm, maybe my memory is faulty (it has been ~9 years now), but I

Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-12 Thread Tarmo Kuuse
Hi Denis, On 12.03.20 16:49, Denis Kenzior wrote: Hi Tarmo, I don't see how am I going to solve this. The end user cannot configure the device (there's no user interaction whatsoever). I could not find the mythical Android database at the time (I do now - it's at https://android.googlesource

Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-12 Thread Tarmo Kuuse
Hi Cristophe, On 12.03.20 17:51, Christophe Ronco wrote: In my case automatic provisioning always fails: - the database has multiple entries for basically every operator/country mbpi is just not a very good database.  It provides lots of duplicates and doesn't distinguish by spn last I checked

Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-12 Thread Christophe Ronco
Hi Tarmo, On 3/12/20 2:22 PM, Tarmo Kuuse wrote: > Hi Denis, > > On 04.03.20 20:49, Denis Kenzior wrote: >>> In my case automatic provisioning always fails: >>> - the database has multiple entries for basically every >>> operator/country >> >> mbpi is just not a very good database.  It provides lo

Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-12 Thread Denis Kenzior
Hi Tarmo, I don't see how am I going to solve this. The end user cannot configure the device (there's no user interaction whatsoever). I could not find the mythical Android database at the time (I do now - it's at https://android.googlesource.com/device/sample/+/master/etc/apns-full-conf.xml).

Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-12 Thread Tarmo Kuuse
Hi Denis, On 04.03.20 20:49, Denis Kenzior wrote: In my case automatic provisioning always fails: - the database has multiple entries for basically every operator/country mbpi is just not a very good database.  It provides lots of duplicates and doesn't distinguish by spn last I checked.  Ubu

Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-04 Thread Denis Kenzior
Hi, In my case automatic provisioning always fails: - the database has multiple entries for basically every operator/country mbpi is just not a very good database. It provides lots of duplicates and doesn't distinguish by spn last I checked. Ubuntu Touch folks used the android apndb and ot

Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-04 Thread nick83ola
Hi Dennis, On Wed, 4 Mar 2020 at 17:11, Denis Kenzior wrote: > Hi Nicola, > > No top posting please. > Ok sorry > On 3/4/20 11:00 AM, nick83ola wrote: > > Hi Giacinto, > > We have a web application that is talking to connman and ofono over dbus. > > We present the user with the list and once i

Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-04 Thread Denis Kenzior
Hi Nicola, No top posting please. On 3/4/20 11:00 AM, nick83ola wrote: Hi Giacinto, We have a web application that is talking to connman and ofono over dbus. We present the user with the list and once is connected to a profile connman remembers it so if I connect again the same modem connman wi

Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-04 Thread nick83ola
Hi Giacinto, We have a web application that is talking to connman and ofono over dbus. We present the user with the list and once is connected to a profile connman remembers it so if I connect again the same modem connman will remember it as a favourite and automatically connect. or at least is wha

Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-04 Thread Giacinto Cifelli
Hi Nick, On Wed, Mar 4, 2020 at 5:45 PM nick83ola wrote: > > Hi Denis, > thanks for your response > > Can you say why it is a terrible idea? > In this way I can select in connman (or via dbus) the right context > that I want to use > I can also create other context manually. > Maintaining a custo

Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-04 Thread nick83ola
Hi Denis, thanks for your response Can you say why it is a terrible idea? In this way I can select in connman (or via dbus) the right context that I want to use I can also create other context manually. Maintaining a custom database is an hassle you don't know what operator your user are using. Fo

Re: [PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-04 Thread Denis Kenzior
Hi Nicola, On 3/2/20 10:31 AM, Nicola Lunghi wrote: if the mobile provider information database has multiple apn settings for the same operator, ofono was throwing an error and creating a default internet context with an empty apn. This patch will instead allow the automatic creation of multipl

[PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi

2020-03-02 Thread Nicola Lunghi
if the mobile provider information database has multiple apn settings for the same operator, ofono was throwing an error and creating a default internet context with an empty apn. This patch will instead allow the automatic creation of multiple context allowing the user to pick one of the default