add sip_subject channel var when header is there.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5089 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-05-04 22:38:24 +00:00
parent e42a8c3cab
commit 5d628cda03
1 changed files with 4 additions and 0 deletions

View File

@ -1820,6 +1820,10 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
switch_channel_set_variable(channel, "sip_call_id", tech_pvt->call_id);
}
if (sip->sip_subject && sip->sip_subject->g_string) {
switch_channel_set_variable(channel, "sip_subject", sip->sip_subject->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);