add sip_local_network_addr var to see the ip of the sip profile a call came in or went out on for cdr (FSCORE-562)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17073 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2010-03-23 03:59:49 +00:00
parent 9f5bf3b592
commit 9ad6a089cd
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -3320,6 +3320,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
}
}
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);