]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
We do not handle AST_CAUSE_INTERWORKING which we set on a lot of incoming
authorOlle Johansson <oej@edvina.net>
Thu, 16 Sep 2010 16:49:28 +0000 (16:49 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 16 Sep 2010 16:49:28 +0000 (16:49 +0000)
SIP messages. Adding error based on RFC 3398 recommendations.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@287087 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4157cc83518e700c17f92226b3a7780b41b5670e..cf9f41b8ab3f2f448cc858e1268a390ff3866814 100644 (file)
@@ -5727,6 +5727,8 @@ const char *hangup_cause2sip(int cause)
                        return "502 Bad Gateway";
                case AST_CAUSE_BEARERCAPABILITY_NOTAVAIL:       /* Can't find codec to connect to host */
                        return "488 Not Acceptable Here";
+               case AST_CAUSE_INTERWORKING:    /* Unspecified Interworking issues */
+                       return "500 Network error";
                        
                case AST_CAUSE_NOTDEFINED:
                default: