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

Freeswitch SVN anthm at freeswitch.org
Fri Dec 28 18:03:32 EST 2007


Author: anthm
Date: Fri Dec 28 18:03:31 2007
New Revision: 7009

Modified:
   freeswitch/trunk/src/switch_channel.c

Log:
change event data

Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c	(original)
+++ freeswitch/trunk/src/switch_channel.c	Fri Dec 28 18:03:31 2007
@@ -954,14 +954,20 @@
 		switch_caller_profile_event_set_data(caller_profile, "Caller", event);
 	}
 
-	/* Index Originator's Profile */
-	if (originator_caller_profile) {
+	
+	if (originator_caller_profile && originatee_caller_profile) {
+		/* Index Originator's Profile */
 		switch_caller_profile_event_set_data(originator_caller_profile, "Originator", event);
-	}
 
-	/* Index Originatee's Profile */
-	if (originatee_caller_profile) {
+		/* Index Originatee's Profile */
 		switch_caller_profile_event_set_data(originatee_caller_profile, "Originatee", event);
+	} else {
+		/* Index Originator's Profile */
+		if (originator_caller_profile) {
+			switch_caller_profile_event_set_data(originator_caller_profile, "Other-Leg", event);
+		} else if (originatee_caller_profile) { /* Index Originatee's Profile */
+			switch_caller_profile_event_set_data(originatee_caller_profile, "Other-Leg", event);
+		}
 	}
 	x = 0;
 	/* Index Variables */



More information about the Freeswitch-trunk mailing list