Skip to navigation
ServicesPlatformEventsEvent typesData connection lifecycle

Data connection lifecycle

Create PDP Context

A Packet Data Protocol (PDP) context allows UE to exchange IP packets over the network.

A Create PDP Context event indicates the activation of data connectivity.

Example: a device has established a data session and started transferring data. This device appears as Online in the emnify Portal as long as there hasn’t been a subsequent Delete PDP Context event.

Rejected requests

When emnify rejects a data connection request, the Create PDP Context event has alert set to true, the event source Policy Control, and the severity Warn. The reject_reason property in the detail object says why emnify rejected the request. Use reject_reason instead of the description text to tell rejections apart. The description is for people to read, and some different reasons share the same text, such as quota_expired and quota_undefined.

The detail.pdp_context object holds the request data that was available when emnify rejected it, such as rat_type, operator_id, nsapi, imsi, and apn. For imei_lock_mismatch, detail.pdp_context.imeisv also holds the IMEI or IMEISV as the network sent it. It’s usually the 16-digit IMEISV, but it’s the 15-digit IMEI when the network sends an IMEI instead. To get notified about these rejections, add an automation rule with the IMEI does not match event.

Codes are lowercase snake_case. emnify never renames a code after it’s released, but it can deprecate codes and add new ones, so make sure your integration handles codes it doesn’t recognize.

reject_reasonReasondescription text after “because”
imei_lock_mismatchThe IMEI lock is active and the IMEI from the network doesn’t match the device’s IMEI.IMEI lock active, but IMEIs do not match, EP IMEI=…, IMEI provided from network = …
data_service_disabledData service is turned off in the service policy.data service disabled in service profile.
endpoint_operator_blockedThe operator is blocked for this device.operator is blocked for this endpoint.
operator_out_of_coverageThe operator isn’t part of the selected coverage.from MCC/MNC …/…, this operator is not part of the of selected coverage.
operator_blocked_by_coverage_policyThe coverage policy blocks the operator.from MCC/MNC …/…, this operator is blocked by the coverage policy.
rat_type_blocked_by_coverage_policyThe coverage policy blocks the radio access type (RAT) for this operator.RAT type … is blocked by the coverage policy for MCC/MNC …/….
rat_type_not_allowedThe service policy doesn’t allow the RAT.Rat Type … is not allowed
imsi_operator_blockedThe operator is blocked for this IMSI.operator is blocked by the IMSI pool coverage.
imsi_operator_missingThe operator isn’t part of the coverage for this IMSI.operator is not included in the IMSI pool coverage.
imsi_rat_type_blockedThe RAT isn’t supported for this IMSI.RAT type … is blocked by the IMSI pool coverage.
organisation_blockedThe device’s organization is blocked.endpoint organisation is currently blocked.
endpoint_status_disabledThe device is disabled.endpoint is currently disabled.
endpoint_deletedThe device is deleted.endpoint is deleted.
sim_not_activatedThe SIM is issued but has never been activated.SIM is not activated.
sim_suspendedThe SIM is suspended.SIM is not activated.
sim_deletedThe SIM is deleted.SIM is deleted.
traffic_limit_exceededThe device exceeded its traffic limit.endpoint is currently blocked due to exceeded traffic limit.
quota_volume_exhaustedThe device used up its quota volume, and the quota’s action is to block data traffic.quota volume of endpoint is exhausted and defined action is to block data traffic.
quota_expiredThe device’s quota expired.endpoint does not have valid quota available.
quota_undefinedThe device has no quota.endpoint does not have valid quota available.
invalid_profile_dataThe SIM or device status is missing.invalid profile data
system_errorAn internal error occurred.system error. or org status undefined.
unknownNo reason could be determined. This code shouldn’t appear. If it does, contact support.Any
{
"timestamp": "2021-10-27T08:38:02.000Z",
"alert": false,
"description": "New PDP Context successfully activated with SGSN CP=60.195.159.61, DP=117.72.59.30.",
"id": 31877325941,
"event_type": {
"id": 3,
"description": "Create PDP Context"
},
"event_source": {
"id": 0,
"description": "Network"
},
"event_severity": {
"id": 0,
"description": "Info"
},
"organisation": {
"id": 1825,
"name": "Test Org"
},
"endpoint": {
"id": 20200078,
"imei": "960407272413998",
"ip_address": "189.79.243.228",
"name": "Test Sim 2",
"tags": null
},
"sim": {
"iccid": "5746435358418205328",
"id": 646486,
"production_date": "2020-12-23T13:02:11.000Z"
},
"imsi": {
"id": 12105613,
"import_date": "2020-12-23T13:02:11.000Z",
"imsi": "693601932595201"
},
"detail": {
"country": {
"mcc": "262",
"name": "Germany",
"country_code": "49",
"iso_code": "de",
"id": 74
},
"id": 3,
"session_id": "d12c574f-e219-45a4-8836-d17a50f66fb1",
"pdp_context": {
"breakout_ip": "97.106.216.29",
"rac": null,
"sgsn_control_plane_ip_address": "117.72.59.30",
"rat_type": 2,
"tx_teid_data_plane": 557727595,
"region": "eu-west-1",
"apn": "em",
"tx_teid_control_plane": 570842943,
"tunnel_created": "2021-10-27T08:38:02",
"ggsn_data_plane_ip_address": "150.85.110.76",
"sgsn_data_plane_ip_address": "223.253.0.120",
"rx_teid": 96601675,
"ci": 5174,
"imsi": "82186563190127",
"lac": 921,
"mcc": "262",
"sac": null,
"ggsn_control_plane_ip_address": "60.195.159.61",
"mnc": "02",
"nsapi": 5,
"ue_ip_address": "101.124.109.214",
"imeisv": "6887426203768011",
"pdp_context_id": 51755555,
"gtp_version": 1,
"operator_id": "3",
"tariff_profile_id": "395978", // coverage policy
"ratezone_id": "8178", // coverage area
"tariff_id": "555" // data plan
},
"name": "Vodafone"
}
}
{
"timestamp": "2021-10-24T12:43:51.000Z",
"alert": true,
"description": "PDP Context Request rejected, because data service disabled in service profile.",
"id": 2836707022,
"event_type": {
"id": 3,
"description": "Create PDP Context"
},
"event_source": {
"id": 1,
"description": "Policy Control"
},
"event_severity": {
"id": 1,
"description": "Warn"
},
"organisation": {
"id": 1222,
"name": "Test Org"
},
"endpoint": {
"id": 14002489,
"imei": "211785743231328",
"ip_address": "173.97.253.42",
"name": "Test Sim 2",
"tags": null
},
"sim": {
"iccid": "41595256071723032296",
"id": 801148,
"production_date": "2020-12-23T13:02:11.000Z"
},
"imsi": {
"id": 62004293,
"import_date": "2020-12-23T13:02:11.000Z",
"imsi": "175904061168404"
},
"detail": {
"reject_reason": "data_service_disabled",
"pdp_context": {
"rat_type": 6,
"operator_id": "3",
"nsapi": 5,
"imsi": "175904061168404",
"apn": "em"
}
}
}
{
"timestamp": "2021-10-27T08:55:59.000Z",
"alert": true,
"description": "PDP Context Request rejected, because endpoint does not have valid quota available.",
"id": 7745432124,
"event_type": {
"id": 3,
"description": "Create PDP Context"
},
"event_source": {
"id": 1,
"description": "Policy Control"
},
"event_severity": {
"id": 1,
"description": "Warn"
},
"organisation": {
"id": 177,
"name": "Test Org"
},
"endpoint": {
"id": 10238,
"imei": "127957062642784",
"ip_address": "113.252.159.78",
"name": "Test Sim 2",
"tags": null
},
"sim": {
"iccid": "6300267938152764468",
"id": 3012262,
"production_date": "2020-12-23T13:02:11.000Z"
},
"imsi": {
"id": 66367669,
"import_date": "2020-12-23T13:02:11.000Z",
"imsi": "85785128232645"
},
"detail": {
"reject_reason": "quota_undefined",
"pdp_context": {
"rat_type": 6,
"operator_id": "5",
"nsapi": 5,
"imsi": "85785128232645",
"apn": "em"
}
}
}
{
"timestamp": "2021-10-27T09:12:27.000Z",
"alert": true,
"description": "PDP Context Request rejected, because quota volume of endpoint is exhausted and defined action is to block data traffic.",
"id": 7598008306,
"event_type": {
"id": 3,
"description": "Create PDP Context"
},
"event_source": {
"id": 1,
"description": "Policy Control"
},
"event_severity": {
"id": 1,
"description": "Warn"
},
"organisation": {
"id": 8087,
"name": "Test Org"
},
"endpoint": {
"id": 39063467,
"imei": "454208457191395",
"ip_address": "120.133.145.19",
"name": "Test Sim 2",
"tags": null
},
"sim": {
"iccid": "91447762462599458698",
"id": 609020,
"production_date": "2020-12-23T13:02:11.000Z"
},
"imsi": {
"id": 97534929,
"import_date": "2020-12-23T13:02:11.000Z",
"imsi": "715343715967543"
},
"detail": {
"reject_reason": "quota_volume_exhausted",
"pdp_context": {
"rat_type": 2,
"operator_id": "3",
"nsapi": 5,
"imsi": "715343715967543",
"apn": "em"
}
}
}
{
"timestamp": "2021-10-27T12:33:17.000Z",
"alert": true,
"description": "PDP Context Request rejected, because SIM is not activated.",
"id": 117138486882,
"event_type": {
"id": 3,
"description": "Create PDP Context"
},
"event_source": {
"id": 1,
"description": "Policy Control"
},
"event_severity": {
"id": 1,
"description": "Warn"
},
"organisation": {
"id": 4823,
"name": "Test Org"
},
"endpoint": {
"id": 1257319,
"imei": "25631320011492911",
"ip_address": "230.105.77.310",
"name": "Test Sim 2",
"tags": null
},
"sim": {
"iccid": "87901100765269508687",
"id": 45142,
"production_date": "2020-12-23T13:02:11.000Z"
},
"imsi": {
"id": 497998,
"import_date": "2020-12-23T13:02:11.000Z",
"imsi": "76604441813689"
},
"detail": {
"reject_reason": "sim_not_activated",
"pdp_context": {
"rat_type": 6,
"operator_id": "4",
"nsapi": 5,
"imsi": "76604441813689",
"apn": "em"
}
}
}
{
"timestamp": "2026-11-17T10:21:45.000Z",
"alert": true,
"description": "PDP Context Request rejected, because IMEI lock active, but IMEIs do not match, EP IMEI=353456789012345, IMEI provided from network = 358922371775911",
"id": 118402277391,
"event_type": {
"id": 3,
"description": "Create PDP Context"
},
"event_source": {
"id": 1,
"description": "Policy Control"
},
"event_severity": {
"id": 1,
"description": "Warn"
},
"organisation": {
"id": 4823,
"name": "Test Org"
},
"endpoint": {
"id": 1257320,
"imei": "353456789012345",
"ip_address": "100.96.12.7",
"name": "Test Sim 3",
"tags": null
},
"sim": {
"iccid": "87901100765269508695",
"id": 45143,
"production_date": "2020-12-23T13:02:11.000Z"
},
"imsi": {
"id": 497999,
"import_date": "2020-12-23T13:02:11.000Z",
"imsi": "901700000000001"
},
"detail": {
"reject_reason": "imei_lock_mismatch",
"pdp_context": {
"rat_type": 6,
"operator_id": "3",
"nsapi": 5,
"imsi": "901700000000001",
"apn": "em",
"imeisv": "3589223717759118"
}
}
}

Delete PDP Context

Data session between the device and the network is deleted.

Example: a device disconnected and ended a data transfer. The event details also show the data transmitted, and the device appears as Attached in the emnify Portal.

{
"timestamp": "2021-10-27T08:40:10.000Z",
"alert": false,
"description": "PDP Context deleted.",
"id": 1906081382592,
"event_type": {
"id": 5,
"description": "Delete PDP Context"
},
"event_source": {
"id": 0,
"description": "Network"
},
"event_severity": {
"id": 0,
"description": "Info"
},
"organisation": {
"id": 39089,
"name": "Test Org"
},
"endpoint": {
"id": 8163445,
"imei": "82586199276110710",
"ip_address": "104.86.8.106",
"name": "Test Sim 2",
"tags": null
},
"sim": {
"iccid": "9335742231782809262",
"id": 1931060,
"production_date": "2020-12-23T13:02:11.000Z"
},
"imsi": {
"id": 5216225,
"import_date": "2020-12-23T13:02:11.000Z",
"imsi": "49652622520507"
},
"detail": {
"country": {
"country_code": "49",
"mcc": "262",
"name": "Germany",
"iso_code": "de",
"id": 82
},
"volume": {
"total": 0.641984,
"rx": 0.418811,
"tx": 0.223173
},
"id": 3,
"session_id": "2a4ff039-fbb9-4eaa-b74c-2f0eaafaf624",
"pdp_context": {
"breakout_ip": null,
"rac": null,
"sgsn_control_plane_ip_address": "234.39.123.228",
"rat_type": 2,
"tx_teid_data_plane": 966839357,
"region": "eu-west-1",
"apn": null,
"tx_teid_control_plane": 397629956,
"tunnel_created": "2021-10-27T08:38:02",
"ggsn_data_plane_ip_address": "225.129.61.136",
"sgsn_data_plane_ip_address": "173.69.12.45",
"rx_teid": 18195957,
"ci": 6471,
"imsi": "369573775632443",
"lac": 767,
"mcc": "262",
"sac": null,
"ggsn_control_plane_ip_address": "67.185.18.116",
"mnc": "02",
"nsapi": 5,
"ue_ip_address": "66.185.97.229",
"imeisv": "4555797980633712",
"pdp_context_id": 79790039,
"gtp_version": 1
},
"name": "Vodafone"
}
}