Hi Marcel,
so what about the cases when roaming is allowed or not? These needs
to
be taken into account and that is oFono's job. That is the reason why
ConnMan follows the attach state. Since we don't wanna activate a
context when roaming and data roaming is not allowed.
Ok, I see the concern. I'd propose making GPRS availability a separate property from
GPRS attach status. Availability can be decided on registration status alone (i.e., does
the network advertise GPRS and does the roaming check allow GPRS). Both GPRS attach and
PDP context activation can in any case fail for transient reasons, so ConnMan needs to
have some logic to retry context activation.
Br,
MikaL