]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODENDP-180
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 28 Jan 2009 13:43:32 +0000 (13:43 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 28 Jan 2009 13:43:32 +0000 (13:43 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11536 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_loopback/mod_loopback.c

index 0e463b858bffda262a1db04ec075f18e6e08ef86..398faa38633e6d011def38ef411b103dd60582f9 100644 (file)
@@ -276,7 +276,7 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
                goto end;
        }
 
-       switch_channel_set_variable(channel, "loopback_leg", switch_test_flag(tech_pvt, TFLAG_OUTBOUND) ? "B" : "A");
+       switch_channel_set_variable(channel, "loopback_leg", switch_test_flag(tech_pvt, TFLAG_BLEG) ? "B" : "A");
        switch_channel_set_state(channel, CS_ROUTING);
 
  end: