From: Anthony Minessale Date: Fri, 14 Mar 2014 18:13:22 +0000 (-0500) Subject: FS-6350 --resolve Parse params out of user portion of caller_id and save them to... X-Git-Tag: v1.2.23~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d35604369c142d908b314dc9853fbfeb1fbdda0;p=thirdparty%2Ffreeswitch.git 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 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index e0ddb82cb3..f0625e6a22 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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);