add user_agent channel var so we can cdr it if we needed

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6959 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2007-12-22 20:51:57 +00:00
parent e7bc12df8f
commit 6ed94bdaa1
1 changed files with 4 additions and 0 deletions

View File

@ -2276,6 +2276,10 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
if (sip->sip_subject && sip->sip_subject->g_string) {
switch_channel_set_variable(channel, "sip_subject", sip->sip_subject->g_string);
}
if (sip->sip_user_agent && !switch_strlen_zero(sip->sip_user_agent->g_string)){
switch_channel_set_variable(channel, "sip_user_agent", sip->sip_user_agent->g_string);
}
if (sip->sip_via) {
if (sip->sip_via->v_host) {