Fix encoding of Call State IE, Q.931 (05/98) 4.5.7: bit 8 of octet 3 is part of the coding standard
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@751 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
d1bdfae6fb
commit
7c6ffbf131
|
@ -557,7 +557,7 @@ L3INT Q931Pie_CallState(Q931_TrunkInfo_t *pTrunk, L3UCHAR *IBuf, L3UCHAR *OBuf,
|
|||
OBuf[(*Octet)++] = Q931ie_CALL_STATE;
|
||||
li = (*Octet)++; /* remember length position */
|
||||
|
||||
OBuf[(*Octet)++] = 0x80 | (pIE->CodStand<<6) | pIE->CallState;
|
||||
OBuf[(*Octet)++] = (pIE->CodStand << 6) | (pIE->CallState & 0x3f);
|
||||
|
||||
OBuf[li] = (L3UCHAR)((*Octet) - Beg) - 2;
|
||||
return rc;
|
||||
|
|
Loading…
Reference in New Issue