[Freeswitch-trunk] [commit] r13628 - freeswitch/trunk/src

FreeSWITCH SVN mrene at freeswitch.org
Thu Jun 4 18:46:10 PDT 2009


Author: mrene
Date: Thu Jun  4 20:46:09 2009
New Revision: 13628

Log:
oops

Modified:
   freeswitch/trunk/src/switch_channel.c

Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c	(original)
+++ freeswitch/trunk/src/switch_channel.c	Thu Jun  4 20:46:09 2009
@@ -1460,7 +1460,9 @@
 	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;
 }



More information about the Freeswitch-trunk mailing list