mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
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:
@@ -1512,6 +1512,7 @@ static struct sip_pvt *sip_alloc(char *callid, struct sockaddr_in *sin, int useg
|
|||||||
/* Assume reinvite OK and via INVITE */
|
/* Assume reinvite OK and via INVITE */
|
||||||
p->canreinvite = globalcanreinvite;
|
p->canreinvite = globalcanreinvite;
|
||||||
p->dtmfmode = globaldtmfmode;
|
p->dtmfmode = globaldtmfmode;
|
||||||
|
p->capability = capability;
|
||||||
if (p->dtmfmode & SIP_DTMF_RFC2833)
|
if (p->dtmfmode & SIP_DTMF_RFC2833)
|
||||||
p->noncodeccapability |= AST_RTP_DTMF;
|
p->noncodeccapability |= AST_RTP_DTMF;
|
||||||
strncpy(p->context, context, sizeof(p->context) - 1);
|
strncpy(p->context, context, sizeof(p->context) - 1);
|
||||||
|
Reference in New Issue
Block a user