Set joint capability as well when checking users
authorMark Spencer <markster@digium.com>
Thu, 23 Oct 2003 03:58:40 +0000 (03:58 +0000)
committerMark Spencer <markster@digium.com>
Thu, 23 Oct 2003 03:58:40 +0000 (03:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1662 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index eafeaa1..e6cd20e 100755 (executable)
@@ -3919,6 +3919,7 @@ static int check_user(struct sip_pvt *p, struct sip_request *req, char *cmd, cha
                                p->pickupgroup = user->pickupgroup;
                                p->restrictcid = user->restrictcid;
                                p->capability = user->capability;
+                               p->jointcapability = user->capability;
                                if (user->dtmfmode) {
                                        p->dtmfmode = user->dtmfmode;
                                        if (p->dtmfmode & SIP_DTMF_RFC2833)
@@ -3960,6 +3961,7 @@ static int check_user(struct sip_pvt *p, struct sip_request *req, char *cmd, cha
                                p->callgroup = peer->callgroup;
                                p->pickupgroup = peer->pickupgroup;
                                p->capability = peer->capability;
+                               p->jointcapability = peer->capability;
                                if (peer->dtmfmode) {
                                        p->dtmfmode = peer->dtmfmode;
                                        if (p->dtmfmode & SIP_DTMF_RFC2833)