]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
addtl update to last commit
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Aug 2011 20:43:07 +0000 (15:43 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Aug 2011 20:43:07 +0000 (15:43 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 2338e0a25b1e09fbf49b2fea359b58c431982c48..87cb19dfbe43ddd4bdd14fbbb4dd0611bcc41bdc 100644 (file)
@@ -742,18 +742,6 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
                goto end;
        }
 
-       if (switch_event_create(&event, SWITCH_EVENT_CALL_UPDATE) == SWITCH_STATUS_SUCCESS) {
-               const char *uuid = switch_channel_get_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE);
-               switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Direction", "RECV");
-               switch_channel_set_profile_var(channel, "callee_id_name", name);
-               switch_channel_set_profile_var(channel, "callee_id_number", number);
-               if (uuid) {
-                       switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Bridged-To", uuid);
-               }
-               switch_channel_event_set_data(channel, event);
-               switch_event_fire(&event);
-       }
-
        caller_profile = switch_channel_get_caller_profile(channel);
 
        if (!strcmp(caller_profile->callee_id_name, name) && !strcmp(caller_profile->callee_id_number, number)) {
@@ -769,6 +757,20 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
                }
        }
 
+
+       if (switch_event_create(&event, SWITCH_EVENT_CALL_UPDATE) == SWITCH_STATUS_SUCCESS) {
+               const char *uuid = switch_channel_get_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE);
+               switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Direction", "RECV");
+               if (uuid) {
+                       switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Bridged-To", uuid);
+               }
+               switch_channel_event_set_data(channel, event);
+               switch_event_fire(&event);
+       }
+
+
+
+
        if (send) {
                sofia_send_callee_id(session, NULL, NULL);
        }