mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-21 11:32:51 +00:00
FS-4570 --resolve
This commit is contained in:
parent
ada8b78393
commit
c1d2624ce5
@ -5701,8 +5701,10 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
|
|||||||
switch_t38_options_t *t38_options = sofia_glue_extract_t38_options(session, sip->sip_payload->pl_data);
|
switch_t38_options_t *t38_options = sofia_glue_extract_t38_options(session, sip->sip_payload->pl_data);
|
||||||
|
|
||||||
if (!t38_options) {
|
if (!t38_options) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_WARNING, "%s Error parsing SDP:\n%s\n",
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Could not parse T.38 options from sdp.\n");
|
||||||
switch_channel_get_name(tech_pvt->channel), sip->sip_payload->pl_data);
|
switch_channel_set_variable(channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "T.38 NEGOTIATION ERROR");
|
||||||
|
switch_channel_hangup(channel, SWITCH_CAUSE_INCOMPATIBLE_DESTINATION);
|
||||||
|
switch_core_session_rwunlock(other_session);
|
||||||
goto end;
|
goto end;
|
||||||
} else {
|
} else {
|
||||||
char *remote_host = switch_rtp_get_remote_host(tech_pvt->rtp_session);
|
char *remote_host = switch_rtp_get_remote_host(tech_pvt->rtp_session);
|
||||||
@ -5735,15 +5737,7 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sofia_glue_copy_t38_options(t38_options, other_session);
|
||||||
if (t38_options) {
|
|
||||||
sofia_glue_copy_t38_options(t38_options, other_session);
|
|
||||||
} else {
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Could not parse T.38 options from sdp.\n");
|
|
||||||
switch_channel_set_variable(channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "T.38 NEGOTIATION ERROR");
|
|
||||||
switch_channel_hangup(channel, SWITCH_CAUSE_INCOMPATIBLE_DESTINATION);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user