]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add sip_subject channel var when header is there.
authorMichael Jerris <mike@jerris.com>
Fri, 4 May 2007 22:38:24 +0000 (22:38 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 4 May 2007 22:38:24 +0000 (22:38 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5089 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index cee1bc603740da9db4babd57ff6b89b2c259c3ac..ac5918d1bab2db06059c0216b4f7a63146d7567e 100644 (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);