]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3276 --resolve please attach the diff next time, do not paste it into the comment...
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 29 Apr 2011 22:13:09 +0000 (17:13 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 29 Apr 2011 22:13:16 +0000 (17:13 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 54e95f2b2e18a4be26e8c64bec651d9b746904a6..36822608093fae409bf0d650f9498dfa7a8c11ca 100644 (file)
@@ -519,6 +519,14 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status,
                cause = sofia_glue_sip_cause_to_freeswitch(status);
        }
 
+       if (sip->sip_content_type && sip->sip_content_type->c_type) {
+               switch_channel_set_variable(channel, "sip_bye_content_type", sip->sip_content_type->c_type);
+       }
+
+       if (sip->sip_payload && sip->sip_payload->pl_data) {
+               switch_channel_set_variable(channel, "sip_bye_payload", sip->sip_payload->pl_data);
+       }
+
        switch_snprintf(st, sizeof(st), "%d", status);
        switch_channel_set_variable(channel, "sip_term_status", st);
        switch_snprintf(st, sizeof(st), "sip:%d", status);