cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
348
Views
0
Helpful
1
Replies

I can't use lineGetID() to get DeviceID,help me please

hongjunzhao
Level 1
Level 1

Now we use the callmanaer and want to do so ,when a user dial a number ,he can listen a dialog or music etc..

Develop tookiet : Microsoft TAPI tookiet.

TSP-------Cisco IP PBX Service Provider

The process is as that :

1,init TAPI

lineInitializeEx()---success

2,lineNegotiateAPIVersion()--success

3,lineNegotiateExtVersion()--success

4,lineOpen£¨£©--success

5,lineMakeCall£¨£©--success

6,lineGetID£¨£©--fail

Use function:

lineGetID(0,0,(HCALL)hDevice,LINECALLSELECT_CALL,"wave/out"£©

is between dwMessage=LINECALLSTATE_CONNECTED of lineCallbackFunc£¨£©

Question:

1,Ask if Cisco TSP has it's special feature? How to solve it?

1 Reply 1

agam.mehta
Level 1
Level 1

I assume you have configured TSP correctly. You can only get your wave out/in deviceclass through CTI Port. It won't work on stations. You should be get linegetid once you open CTI Port.

- lineinitializeEx

- lineopen

-linegetid

you don't have to wait till stations are connected.

Beware the number of automated lines entered in tsp you should have same number of CTI Ports.

Agam