Fix capability lookup failure
authorMark Spencer <markster@digium.com>
Fri, 26 Sep 2003 03:31:57 +0000 (03:31 +0000)
committerMark Spencer <markster@digium.com>
Fri, 26 Sep 2003 03:31:57 +0000 (03:31 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1545 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 1c2f523..e62232a 100755 (executable)
@@ -1512,6 +1512,7 @@ static struct sip_pvt *sip_alloc(char *callid, struct sockaddr_in *sin, int useg
        /* Assume reinvite OK and via INVITE */
        p->canreinvite = globalcanreinvite;
        p->dtmfmode = globaldtmfmode;
+       p->capability = capability;
        if (p->dtmfmode & SIP_DTMF_RFC2833)
                p->noncodeccapability |= AST_RTP_DTMF;
        strncpy(p->context, context, sizeof(p->context) - 1);