If your NAT router can loop back to itself, then there wont be any significant change in quality of voice since RTP within the same internal network will only traverse the NAT router. There is no standard way to do this except use the alt parameter in SDP so that the remote endpoint can choose whether to send to the external ip or the internal ip respectively. Won't always work though because you don't have control whether the callee would decide to use the internal ip to save a hop or not. Of course the standard answer is you can always reinvite.
On Wednesday, 08 September, 2010 11:46 AM, Josh Savage wrote: > Hi, > > I was wondering if two SIP clients are on the same local network using > an external SIP server what the best way is to switch to a local port > for RTP rather than using the external IP address. Most cases I need > to have the external IP in the SDP because they are on different > external IPs. > > I understand ICE is one solution but is there a simpler way for > example, putting an extra connection field and using this if the > clients see they have the same external IP or should I use reinvite > with the local ip? > > Thanks in advance. > > Josh > _______________________________________________ > Sip-implementors mailing list > [email protected] > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors > > > _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
