# Purge Messages in a Cellular Network

## Overview <a href="#docs-internal-guid-a3ab5586-7fff-deb3-3e92-584bfd58efb1" id="docs-internal-guid-a3ab5586-7fff-deb3-3e92-584bfd58efb1"></a>

A purge message in telecommunications is a signal sent within a mobile network to indicate that a subscriber is no longer reachable. This message helps manage network resources and update the subscriber's status in the network.

## When Does a Purge Message Occur?

1. Mobile Subscriber Inactivity
   * If a subscriber's mobile device is inactive for an extended period, the network may send a Purge Message to free up resources.
2. Network Detachment
   * When a subscriber turns off their device or removes the SIM card, the network recognizes the detachment and sends a Purge Message.
3. Network Congestion
   * During high traffic periods, the network might purge inactive subscribers to manage congestion effectively.
4. Roaming Updates
   * If a subscriber roams to a different network and becomes unreachable, the home network sends a Purge Message to update the subscriber's status.
5. Failed Location Updates
   * If the network repeatedly fails to update the subscriber's location, it may trigger a Purge Message to indicate the subscriber is unreachable.

## Purpose of Purge Messages

#### Resource Management

Frees up network resources by removing inactive or unreachable subscribers.

#### Accurate Billing

Ensures accurate billing by updating the status of unreachable subscribers.

#### Network Efficiency

Maintains overall network efficiency by managing active subscriber connections.

#### Roaming Management

Helps in managing roaming subscribers and ensuring correct status updates across different networks.

## Conclusion

Purge Messages play a crucial role in maintaining the efficiency and reliability of mobile networks. By managing inactive or unreachable subscribers, these messages help optimize resource allocation and ensure accurate subscriber status updates.

## How Do You Know Your SIM Was Purged? Meet the SIM Inactivity Insight by Monogoto.

### **SIM Inactivity as a Service**

Insight Event Name: SIM Inactivity

#### Description:&#x20;

The "SIM Inactivity” insight designed to monitor and manage SIM card activity on your account, ensuring optimal performance and connectivity. This service is specifically triggered by a purge message and tracks SIM card data usage to identify inactive SIMs.

#### Trigger Event:&#x20;

The service is activated when any purge message is received in the General Events log. A purge message indicates that a specific SIM card has not been active and requires further action.

#### Criteria for Inactivity:

* Usage Check: The service checks for any usage for each individual SIM card over the last 24 hours.
* Inactivity Confirmation: If no usage is detected within the 24-hour period, the SIM is flagged as inactive.

#### Service Process:

1. Event Detection: The system continuously monitors the General Events log for purge messages related to SIM activity.
2. Inactivity Analysis: Upon detecting a purge message, the system checks the data usage records for the associated SIM card over the past 24 hours.
3. Inactivity Notification: If the SIM card is confirmed to be inactive (no data usage detected), a notification is generated and sent as an insight event into your inbox on the [Monogoto hub](http://hub.monogoto.io).

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXfzpDyUMkxMqxcSOx6U7D0tZc-2Q2fIjitSITcerQnklzXH50jvBD30lQouVj8EtBSEcNxBRHNuuyTBxDqA1zqYhHrzbsbUjHA0re5ZWdKTTGQzGQTGtx1nuRPfe1hbjOSEsUYlcxRUn1J30LCmJY7Q6L8361P55Vfurulsp-Lsw65inO1OU9w?key=KxuTD8CFIo4q4U22g9NW4A" alt=""><figcaption><p>Example of SIM inactivity events</p></figcaption></figure>

#### **Remedial Actions**

* Recommendations or automated actions (e.g., SIM reset, network settings adjustment) may be initiated to reactivate the SIM card.

#### Benefits:

* Proactive Monitoring: Ensures continuous oversight of SIM card activity, preventing prolonged periods of inactivity.
* Operational Efficiency: Helps identify and address issues with inactive SIMs promptly, maintaining optimal network performance.
* Resource Optimization: Allows for better management of network resources by identifying and rectifying inactive SIM cards.

#### How to Integrate This Insight Event into Your Email

1. Login to your account at[ hub.monogoto.io](https://hub.monogoto.io)
2. Go to the available integrations page and select the email integration
3. Add your email address
4. Open the events field and select SIM Inactivity
5. Press “Setup Email”

<figure><img src="https://3922449203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0mPxGpottOEfcucXOR%2Fuploads%2F9cImCQcGoiIOzDZ5ZEfS%2Fimage.png?alt=media&#x26;token=e8d1afc8-5065-4fb1-a7b1-b8c65a87296e" alt=""><figcaption><p>Webhook integration for SIM Inactivity</p></figcaption></figure>
