Replace Internal IP with External IP in From Header
I followed the example in Freeswitch behind NAT ( http://wiki.freeswitch.org/wiki/NAT_Traversal#Freeswitch_behind_NAT). 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.
Try current trunk, I think this is fixed now, if not, please open a bug on jira.FreeSWITCH.org On Jan 26, 2010, at 8:38 PM, Code Ghar wrote:
I followed the example in Freeswitch behind NAT (http://wiki.freeswitch.org/wiki/NAT_Traversal#Freeswitch_behind_NAT). 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.
participants (2)
-
Code Ghar
-
Michael Jerris