Hi All, I am writing Tsp for my client. When I receive call I send LINE_NEWCALL and then LINE_CALLSTATE_OFFERING. TapiSrv calls my TSPI_lineGetCallInfo and then TSPI_lineCloseCall. I think I make some mistake in TSPI_lineGetCallInfo. Here is the code which I have written in this function. Can anyone will please tell me where is the mistake. LONG TSPIAPI TSPI_lineGetCallInfo( HDRVCALL hdCall, LPLINECALLINFO lpLineInfo ) { BEGIN_PARAM_TABLE("TSPI_lineGetCallInfo") DWORD_IN_ENTRY(hdCall) END_PARAM_TABLE() LONG lResult = 0; lpLineInfo->dwNeededSize = lpLineInfo->dwUsedSize = sizeof(LINECALLINFO); lpLineInfo->dwBearerMode = LINEBEARERMODE_VOICE; lpLineInfo->dwMediaMode = LINEMEDIAMODE_INTERACTIVEVOICE ; lpLineInfo->dwCallStates = LINECALLSTATE_IDLE | LINECALLSTATE_DIALTONE | LINECALLSTATE_DIALING | LINECALLSTATE_CONNECTED | LINECALLSTATE_PROCEEDING | LINECALLSTATE_DISCONNECTED | LINECALLSTATE_UNKNOWN | LINECALLSTATE_OFFERING | LINECALLSTATE_ACCEPTED| LINECALLSTATE_BUSY | LINECALLSTATE_ONHOLD| LINECALLSTATE_CONFERENCED | LINECALLSTATE_ONHOLDPENDCONF | LINECALLSTATE_RINGBACK | LINECALLSTATE_UNKNOWN | LINECALLSTATE_ONHOLDPENDTRANSFER ; lpLineInfo->dwCallerIDFlags =LINECALLPARTYID_UNAVAIL; lpLineInfo->dwCalledIDFlags =LINECALLPARTYID_UNAVAIL; lpLineInfo->dwConnectedIDFlags =LINECALLPARTYID_UNAVAIL; lpLineInfo->dwRedirectionIDFlags =LINECALLPARTYID_UNAVAIL; lpLineInfo->dwRedirectingIDFlags = LINECALLPARTYID_UNAVAIL; lpLineInfo->dwOrigin = LINECALLORIGIN_INBOUND; lpLineInfo->dwReason = LINECALLREASON_DIRECT ; TackOnData(lpLineInfo, "ABCS" ,&lpLineInfo->dwConnectedIDSize); lpLineInfo->dwConnectedIDOffset = lpLineInfo->dwUsedSize; TackOnData(lpLineInfo, "(131) 1234" ,&lpLineInfo->dwCallerIDSize); lpLineInfo->dwConnectedIDFlags |= LINECALLPARTYID_ADDRESS; lpLineInfo->dwConnectedIDFlags = LINECALLPARTYID_ADDRESS; lpLineInfo->dwConnectedIDNameOffset = lpLineInfo->dwUsedSize; TackOnData(lpLineInfo, "(131) 2222" ,&lpLineInfo->dwConnectedIDNameSize); } Thanks and Regards Amol.
"Amol" schrieb im Newsbeitrag news:60C4F1DA-6DAD-40CA-AAD6-18C5342A68A0@microsoft.com... > I am writing Tsp for my client. When I receive call I send LINE_NEWCALL > and then LINE_CALLSTATE_OFFERING. TapiSrv calls my > TSPI_lineGetCallInfo and then TSPI_lineCloseCall. I think I make some > mistake in TSPI_lineGetCallInfo. Here is the code which I have written in > this function. Can anyone will please tell me where is the mistake. Amol, It is recommended to post TAPI questions only to the managed TAPI newsgroup: microsoft.public.win32.programmer.tapi See my TAPI and TSPI FAQ: Q: What newsgroups are covering TAPI ? http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_What_newsgroups -- Best Regards Andreas Marschall Microsoft MVP for TAPI / Windows SDK TAPI / TSP Developer and Tester My TAPI and TSPI FAQ: http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm My Toto® Tools (a collection of free, mostly TAPI related tools): http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm TAPI development around the world (Frappr! map): http://www.frappr.com/TAPIaroundTheWorld * Please post all messages and replies to the newsgroup so all may * benefit from the discussion. Private mail is usually not replied to. * This posting is provided "AS IS" with no warranties, and confers no rights.