Project "FreeSWITCH Source" received a push.

branch: master updated

       via: 4d12f0ce16d01193faec7846e34192e4e4c25069 (commit)
      from: 13dc6058bc8492df89cbdd9ab8b48ac5ca7e2981 (commit)


= COMMIT LOG ===========================================================
committer: Anthony Minessale
comments: 
finishing touches on last commit

diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c
index d1d6842..8a3d1b1 100644
--- a/src/mod/endpoints/mod_sofia/sofia.c
+++ b/src/mod/endpoints/mod_sofia/sofia.c
@@ -4161,15 +4161,20 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
 				switch_channel_set_variable(channel, "sip_user_agent", sip->sip_server->g_string);
 			}
 
-			sofia_glue_set_extra_headers(channel, sip, SOFIA_SIP_PROGRESS_HEADER_PREFIX);
+			if (status == 200) {
+				sofia_glue_set_extra_headers(channel, sip, SOFIA_SIP_RESPONSE_HEADER_PREFIX);
+			} else {
+				sofia_glue_set_extra_headers(channel, sip, SOFIA_SIP_PROGRESS_HEADER_PREFIX);
+			}
 
 			if (!(vval = switch_channel_get_variable(channel, "sip_copy_custom_headers")) || switch_true(vval)) {
 				switch_core_session_t *other_session;
 				
 				if (switch_core_session_get_partner(session, &other_session) == SWITCH_STATUS_SUCCESS) {
-					switch_ivr_transfer_variable(session, other_session, SOFIA_SIP_PROGRESS_HEADER_PREFIX_T);
 					if (status == 200) {
 						switch_ivr_transfer_variable(session, other_session, SOFIA_SIP_RESPONSE_HEADER_PREFIX_T);
+					} else {
+						switch_ivr_transfer_variable(session, other_session, SOFIA_SIP_PROGRESS_HEADER_PREFIX_T);
 					}
 					switch_core_session_rwunlock(other_session);
 				}
========================================================================

Summary of changes:
 src/mod/endpoints/mod_sofia/sofia.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630 --
FreeSWITCH Source