Patent ID: 7355988

Claim:
A method in an application server, the method comprising: receiving, by the application server, an initiation request from a gateway configured for receiving incoming Voice over IP calls, including receiving the initiation request via a Voice over IP call control channel between the application server and the gateway; initiating by the application server an instance of an application process configured for executing a prescribed sequence of messaging operations for a first type of incoming message, in response to reception of the initiation request, the initiating including writing first data, having been received from the gateway via a Voice over IP media channel, into a first data structure that identifies information based on execution of the instance; selectively setting by the application server a prescribed variable based on receiving a reject message from the gateway via the Voice over IP call control channel; and selectively terminating, by the application server, the instance prior to completing the sequence of messaging operations based on detecting, at a prescribed location in the prescribed sequence, the prescribed variable set during execution of the instance and that specifies the prescribed sequence of message operations are not to be performed based on the prescribed variable having been set to specify that the incoming message corresponds to a second message type incompatible with the first type, the selectively terminating including terminating execution of the operations subsequent to the prescribed location and removing the first data from the first data structure.