cdp_avp: added README file
[sip-router] / error.c
diff --git a/error.c b/error.c
index 4cb9136..ae29c53 100644 (file)
--- a/error.c
+++ b/error.c
  * 2003-04-04 phrase length corrected not to include trailer 0 (jiri)
  */
 
+/*!
+ * \file
+ * \brief SIP-router core :: 
+ * \ingroup core
+ * Module: \ref core
+ */
+
 
 #include <stdio.h>
 #include "error.h"
@@ -107,13 +114,22 @@ int err2reason_phrase(
                        *sip_error=-E_BAD_REQ;
                        break;
 
+               case E_CANCELED:
+                       error_txt="transaction canceled";
+                       *sip_error=-ser_error;
+                       break;
+
                case E_OUT_OF_MEM:
                /* dont disclose lack of mem in release mode */
-#ifdef DEBUG
+#ifdef EXTRA_DEBUG
                        error_txt="Excuse me I ran out of memory";
                        *sip_error=500;
                        break;
 #endif
+               case E_OK:
+                       error_txt="No error";
+                       *sip_error=500;
+                       break;
                default:
                        error_txt="I'm terribly sorry, server error occurred";
                        *sip_error=500;