mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
make chan id parsing more flezible, seems to follow the spec still correctly.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@295 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
4fc410d8b8
commit
d8fb3b338f
@ -1157,7 +1157,7 @@ L3INT Q931Uie_ChanID(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *pMsg, L3UCHAR *
|
|||||||
L3INT Off = 0;
|
L3INT Off = 0;
|
||||||
L3INT Octet = 0;
|
L3INT Octet = 0;
|
||||||
L3INT IESize;
|
L3INT IESize;
|
||||||
|
//18 04 e1 80 83 01
|
||||||
*pIE=0;
|
*pIE=0;
|
||||||
|
|
||||||
/* Octet 1 */
|
/* Octet 1 */
|
||||||
@ -1190,8 +1190,8 @@ L3INT Q931Uie_ChanID(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *pMsg, L3UCHAR *
|
|||||||
Off = Q931ReadExt(&IBuf[Octet+Off], Off);
|
Off = Q931ReadExt(&IBuf[Octet+Off], Off);
|
||||||
Off++;
|
Off++;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
if (Octet + Off -2 != IESize) {
|
||||||
/* Octet 3.2 */
|
/* Octet 3.2 */
|
||||||
if(pie->IntType == 1) /* PRI etc */
|
if(pie->IntType == 1) /* PRI etc */
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user