[Freeswitch-svn] [commit] r7554 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Fri Feb 8 10:44:40 EST 2008
Author: anthm
Date: Fri Feb 8 10:44:39 2008
New Revision: 7554
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
Log:
small fix
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Fri Feb 8 10:44:39 2008
@@ -916,18 +916,17 @@
}
}
- 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";
+ }
}
}
More information about the Freeswitch-svn
mailing list