]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6350 --resolve Parse params out of user portion of caller_id and save them to...
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 14 Mar 2014 18:13:22 +0000 (13:13 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 14 Mar 2014 18:19:11 +0000 (13:19 -0500)
Conflicts:
src/mod/endpoints/mod_sofia/sofia.c

src/mod/endpoints/mod_sofia/sofia.c

index e0ddb82cb39a4dc90fab90c1cb64540760e1e65c..f0625e6a22e87da045c6623aa20f1723b865c3e4 100644 (file)
@@ -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);