> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sonoransoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Calls

> Understand emergency and dispatch call sources, filtering, fields, assignments, pagination, and privacy.

Sonoran Station Displays provides two call pages because SonoranCADFiveM exposes two separate caches.

## Emergency Calls

Source:

```lua theme={null}
exports["sonorancad"]:GetEmergencyCache()
```

Emergency entries are normalized as `EMERGENCY_CALL` while they remain in the cache. The default title is `Emergency Call` when `isEmergency` is true, otherwise `Incoming Call`. Default priority is `1` for an emergency and `0` for another incoming call.

![Sonoran Station Displays Emergency Calls page rendered with sample data](https://docs-assets.sonoransoftware.com/sha256/4b/4b6bac1f8d7ded87363554187b815324bc030534210e348760a7e438efaf7dfd.webp)

*The production Emergency Calls renderer using controlled sample data.*

## Dispatch Calls

Source:

```lua theme={null}
exports["sonorancad"]:GetCallCache()
```

Dispatch entries are normalized as `DISPATCH_CALL`. Status `2` (`CLOSED`) is removed from the display cache. Default title is `Dispatch Call`.

![Sonoran Station Displays Dispatch Calls page rendered with sample data](https://docs-assets.sonoransoftware.com/sha256/37/3749a80f0e0c1ce8f158a1d243764c5452ba6efe052b5250577848c3cb9899f0.webp)

*The production Dispatch Calls renderer using controlled sample data.*

## Normalized fields

The adapter can normalize:

* Call ID, kind, title, and code
* Numeric priority
* Status
* Address/location and postal
* Description
* Assigned unit IDs and callsigns
* Emergency caller text when enabled
* World coordinates from `metaData`
* Created/updated values
* Service classification

## Visible call cards

Version 1.0.0 renders:

* Priority badge when `VisibleCallFields.priority = true`
* Call code when present
* Title
* Address and appended postal when `VisibleCallFields.address = true`
* Description when `VisibleCallFields.description = true`
* Assigned callsigns or `AWAITING ASSIGNMENT` when `VisibleCallFields.assignedUnits = true`

Titles and assigned-unit lines truncate with an ellipsis. Descriptions are clipped to a fixed two-line-height area.

Current renderer limitations:

* Status is normalized and sent but is not displayed.
* `VisibleCallFields.postal` is not an independent switch; postal follows the address block.
* Caller text is not rendered even if normalization is enabled.

These are implementation limitations, not hidden fields elsewhere in the customer UI.

Keep `VisibleCallFields.caller = false`.

## Service filtering

A call is classified from its assigned normalized units.

| Assignment | Call service |
| - | - |
| LEO only | `LEO` |
| Fire/EMS only | `FIRE_EMS` |
| Both | `BOTH` |
| None or only unclassified units | `OTHER` |

Filtering:

* LEO displays show `LEO` and `BOTH`.
* Fire/EMS displays show `FIRE_EMS` and `BOTH`.
* Both displays show every call, including `OTHER`.
* Optional fallback settings can show `OTHER` on a single-service display.

The resource does not infer service from call titles or department text.

## Priorities and sorting

Priority is a number and receives a `priority-<number>` CSS class. The shipped renderer does not reorder calls. Calls retain the normalized cache iteration order; do not depend on priority or creation-time sorting.

## Pagination and maximum calls

The default maximum is eight call cards and the allowed per-display range is 2–30. Large lists automatically move to the next list page every 10 seconds.

## Stale calls and removal

Version 1.0.0 does not age out or visually mark individual calls by timestamp.

* Dispatch calls disappear when closed or removed from `GetCallCache()`.
* Emergency calls disappear when removed from `GetEmergencyCache()`.
* Cache deltas remove the client entry.
* A failed cache call changes the connection to disconnected.

## Calls without coordinates

A call without usable X/Y values still appears on the corresponding call page. It does not receive a Live Map marker.

## Sensitive information

The board is an in-world display and viewing is public. Review all configured fields before enabling a page on displays accessible to players.

Recommended public-facing configuration:

```lua theme={null}
Config.VisibleCallFields = {
    priority = true,
    status = true,
    address = true,
    postal = true,
    description = true,
    assignedUnits = true,
    caller = false
}
```

Disable description or address if those values are inappropriate for the display's audience.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.