From 07272e864e2a4870567bc4609c5aa0ae14ef2a41 Mon Sep 17 00:00:00 2001 From: Brian West Date: Fri, 7 Mar 2014 12:56:00 -0600 Subject: [PATCH] FS-6321 --resolve Copy URI params from Refer-To header into custom header in subsequent INVITE sip_h_X-FS-Refer-Params is set to show up in the INVITE as X-FS-Refer-Params --- src/mod/endpoints/mod_sofia/sofia.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 8344a842b1..413fe83d15 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -7702,6 +7702,10 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t SIPTAG_SUBSCRIPTION_STATE_STR("terminated;reason=noresource"), SIPTAG_PAYLOAD_STR("SIP/2.0 200 OK\r\n"), SIPTAG_EVENT_STR(etmp), TAG_END()); } + + if (refer_to->r_url->url_params) { + switch_channel_set_variable(b_channel, "sip_h_X-FS-Refer-Params", refer_to->r_url->url_params); + } switch_ivr_session_transfer(b_session, exten, NULL, NULL); switch_core_session_rwunlock(b_session);