Patent ID: 8498222

Claim:
A method, comprising: receiving an Advanced Intelligent Network/Intelligent Network (AIN/IN) service request from a Voice over Internet Protocol (VoIP) subscriber device; generating an IP-based message for invoking the AIN/IN service, wherein the generating includes: determining whether a location data is to be added to the IP-based message based on a comparison between a telephone number pertaining to the VoIP subscriber device and a geographic location of the VoIP subscriber device; and adding the location data to the IP-based message in response to determining that a geographic location indicative of the telephone number does not match the geographic location of the VoIP subscriber device; routing the IP-based message to an AIN/IN service control device of a Public Switched Telephone Network (PSTN) via an IP signaling gateway; receiving an AIN/IN response from the AIN/IN service control device, wherein the AIN/IN response includes a routing number of a destination device that provides the AIN/IN service; and connecting the VoIP subscriber device to the AIN/IN service based on the AIN/IN response, wherein when the routing number of the destination device indicates a VoIP destination device, the VoIP subscriber device is connected to the AIN/IN service completely within a VoIP network.