mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-27 05:34:17 +00:00
some refactoring and plumbing for 1.4
This commit is contained in:
1 parent
c7ccf84a14
commit
4a172402d2
37 files changed
+1729
-287
No files matched your search
@@ -231,6 +231,7 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
|
||||
switch_caller_profile_t *caller_profile;
|
||||
switch_event_t *vars = NULL;
|
||||
const char *var;
|
||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
||||
|
||||
tech_pvt = switch_core_session_get_private(session);
|
||||
switch_assert(tech_pvt != NULL);
|
||||
@@ -354,11 +355,12 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
|
||||
}
|
||||
|
||||
switch_channel_set_variable(channel, "loopback_leg", switch_test_flag(tech_pvt, TFLAG_BLEG) ? "B" : "A");
|
||||
status = SWITCH_STATUS_SUCCESS;
|
||||
switch_channel_set_state(channel, CS_ROUTING);
|
||||
|
||||
end:
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
return status;
|
||||
}
|
||||
|
||||
static void do_reset(loopback_private_t *tech_pvt)
|
||||
|
||||
Reference in new issue
Block a user