I followed the example in Freeswitch behind NAT (<a href="http://wiki.freeswitch.org/wiki/NAT_Traversal#Freeswitch_behind_NAT" target="_blank">http://wiki.freeswitch.org/wiki/NAT_Traversal#Freeswitch_behind_NAT</a>).
In the Contact header of invite sent to an external gateway, I see
sip:extension@ExternalIP:port but in the From header I see
sip:extension@InternalIP. How can I change the From header of SIP
message so that it displays the external IP instead of internal IP? The
reason for doing this is that the external gateway authenticates and
authorizes call based on the IP in From header. They expect an external
IP and not an internal IP.