mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-06 18:30:01 +00:00
FS-6350 --resolve Parse params out of user portion of caller_id and save them to sip_name_params
Conflicts: src/mod/endpoints/mod_sofia/sofia.c
This commit is contained in:
parent
90da4deb1e
commit
2d35604369
@ -7848,6 +7848,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
|
||||
char *sql = NULL;
|
||||
char *acl_context = NULL;
|
||||
int broken_device = 0;
|
||||
char *name_params = NULL;
|
||||
|
||||
profile->ib_calls++;
|
||||
|
||||
@ -8280,6 +8281,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