mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-07 08:21:08 +00:00
Handle routing loop detection properly so that the delivery confirmation handling is more accurate.
This commit is contained in:
parent
7cb8d4dbb0
commit
8f0b7e69de
@ -2459,6 +2459,7 @@ void *SWITCH_THREAD_FUNC sofia_profile_thread_run(switch_thread_t *thread, void
|
|||||||
#ifdef MANUAL_BYE
|
#ifdef MANUAL_BYE
|
||||||
NUTAG_APPL_METHOD("BYE"),
|
NUTAG_APPL_METHOD("BYE"),
|
||||||
#endif
|
#endif
|
||||||
|
NUTAG_APPL_METHOD("MESSAGE"),
|
||||||
|
|
||||||
NUTAG_SESSION_TIMER(profile->session_timeout),
|
NUTAG_SESSION_TIMER(profile->session_timeout),
|
||||||
NTATAG_MAX_PROCEEDING(profile->max_proceeding),
|
NTATAG_MAX_PROCEEDING(profile->max_proceeding),
|
||||||
|
@ -4351,7 +4351,8 @@ void sofia_presence_handle_sip_i_message(int status,
|
|||||||
|
|
||||||
if ((us = sofia_glue_get_unknown_header(sip, "X-FS-Sending-Message")) && !strcmp(us, switch_core_get_uuid())) {
|
if ((us = sofia_glue_get_unknown_header(sip, "X-FS-Sending-Message")) && !strcmp(us, switch_core_get_uuid())) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Not sending message to ourselves!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Not sending message to ourselves!\n");
|
||||||
goto end;
|
nua_respond(nh, SIP_503_SERVICE_UNAVAILABLE, NUTAG_WITH_THIS_MSG(de->data->e_msg), TAG_END());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sip->sip_content_type && sip->sip_content_type->c_subtype) {
|
if (sip->sip_content_type && sip->sip_content_type->c_subtype) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user