Handle oddly sent 'A' to 'D' (bug #3445)
authorMark Spencer <markster@digium.com>
Fri, 28 Jan 2005 03:49:08 +0000 (03:49 +0000)
committerMark Spencer <markster@digium.com>
Fri, 28 Jan 2005 03:49:08 +0000 (03:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4906 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index a7a0a2b..71520f7 100755 (executable)
@@ -6413,6 +6413,8 @@ static void receive_info(struct sip_pvt *p, struct sip_request *req)
                                        event = 10;
                                else if (buf[0] == '#')
                                        event = 11;
                                        event = 10;
                                else if (buf[0] == '#')
                                        event = 11;
+                               else if ((buf[0] >= 'A') && (buf[0] <= 'D'))
+                                       event = 12 + buf[0] - 'A';
                                else
                                        event = atoi(buf);
                                if (event < 10) {
                                else
                                        event = atoi(buf);
                                if (event < 10) {