Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (17072 => 17073)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2010-03-23 01:20:48 UTC (rev 17072)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2010-03-23 03:59:49 UTC (rev 17073)
@@ -3320,6 +3320,7 @@
}
}
+ switch_channel_set_variable_printf(nchannel, "sip_local_network_addr", "%s", profile->extsipip ? profile->extsipip : profile->sipip);
switch_channel_set_variable(nchannel, "sip_profile_name", profile_name);
sofia_glue_get_user_host(switch_core_session_strdup(nsession, tech_pvt->dest), NULL, &tech_pvt->remote_ip);
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (17072 => 17073)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2010-03-23 01:20:48 UTC (rev 17072)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2010-03-23 03:59:49 UTC (rev 17073)
@@ -3644,6 +3644,7 @@
sofia_glue_get_addr(nua_current_request(nua), network_ip, sizeof(network_ip), &network_port);
+ switch_channel_set_variable_printf(channel, "sip_local_network_addr", "%s", profile->extsipip ? profile->extsipip : profile->sipip);
switch_channel_set_variable(channel, "sip_reply_host", network_ip);
switch_channel_set_variable_printf(channel, "sip_reply_port", "%d", network_port);
@@ -5909,6 +5910,7 @@
channel = tech_pvt->channel = switch_core_session_get_channel(session);
+ switch_channel_set_variable_printf(channel, "sip_local_network_addr", "%s", profile->extsipip ? profile->extsipip : profile->sipip);
switch_channel_set_variable_printf(channel, "sip_network_ip", "%s", network_ip);
switch_channel_set_variable_printf(channel, "sip_network_port", "%d", network_port);