From: Anthony Minessale Date: Wed, 18 Aug 2010 00:26:19 +0000 (-0500) Subject: doh X-Git-Tag: v1.2-rc1~517 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c44a097156b98074863b77d78809f32c076d8e68;p=thirdparty%2Ffreeswitch.git doh --- diff --git a/src/switch_channel.c b/src/switch_channel.c index 2ce9a80a35..6f33fa9fe5 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -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);