[asterisk-commits] oej: branch oej/earl-grey-sip2cause-configurable-1.8 r402114 - in /team/oej/e...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Oct 28 10:04:09 CDT 2013
Author: oej
Date: Mon Oct 28 10:04:07 2013
New Revision: 402114
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402114
Log:
Adding custom codes for translation outside of the normal path. If you want to translate an incoming
SIP code to another SIP code without affecting anything else in Asterisk you can do it using the
custom cause codes. Other channels will of course be a bit confused, so have control of your environment
before using these.
Modified:
team/oej/earl-grey-sip2cause-configurable-1.8/include/asterisk/causes.h
team/oej/earl-grey-sip2cause-configurable-1.8/main/channel.c
Modified: team/oej/earl-grey-sip2cause-configurable-1.8/include/asterisk/causes.h
URL: http://svnview.digium.com/svn/asterisk/team/oej/earl-grey-sip2cause-configurable-1.8/include/asterisk/causes.h?view=diff&rev=402114&r1=402113&r2=402114
==============================================================================
--- team/oej/earl-grey-sip2cause-configurable-1.8/include/asterisk/causes.h (original)
+++ team/oej/earl-grey-sip2cause-configurable-1.8/include/asterisk/causes.h Mon Oct 28 10:04:07 2013
@@ -83,6 +83,11 @@
- AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE 102
- AST_CAUSE_MANDATORY_IE_LENGTH_ERROR 103
- AST_CAUSE_PROTOCOL_ERROR 111
+ - AST_CAUSE_CUSTOM1 115
+ - AST_CAUSE_CUSTOM2 116
+ - AST_CAUSE_CUSTOM3 117
+ - AST_CAUSE_CUSTOM4 118
+ - AST_CAUSE_CUSTOM5 119
- AST_CAUSE_INTERWORKING 127
For more information:
@@ -142,6 +147,11 @@
#define AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE 102
#define AST_CAUSE_MANDATORY_IE_LENGTH_ERROR 103
#define AST_CAUSE_PROTOCOL_ERROR 111
+#define AST_CAUSE_CUSTOM1 115
+#define AST_CAUSE_CUSTOM2 116
+#define AST_CAUSE_CUSTOM3 117
+#define AST_CAUSE_CUSTOM4 118
+#define AST_CAUSE_CUSTOM5 119
#define AST_CAUSE_INTERWORKING 127
/* Special Asterisk aliases */
Modified: team/oej/earl-grey-sip2cause-configurable-1.8/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/earl-grey-sip2cause-configurable-1.8/main/channel.c?view=diff&rev=402114&r1=402113&r2=402114
==============================================================================
--- team/oej/earl-grey-sip2cause-configurable-1.8/main/channel.c (original)
+++ team/oej/earl-grey-sip2cause-configurable-1.8/main/channel.c Mon Oct 28 10:04:07 2013
@@ -255,6 +255,11 @@
{ AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE, "RECOVERY_ON_TIMER_EXPIRE", "Recover on timer expiry" },
{ AST_CAUSE_MANDATORY_IE_LENGTH_ERROR, "MANDATORY_IE_LENGTH_ERROR", "Mandatory IE length error" },
{ AST_CAUSE_PROTOCOL_ERROR, "PROTOCOL_ERROR", "Protocol error, unspecified" },
+ { AST_CAUSE_CUSTOM1, "CUSTOM1", "Custom cause code 1" },
+ { AST_CAUSE_CUSTOM2, "CUSTOM2", "Custom cause code 2" },
+ { AST_CAUSE_CUSTOM3, "CUSTOM3", "Custom cause code 3" },
+ { AST_CAUSE_CUSTOM4, "CUSTOM4", "Custom cause code 4" },
+ { AST_CAUSE_CUSTOM5, "CUSTOM5", "Custom cause code 5" },
{ AST_CAUSE_INTERWORKING, "INTERWORKING", "Interworking, unspecified" },
};
More information about the asterisk-commits
mailing list