Handle routing loop detection properly so that the delivery confirmation handling is more accurate.

This commit is contained in:
William King 2012-11-13 18:18:33 -08:00
parent 7cb8d4dbb0
commit 8f0b7e69de
2 changed files with 3 additions and 1 deletions

View File

@ -2459,6 +2459,7 @@ void *SWITCH_THREAD_FUNC sofia_profile_thread_run(switch_thread_t *thread, void
#ifdef MANUAL_BYE
NUTAG_APPL_METHOD("BYE"),
#endif
NUTAG_APPL_METHOD("MESSAGE"),
NUTAG_SESSION_TIMER(profile->session_timeout),
NTATAG_MAX_PROCEEDING(profile->max_proceeding),

View File

@ -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())) {
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) {