Patent ID: 7447194

Claim:
A media gateway controller in a packet communication network, the media gateway controller comprising: an interface configured to receive a first plurality of update messages from a first plurality of application servers of a first enterprise network wherein the first plurality of update messages indicate a status of the first plurality of application servers, receive a second plurality of update messages from a second plurality of application servers of a second enterprise network wherein the second plurality of update messages indicate a status of the second plurality of application servers, and receive a third plurality of update messages from a plurality of gateways wherein the third plurality of update messages indicate a status of the gateways and wherein the interface is configured to receive a call setup request for a call wherein the call setup request indicates a calling party and a one of the first and second enterprise networks; a processor configured to process the update messages to update a routing table based on the status of the first and second plurality of application servers and the plurality of gateways, wherein the processor is further configured to process the call setup request to select the first plurality of application servers based on the one enterprise network indicated in the call setup request and select the one application server of the first plurality of application servers based on the status of the first plurality of application servers; and wherein the interface is further configured to transfer a query indicating the calling party to the one application server and to receive a response from the one application server indicating whether the call is allowed based on a calling plan for the calling party stored by the one application server.