[Freeswitch-svn] [commit] r9638 - freeswitch/trunk/src/mod/endpoints/mod_loopback
Freeswitch SVN
anthm at freeswitch.org
Wed Sep 24 16:20:33 EDT 2008
Author: anthm
Date: Wed Sep 24 16:20:33 2008
New Revision: 9638
Modified:
freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c
Log:
update
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 Wed Sep 24 16:20:33 2008
@@ -220,6 +220,7 @@
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 @@
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 @@
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';
More information about the Freeswitch-svn
mailing list