mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
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
a6f5392dd6
commit
b46cbfd686
@ -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…
x
Reference in New Issue
Block a user