]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
flip cid on pickup endpoint
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 18 Oct 2012 21:20:19 +0000 (17:20 -0400)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 18 Oct 2012 21:20:28 +0000 (17:20 -0400)
src/mod/applications/mod_dptools/mod_dptools.c

index fae029bc611d99a76b739f6ef2898cf9f7aaa887..158413b9e017de90d7ed15912f7bb6e6ed730d0c 100755 (executable)
@@ -3667,6 +3667,8 @@ SWITCH_STANDARD_APP(pickup_function)
                        caller_profile->callee_id_name = name;
                        caller_profile->callee_id_number = num;
                        
+                       switch_channel_flip_cid(channel);
+
                        if (switch_event_create(&event, SWITCH_EVENT_CALL_UPDATE) == SWITCH_STATUS_SUCCESS) {
                                const char *uuid = switch_channel_get_partner_uuid(channel);
                                switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Direction", "RECV");