Fix capability lookup failure

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2003-09-26 03:31:57 +00:00
parent 9a49c07cf3
commit 83e9734908
1 changed files with 1 additions and 0 deletions

View File

@ -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);