mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
MODSOFIA-18
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14319 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -416,25 +416,22 @@ void sofia_event_callback(nua_event_t event,
|
||||
tech_pvt->call_id = switch_core_session_strdup(session, sip->sip_call_id->i_id);
|
||||
switch_channel_set_variable(channel, "sip_call_id", tech_pvt->call_id);
|
||||
}
|
||||
|
||||
if (tech_pvt->gateway_name) {
|
||||
gateway = sofia_reg_find_gateway(tech_pvt->gateway_name);
|
||||
}
|
||||
|
||||
if (channel && switch_channel_down(channel)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Channel is already hungup.\n");
|
||||
goto done;
|
||||
}
|
||||
} else {
|
||||
/* too late */
|
||||
/* we can't find the session it must be hanging up or something else, its too late to do anything with it. */
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (session) {
|
||||
if (channel && switch_channel_down(channel)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Channel is already hungup.\n");
|
||||
goto done;
|
||||
}
|
||||
} else if (sofia_private && sofia_private->is_call) {
|
||||
sofia_private->destroy_me = 22;
|
||||
}
|
||||
|
||||
if (sofia_test_pflag(profile, PFLAG_AUTH_ALL) && tech_pvt && tech_pvt->key && sip) {
|
||||
sip_authorization_t const *authorization = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user