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:
parent
e7bc12df8f
commit
6ed94bdaa1
|
@ -2277,6 +2277,10 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
|||
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) {
|
||||
switch_channel_set_variable(channel, "sip_via_host", sip->sip_via->v_host);
|
||||
|
|
Loading…
Reference in New Issue