Patent ID: 8204065

Claim:
A method comprising: receiving, at a first device, a Session Initiation Protocol (SIP) message from a second device, wherein: (i) the first device comprises a first interface and a second interface, wherein the first interface connects the first device with a first local area network and the second interface connects the first device with a second network, (ii) the first device connects the first local area network to the second network, (iii) a header field of the Session Initiation Protocol (SIP) message comprises a local address and a local port number usable by the first device on the first local area network, (iv) the Session Initiation Protocol (SIP) message comprises a Session Description Protocol (SDP) portion, wherein the Session Description Protocol (SDP) portion identifies a Real-Time Protocol (RTP) port number, and (v) the Session Initiation Protocol (SIP) message is used to set up a communication session between the second device and a third device, wherein the second device is part of the first local area network and the third device is part of the second network; in response to the receipt of the Session Initiation Protocol (SIP) message, randomly selecting, at the first device, a first port number and a second port number; associating, at the first device, the first port number and a global address usable on the second network with the local address and the local port number; associating, at the first device, the second port number Real-Time Protocol (RTP) port number; substituting, at the first device, the local address and the local port number in the header field of the Session Initiation Protocol (SIP) message with the global address and the first port number; substituting, at the first device, the Real-Time Protocol (RTP) port number in the Session Description Protocol (SDP) portion of the Session Initiation Protocol (SIP) message with the second port number; and transmitting, from the first device, the Session Initiation Protocol (SIP) message to the third device.