Hi,
> From my understanding the ID in the core is an internal ID for oFono core,
> even if today we usually have a mapping 1 to 1 between oFono core ID and
> modems CID.
> Denis, Marcel could you confirm ?
Negative, to my understanding the CID is allocated in src/gprs.c and used
when activating/deactivating PDP contexts (PDN Connections):
<snip>
static gboolean assign_context(struct pri_context *ctx)
{
...
ctx->context.cid = gprs_cid_alloc(ctx->gprs);
<snip>
static void ...gprs_activate_primary(struct ofono_gprs_context *gc,
const struct ofono_gprs_primary_context *ctx,
ofono_gprs_context_up_cb_t cb, void *data)
{
gcd->active_context = ctx->cid;
> If we try to do something else oFono core will be modem dependent and it's
> really not a good idea.
It has been talk about standardizing the use of CID=0 for initial
PDN.If this comes
true this is no longer modem vendor dependent.
Regards,
Sjur
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono