Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Provisioning mechanism
Date: Sun, 06 Apr 2014 19:00:53 -0500	[thread overview]
Message-ID: <5341EAB5.7050105@gmail.com> (raw)
In-Reply-To: <CAM5ihG98uDdODn4_UXuB=FhwGwT=U0-0YeT3TNzAxPXvA0HdPA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1644 bytes --]

Hi Jerônimo,

On 04/06/2014 02:37 PM, Jerônimo Lopes wrote:
> Hi,
> 
> I'm trying to understand ofono build-in provisioning mechanism.
> 
> As far as understand these are the steps:
> 
> 1: get MCC and MNC
> 2: check settings file for this network, if exists goto step 6
> 3: try to read provisioning info from the sim card, if ok, goto step 5
> 4: try to read provisioning from MBPI xml file
> 5: write info to the settings file 
> 6: if it has a valid provisioning info, "export" (I don't know if this
> is the right term, so I'll use it) it to connman.
> 
> So my first question, is that correct?

Nope, not really.

The process is roughly like this:
- Load settings file.  Settings are stored according to IMSI of the SIM
- If no settings file is found, wait until MCC, MNC and SPN are known
- Run provisioning plugins (e.g. MBPI)
- If provisioning fails, make up a 'sentinel' context telling external
parties that no valid settings exist.

> 
> The other question is why provisioning plugin can't get 2 or more apn
> settings for the same network and export more than one service to connman?
> 
> I've tried to change line 53 of plugins/provision.c, setting
> 'allow_duplicates' parameter to 'TRUE':
>  apns = mbpi_lookup_apn(mcc, mnc, TRUE, &error);
> 
> Everything seams to work, but only the first context is exported to
> connman. I've try to debug the code, but I could't realize where this is
> done. 
> Is there a particular reason why this can't be done?

oFono can.  Connman only expects to manage a single Internet context, so
having multiple will not work there.

Regards,
-Denis

      reply	other threads:[~2014-04-07  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-06 19:37 Provisioning mechanism =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes
2014-04-07  0:00 ` Denis Kenzior [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5341EAB5.7050105@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox