From: Olle Johansson Date: Thu, 16 Sep 2010 16:49:28 +0000 (+0000) Subject: We do not handle AST_CAUSE_INTERWORKING which we set on a lot of incoming X-Git-Tag: 11.0.0-beta1~2321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c77cebd4e0b42fe9c200059d0a236f5a2d991d4;p=thirdparty%2Fasterisk.git We do not handle AST_CAUSE_INTERWORKING which we set on a lot of incoming 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 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 4157cc8351..cf9f41b8ab 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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: