Fix encoding of the Channel ID IE
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@516 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
be6eb554a7
commit
584880af5b
|
@ -1288,10 +1288,9 @@ L3INT Q931Pie_ChanID(Q931_TrunkInfo_t *pTrunk, L3UCHAR *IBuf, L3UCHAR *OBuf, L3I
|
|||
{
|
||||
OBuf[(*Octet)++] = 0x80 | (pIE->InterfaceID & 0x7f);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
/* Octet 3.2 & 3.3 - PRI */
|
||||
if(pIE->IntType == 1)
|
||||
if(pIE->IntType)
|
||||
{
|
||||
OBuf[(*Octet)++] = 0x80
|
||||
| ((pIE->CodStand << 5) & 0x60)
|
||||
|
@ -1310,7 +1309,6 @@ L3INT Q931Pie_ChanID(Q931_TrunkInfo_t *pTrunk, L3UCHAR *IBuf, L3UCHAR *OBuf, L3I
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
OBuf[li] = (L3UCHAR)((*Octet)-Beg) - 2;
|
||||
return rc;
|
||||
|
|
Loading…
Reference in New Issue