From cb7bae8c8c00339f472592299442dc01c04c401a Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 8 Feb 2008 15:44:39 +0000 Subject: [PATCH] small fix git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7554 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 80a91aa1da..8b9740aa93 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -916,18 +916,17 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi } } - if (!reason && code != 407) { - reason = "Call Refused"; - } - if (!code) { code = 488; } - - if (!reason) { - reason = sip_status_phrase(code); - if (switch_strlen_zero(reason)) { - reason = "Because"; + + if (!reason && code != 407) { + reason = "Call Refused"; + if (!reason) { + reason = sip_status_phrase(code); + if (switch_strlen_zero(reason)) { + reason = "Because"; + } } }