[Freeswitch-svn] [commit] r10596 - freeswitch/trunk/src/mod/endpoints/mod_loopback

FreeSWITCH SVN mikej at freeswitch.org
Thu Dec 4 09:41:03 PST 2008


Author: mikej
Date: Thu Dec  4 12:41:02 2008
New Revision: 10596

Log:
MODENDP-157 Add other loopback leg uuid to mod_loopback channels

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c	Thu Dec  4 12:41:02 2008
@@ -257,6 +257,10 @@
 			switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
 			goto end;
 		}
+
+		switch_channel_set_variable(channel,"other_loopback_leg_uuid",switch_channel_get_uuid(b_channel));
+		switch_channel_set_variable(b_channel,"other_loopback_leg_uuid",switch_channel_get_uuid(channel));
+
 	}
 	
 	if (tech_pvt->other_session) {



More information about the Freeswitch-svn mailing list