]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow RFC2833 to be sent in the response SDP when an INVITE comes in without SDP...
authorJoshua Colp <jcolp@digium.com>
Tue, 24 Apr 2007 16:05:06 +0000 (16:05 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 24 Apr 2007 16:05:06 +0000 (16:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61771 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 8ae2be774fdb5737d6b0c21e4f7eb5914138ff59..924fe9c55f3b3d134a48bd1796feb0c088adc25a 100644 (file)
@@ -7338,6 +7338,7 @@ static int check_user_full(struct sip_pvt *p, struct sip_request *req, int sipme
                                p->noncodeccapability |= AST_RTP_DTMF;
                        else
                                p->noncodeccapability &= ~AST_RTP_DTMF;
+                       p->jointnoncodeccapability = p->noncodeccapability;
                }
                if (user && debug)
                        ast_verbose("Found user '%s'\n", user->name);
@@ -7447,6 +7448,7 @@ static int check_user_full(struct sip_pvt *p, struct sip_request *req, int sipme
                                        p->noncodeccapability |= AST_RTP_DTMF;
                                else
                                        p->noncodeccapability &= ~AST_RTP_DTMF;
+                               p->jointnoncodeccapability = p->noncodeccapability;
                        }
                        ASTOBJ_UNREF(peer,sip_destroy_peer);
                } else {