]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 18 Aug 2010 00:26:19 +0000 (19:26 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 18 Aug 2010 00:26:28 +0000 (19:26 -0500)
src/switch_channel.c

index 2ce9a80a351d7da36b0b27f678de77539267eacd..6f33fa9fe55c396899e83df649d2b20ee3240819 100644 (file)
@@ -2021,9 +2021,10 @@ SWITCH_DECLARE(void) switch_channel_set_hunt_caller_profile(switch_channel_t *ch
        switch_assert(channel->caller_profile != NULL);
 
        switch_mutex_lock(channel->profile_mutex);
-       caller_profile->direction = channel->direction;
+
        channel->caller_profile->hunt_caller_profile = NULL;
        if (channel->caller_profile && caller_profile) {
+               caller_profile->direction = channel->direction;
                channel->caller_profile->hunt_caller_profile = caller_profile;
        }
        switch_mutex_unlock(channel->profile_mutex);