correct initialization to set the right dialect.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@99 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
b06d0d2589
commit
4b3113f56d
|
@ -247,11 +247,11 @@ void Q931Initialize()
|
|||
}
|
||||
}
|
||||
|
||||
if(Q931CreateDialectCB[0] == NULL)
|
||||
Q931AddDialect(0, Q931CreateTE);
|
||||
if(Q931CreateDialectCB[Q931_Dialect_Q931 + Q931_TE] == NULL)
|
||||
Q931AddDialect(Q931_Dialect_Q931 + Q931_TE, Q931CreateTE);
|
||||
|
||||
if(Q931CreateDialectCB[1] == NULL)
|
||||
Q931AddDialect(1, Q931CreateNT);
|
||||
if(Q931CreateDialectCB[Q931_Dialect_Q931 + Q931_NT] == NULL)
|
||||
Q931AddDialect(Q931_Dialect_Q931 + Q931_NT, Q931CreateNT);
|
||||
|
||||
/* The last step we do is to call the callbacks to create the dialects */
|
||||
for(x=0; x< Q931MAXDLCT; x++)
|
||||
|
|
|
@ -110,7 +110,7 @@ L3INT Q931Api_InitTrunk(Q931_TrunkInfo *pTrunk,
|
|||
pTrunk->PrivateData34 = PrivateData34;
|
||||
|
||||
pTrunk->LastCRV = 0;
|
||||
pTrunk->Dialect = Dialect;
|
||||
pTrunk->Dialect = Dialect + NetUser;
|
||||
pTrunk->Enabled = 0;
|
||||
pTrunk->TrunkType = TrunkType;
|
||||
pTrunk->NetUser = NetUser;
|
||||
|
|
Loading…
Reference in New Issue