cdp_avp: added README file
[sip-router] / error.c
diff --git a/error.c b/error.c
index 266d5a9..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,6 +114,11 @@ 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 EXTRA_DEBUG
@@ -114,6 +126,10 @@ int err2reason_phrase(
                        *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;