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.
Example JSON response: create PDP context accepted
Example JSON response: create PDP context rejected because data service is disabled in the service profile
Example JSON response: create PDP context rejected because the device doesn't have a quota
Example JSON response: create PDP Context Request rejected because the device's quota volume is exhausted, and the defined action is to block data traffic
Example JSON response: create PDP context request rejected because the SIM isn't activated
Example JSON response: create PDP context request rejected because the IMEI doesn't match the IMEI lock
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.