add sip_refer_to_params

This commit is contained in:
Anthony Minessale 2014-03-01 00:13:29 +05:00
parent 38fe0a99d3
commit 2dc71d2d26
1 changed files with 4 additions and 0 deletions

View File

@ -7209,6 +7209,10 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t
exten = (char *) refer_to->r_url->url_user;
}
if (refer_to->r_url->url_params) {
switch_channel_set_variable(tech_pvt->channel, "sip_refer_to_params", refer_to->r_url->url_params);
}
switch_core_session_queue_indication(session, SWITCH_MESSAGE_REFER_EVENT);
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Process REFER to [%s@%s]\n", exten, (char *) refer_to->r_url->url_host);