]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODENDP-157 Add other loopback leg uuid to mod_loopback channels
authorMichael Jerris <mike@jerris.com>
Thu, 4 Dec 2008 17:41:02 +0000 (17:41 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 4 Dec 2008 17:41:02 +0000 (17:41 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10596 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_loopback/mod_loopback.c

index e74f8c0ff430e5de44c06ca898785b5e8b2611a4..e0e7524ca2619e4ada34933ce54c2b60123004d1 100644 (file)
@@ -257,6 +257,10 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
                        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) {