Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Tue, 18 Dec 2007 05:10:01 -0800,    group: microsoft.public.platformsdk.telephony.tsp        back       


Problem in TSPI_lineGetCallInfo function.   
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.
date: Tue, 18 Dec 2007 05:10:01 -0800   author:   Amol

Re: Problem in TSPI_lineGetCallInfo function.   
"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.
date: Wed, 19 Dec 2007 15:34:10 +0100   author:   Andreas Marschall [MVP TAPI]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us