]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 24 Sep 2008 20:20:33 +0000 (20:20 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 24 Sep 2008 20:20:33 +0000 (20:20 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9638 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_loopback/mod_loopback.c

index 9b8a89f0fbdda659957886a048e24ef41219ed17..0986760d0cf11d8a71d920a006aa125bf6e82a09 100644 (file)
@@ -220,6 +220,7 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
 
                
                caller_profile = switch_caller_profile_clone(b_session, tech_pvt->caller_profile);
+               caller_profile->source = switch_core_strdup(caller_profile->pool, modname);
                switch_channel_set_caller_profile(b_channel, caller_profile);
                b_tech_pvt->caller_profile = caller_profile;
                switch_channel_set_state(b_channel, CS_INIT);
@@ -252,13 +253,9 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
                goto end;
        }
 
-       
-       
-       //switch_channel_set_flag(tech_pvt->other_channel, CF_ACCEPT_CNG);
 
+       switch_channel_set_variable(channel, "loopback_leg", switch_test_flag(tech_pvt, TFLAG_OUTBOUND) ? "B" : "A");
        switch_channel_set_state(channel, CS_ROUTING);
-       
-
 
  end:
 
@@ -588,6 +585,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
                        char *dialplan = NULL, *context = NULL;
 
                        caller_profile = switch_caller_profile_clone(*new_session, outbound_profile);
+                       caller_profile->source = switch_core_strdup(caller_profile->pool, modname);
                        if ((context = strchr(caller_profile->destination_number, '/'))) {
                                *context++ = '\0';