Hi all,
In regarding to this I found the provision plugin and at line 53 it
uses the mbpi lookup to provision for the default apns but at line 53
it does

apns = mbpi_lookup_apn(mcc, mnc, FALSE, &error);

that gives an error in case of multiple providers. -> but if I change
it to gboolean allow_duplicates=TRUE
It works and it creates multiple contexts

ap_count = g_slist_length(apns);
.....
for (l = apns, i = 0; l; l = l->next, i++) {
struct ofono_gprs_provision_data *ap = l->data;

memcpy(*settings + i, ap,
sizeof(struct ofono_gprs_provision_data));

g_free(ap);
}

What's the issue in setting mbpi_lookup_apn(mcc, mnc, TRUE, &error); ?????

Regards
Nicola Lunghi

================================================================================
diff --git a/plugins/provision.c b/plugins/provision.c
index 99c299eb..aa0b05e4 100644
--- a/plugins/provision.c
+++ b/plugins/provision.c
@@ -50,7 +50,7 @@ static int provision_get_settings(const char *mcc,
const char *mnc,

        DBG("Provisioning for MCC %s, MNC %s, SPN '%s'", mcc, mnc, spn);

-       apns = mbpi_lookup_apn(mcc, mnc, FALSE, &error);
+       apns = mbpi_lookup_apn(mcc, mnc, TRUE, &error);
        if (apns == NULL) {
                if (error != NULL) {
                        ofono_error("%s", error->message);

On Mon, 2 Mar 2020 at 10:52, nick83ola <[email protected]> wrote:
>
> Dear Ofono developers,
>
> I need to expose the mbpi information over d-bus and possibly
> automatically create profiles based on the information provided in the
> mobile provider information database.
>
> Do you think the right way could be:
> - add a d-bus interface to the mbpi.c plugin
> - or extend the allowed apn plugin to query the mobile provider database?
> - or something else?
>
> Thanks
> Nicola Lunghi
_______________________________________________
ofono mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to