mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
another tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10127 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1cf4543320
commit
0ec08fe3ba
@ -2114,6 +2114,9 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
|
|||||||
tech_pvt->dest_to = tech_pvt->dest;
|
tech_pvt->dest_to = tech_pvt->dest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch_set_flag_locked(tech_pvt, TFLAG_OUTBOUND);
|
||||||
|
sofia_glue_attach_private(nsession, profile, tech_pvt, dest);
|
||||||
|
|
||||||
if (tech_pvt->local_url) {
|
if (tech_pvt->local_url) {
|
||||||
switch_channel_set_variable(nchannel, "sip_local_url", tech_pvt->local_url);
|
switch_channel_set_variable(nchannel, "sip_local_url", tech_pvt->local_url);
|
||||||
if (profile->pres_type) {
|
if (profile->pres_type) {
|
||||||
@ -2126,11 +2129,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
|
|||||||
caller_profile->destination_number = switch_core_strdup(caller_profile->pool, dest);
|
caller_profile->destination_number = switch_core_strdup(caller_profile->pool, dest);
|
||||||
switch_channel_set_caller_profile(nchannel, caller_profile);
|
switch_channel_set_caller_profile(nchannel, caller_profile);
|
||||||
switch_channel_set_flag(nchannel, CF_OUTBOUND);
|
switch_channel_set_flag(nchannel, CF_OUTBOUND);
|
||||||
switch_set_flag_locked(tech_pvt, TFLAG_OUTBOUND);
|
|
||||||
switch_clear_flag_locked(tech_pvt, TFLAG_LATE_NEGOTIATION);
|
switch_clear_flag_locked(tech_pvt, TFLAG_LATE_NEGOTIATION);
|
||||||
|
|
||||||
sofia_glue_attach_private(nsession, profile, tech_pvt, dest);
|
|
||||||
|
|
||||||
if (switch_channel_get_state(nchannel) == CS_NEW) {
|
if (switch_channel_get_state(nchannel) == CS_NEW) {
|
||||||
switch_channel_set_state(nchannel, CS_INIT);
|
switch_channel_set_state(nchannel, CS_INIT);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user