At 3 a.m. the operations dashboard glows green. The badge reads CONNECTED. On the far end of the circuit, a customer is saying “hello?” into silence.

Both facts are true. That is the entire point of RFC 3015.

Published in November 2000 as Megaco Protocol Version 1.0 — and issued as common text with ITU-T H.248 — the specification handed a physically decomposed multimedia gateway a precise, local language for media connection control. It also drew a line engineers have been tripping over ever since: a Context that is connected inside one gateway is not the same thing as a call that actually happened.

The short version

  • RFC 3015 modelled a Context as a Media Gateway’s local association of Terminations — topology, modes, commands and scoped identifiers included. It never defined that object as a universal call record.
  • Transaction ordering, audits and at-most-once retry memory established narrower execution facts. None of them proved external-path delivery, remote playout, or that two human beings had communicated.

The object lived inside one gateway

The connection model began with two abstractions. A Termination sourced or sank one or more media or control streams. A Context tied Terminations together and described their topology — who heard or saw whom — plus the mixing or switching behavior of larger groups.

That vocabulary was deliberately local. The Media Gateway minted each ContextID, and the value was unique only within that gateway. A Context could represent half of a two-party call, a conference arrangement, a waiting call, or some other media association. It was never a globally durable identity for “the call,” the subscriber, the billing event, or the human exchange.

The lifetimes made the distinction concrete. Physical Terminations, such as provisioned circuit channels, could persist for a long time. Ephemeral Terminations, such as representations of RTP flows, normally existed only for their use. The null Context held physical Terminations not associated with another Termination. Add could create an active Context implicitly; Subtract could return a physical Termination to the null Context or destroy an ephemeral one; Move could relocate a Termination. When the last Termination left, the Context vanished automatically.

A record that appears and disappears as a consequence of local commands is valuable operational state. It is not a permanent transcript of everything that happened to the service.

Topology and boundary mode answered different questions

RFC 3015 kept two ideas carefully apart: the topology within a Context, and the mode of a Termination. Topology described media relations among Terminations — both-way, one-way, or isolated paths among the objects the MG held. Mode described flow at the gateway’s own ingress or egress.

The distinction matters because “T1 can hear T2” in the gateway model is a programmed association, not a microphone report from a remote listener. The gateway can correctly switch an incoming circuit toward an outgoing packet stream while those packets are later dropped, delivered to the wrong remote socket, rejected, decoded badly, muted, or never rendered at all. Conversely, an audit may observe a local mode without reconstructing which external packets actually arrived during the interval.

The Context therefore occupied one reality layer: realised connection state at one controlled device. Session descriptions, transport addresses, RTP sequence and reception evidence, endpoint rendering and human understanding belonged to later layers with different custodians.

A transaction was not the whole conversation

Commands nested inside Actions, and Actions inside Transactions. An Action normally addressed one Context. Commands inside the same transaction executed in order — giving the controller a way to request a coherent local change and receive results for the commands that succeeded, or an error where processing failed.

Across different transactions, however, ordering was not automatic. The specification told controllers who wanted consistent operation to impose discipline themselves. For one Termination there should normally be at most one outstanding Add, Modify or Move, unless the commands shared a transaction. Subtract could intervene. A wildcarded removal could step ahead of pending additions, obliging the controller to clean up the stragglers and delay new additions until the removal was acknowledged.

The ownership was clear: the MG executed commands; the MGC owned the sequence of intentions. A successful reply established what the gateway reported about that transaction. It did not prove a second controller shared the same desired state, or that future transactions would preserve the association.

TransactionPending was narrower still. It said processing remained active and incomplete. It restarted a requester’s timer; it did not predict success, reserve an end-to-end path, or attest to media flow.

Auditing did not freeze time

Megaco supplied two useful but different queries. AuditValue returned current property, event, signal and statistic values. AuditCapabilities returned possible values. Capability was not present state, and present state was not outcome.

Wildcarding added another limit. A response could contain a union across matching Terminations. That cut traffic, but a union did not show which member supplied which possible value. The answer remained evidence about the requested scope, not a complete per-object history.

Most importantly, RFC 3015 said that AuditValue and AuditCapabilities were not subject to command sequencing. An audit taken while mutations were in flight required a time and ordering context. A value could be accurate at the instant the MG observed it yet stale relative to the controller’s next decision. Calling the response “current” did not make it a linearizable snapshot of every related transaction.

Subtract offered statistics collected during a Termination’s participation in a Context. Those figures could help reconstruct local use before the association disappeared. They still reported from the gateway’s side. A byte or packet count there did not establish remote receipt, intelligible playout, or a completed human exchange.

At-most-once protected a command boundary

UDP could lose requests or replies. Repeating most Megaco commands without protection was unsafe because many were not idempotent: executing an Add twice could make gateway state unpredictable. RFC 3015 therefore required at-most-once behavior.

Peers kept recent replies and currently executing transactions. They compared a transaction identifier, scoped with the sender identity, against that memory. A completed duplicate received the remembered response; an in-progress duplicate was not executed again and could receive TransactionPending. Response acknowledgements allowed stored replies to be released while identifiers remained long enough to discard delayed duplicates.

The guarantee had a stated custody boundary. It depended on retained memory, identifier uniqueness, LONG-TIMER, and the current operating epoch. After expiry or restart, the old evidence did not speak forever. Even when it worked perfectly, at-most-once meant “this gateway transaction was not re-executed within the protocol’s comparison window.” It did not mean “the call happened exactly once.”

TCP did not abolish the distinction. RFC 3015 observed that transaction requests or responses could still be lost around failures and recommended application-level handling. A reliable byte stream could carry a command; it could not preserve the gateway’s lost process memory or certify downstream media.

Security guarded authority, not outcome

Unauthorized Megaco commands could establish or disrupt calls, so the RFC required protection of the control connection in IP environments and specified IPsec. Origin authentication, integrity, anti-replay and confidentiality protected the instruction channel. They did not turn the controller into the remote listener, or the authenticated request into proof that the service worked.

The standards history reinforces the limited claim. RFC 3015 met the architecture requirements in RFC 2805 and was later obsoleted by RFC 3525. RFC 3435 placed MGCP on a separate Informational line and pointed toward Megaco/H.248 as the standards-based approach. Those records explain the protocol family. They do not tell us which product deployed which edition, whether two vendors interoperated, or how many calls succeeded.

The lesson was sharper than the badge

The durable achievement was never a “connected” label. Megaco gave control software a common way to name a local association, program it, inspect it, order changes within a transaction, and contain duplicate commands. It also left enough boundaries visible to resist a larger claim. A Context could be connected without proving the call.

Megaco’s real success was not that it defined a call. It was that it defined a smaller, executable object — and had the discipline to leave the rest of reality outside its name. In an industry addicted to green badges, that is a rare and useful kind of honesty.

Sources