mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
FS-6350 --resolve Parse params out of user portion of caller_id and save them to sip_name_params
This commit is contained in:
parent
e37616e36d
commit
89f9490710
@ -8215,6 +8215,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
|
||||
const char *r_sdp = NULL;
|
||||
int is_tcp = 0, is_tls = 0;
|
||||
const char *uparams = NULL;
|
||||
char *name_params = NULL;
|
||||
|
||||
|
||||
if (sip && sip->sip_contact && sip->sip_contact->m_url && sip->sip_contact->m_url->url_params) {
|
||||
@ -8682,6 +8683,11 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
|
||||
|
||||
if (from_user) {
|
||||
check_decode(from_user, session);
|
||||
|
||||
if ((name_params = strchr(from_user, ';'))) {
|
||||
*name_params++ = '\0';
|
||||
switch_channel_set_variable(channel, "sip_name_params", name_params);
|
||||
}
|
||||
}
|
||||
|
||||
extract_header_vars(profile, sip, session, nh);
|
||||
|
Loading…
x
Reference in New Issue
Block a user