Abstract:
Example methods and systems for requesting information from the Internet Domain Name System (DNS) based on a destination and one or more codecs of a source specified within a computer-readable invitation to establish a communication session are described. A source gateway or a user agent device can generate the invitation. A DNS record associated with the destination can specify codecs used by the destination or a gateway the destination uses to carry out communication sessions. A proxy server that received the invitation and the DNS record can select a gateway that uses a codec that matches a codec used and preferred by a gateway. The proxy server can forward the codec to selected gateway, in particular, to an IP address and port associated with the selected gateway, for notifying the destinations of the requested communication session. The invitations can comprise SIP INVITE messages.