PBX Info :: Your Free PBX, PABX and Telephone Information Resource - View Single Post - Problem with opening stream to BP250
View Single Post
Old 09-28-2006, 09:23 AM   #1 (permalink)
Trabi
Junior Member

Activity Longevity
0/20 8/20
Today Posts
0/0 ssssssss1
Rep Power: 0Trabi is an unknown quantity at this point
Country:
Red face Problem with opening stream to BP250

Hi I'm trying to connect to an Ericsson BP250 from Delphi6 via TSAPI.

Does anybody know what the acsOpenStream statement should look like?

I have tried to connect with the following code and it returns -2. I think it means that one or more parameters are invalid. Please help - I'm just guessing here

Code:
 
  InvokeIDType          := APP_GEN_ID;
  InvokeID              := 1;
  StreamType            := ST_;
  ServerID              := 'ERICSSON#BP1#CSTA#BP250';
  LoginID               := 'XXX';
  Password              := 'XXX';
  ApplicationName       := 'test';
  acsLevelReq           := ACS_LEVEL1;
  apiVer                := 'TS1-3:5';
  sendQSize             := 0;
  sendExtraBufs         := 0;
  recvQSize             := 0;
  recvExtraBufs         := 0;
  privateData           := nil;
 
  Resultat := tsapi.acsOpenStream(
                PacsHandle^,
                InvokeIDType,
                InvokeID,
                StreamType,
                ServerID,
                LoginID,
                Password,
                ApplicationName,
                acsLevelReq,
                apiVer,
                sendQSize,
                sendExtraBufs,
                recvQSize,
                recvExtraBufs,
                privateData);
Trabi is offline   sendpm.gif Reply With Quote