From: Mathieu Rene Date: Fri, 5 Jun 2009 01:46:09 +0000 (+0000) Subject: oops X-Git-Tag: v1.0.4~614 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60ec88985aebac18e3168f4ff96a48a10edeae39;p=thirdparty%2Ffreeswitch.git oops git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13628 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_channel.c b/src/switch_channel.c index f6698a84f5..b158ed4221 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -1460,7 +1460,9 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_channel_get_caller_profile(swit switch_caller_profile_t *profile; switch_assert(channel != NULL); switch_mutex_lock(channel->profile_mutex); - profile = channel->hunt_caller_profile ? channel->hunt_caller_profile : channel->caller_profile; + if ((profile = channel->caller_profile) && profile->hunt_caller_profile) { + profile = profile->hunt_caller_profile; + } switch_mutex_unlock(channel->profile_mutex); return profile; }