A Call Agent Wakes Up With Amnesia

Somewhere in 2003, a Call Agent comes back from a failover with no memory of the gateway it is supposed to be running. The gateway in front of it holds hundreds — sometimes thousands — of endpoints, and the agent needs to know which ones exist, what state they are in, and which are mid-call. Base MGCP offered a remedy that felt like a roll call in a very large building: inspect one endpoint at a time. RFC 3624 handed the agent a clipboard instead — a Bulk Audit package that let it ask about a whole family of endpoints at once. The clipboard came with a catch, and the catch is the whole story.

What the Bulk Audit Package Actually Did

RFC 3624 was an Informational RFC, and its IESG note was refreshingly blunt: it distinguished MGCP from the standards-track Megaco alternative in RFC 3015. Read it as a historical recovery interface, not as proof that any named carrier ever deployed it. It sat between MGCP in RFC 2705 and the later MGCP 1.0 in RFC 3435, and it solved a narrow, practical problem: how a recovering Call Agent reconstructs its picture of a gateway without interrogating every endpoint by hand.

200 OK Is a Receipt, Not an Inventory

The trap is the success code. A gateway could answer with 200 OK and still have counted only part of the gateway. If the full report would blow past the maximum datagram size, the gateway returned fewer endpoints than asked for and appended BA/NE — the next local endpoint name. The Call Agent dropped that name into a fresh BA/SE request and kept going. So 200 OK acknowledged the transaction; BA/NE confessed that the larger audit was still unfinished. A success code and a complete answer are two different things, and RFC 3624 is one of the cleanest places to learn it. (RFC 3624, §§2.1.1.1, 2.1.1.7)

Patterns Are Not Populations

The package split questions that a lazy wildcard would blur together. BA/Z asked for the configured naming pattern; BA/X asked which non-persistent virtual endpoints were instantiated right now. A convention like conference/* can describe a universe of possible names while only a scattered handful actually exist. Confuse the pattern for the population and you have turned a rule about what might be into a claim about what is.

Counts, States, and the Map That Keeps Them Honest

For endpoints that do exist, BA/C returned connection counts in order — one hexadecimal digit each, so zero through fifteen, with Z meaning “more than fifteen,” not an exact figure. BA/M carried connection modes. BA/S tested requested conditions and answered T, F, or O for out of service — a compact logical-OR across the conditions you asked about, not a portrait of every connection. The RFC is explicit that the endpoint-state indicator says nothing about connection state. And none of these values tells you whether a call actually completed, whether media flowed, whether the application worked, or whether a customer could reach the service.

Counts and states needed a second boundary: correspondence. BA/EL had to come first, naming the endpoints that the following BA/C or BA/S positions described. This mattered most for virtual endpoints whose instantiated ranges could be disjoint. A vector without its endpoint map can parse perfectly and still be assigned to the wrong endpoint. When counts and states were requested together, they had to cover the same set. (RFC 3624, §§2.1.1.8, 2.1.2)

Continuation Is Not Consistency

Here is the part that bites in production. RFC 3624 defines how to resume a large audit; it does not define an atomic snapshot across requests. The pages can describe observations taken at different moments, and the spec offers no snapshot epoch to freeze them into one view. In failover that omission matters: the agent may recover a useful control-plane picture without having proved it is complete, simultaneous, or equivalent to service. The distinction rhymes with a broader operational principle in Running-Code Primacy — abstractions must stay answerable to what the running system actually does. (That essay is a disclosed analytical lens here, not evidence about any MGCP implementation.)

Why the Modesty Matters

The grammar of the report was modest, and the modesty was the point. It told the Call Agent what the gateway returned, which names those values belonged to, and where the next request should start. It did not dress a recovery query up as an end-to-end service test. A control view is evidence about control state — nothing more. The operator still owes separate evidence for connections, media, applications, and customer outcomes.

So the next time a gateway answers 200 OK, resist the urge to close the ticket. Ask where the cursor is, ask which endpoints the numbers belong to, and ask whether the pages you collected were ever one picture. The RFC never promised they were. It only promised you could keep asking.