lineGetCallInfo CallerID
- From: MAN <m.noeske@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 24 Apr 2006 18:13:34 +0200
Hi!
I'm surely not the first one with this problem.
So a link to a good archiv answer would be fine enough.
My problem: Tapi 2.0
I'm trying to get the callerId of a call (how extraordinary...)
with the LINECALLINFO i get the offset of a DWORD array of size x.
Im my case x=4 mostly. This is a fine array, but it contains some "mystic things", but def. not the CallerID.
Here is the code. My language is c by the way...
HCALL *hCalls;
hCalls=(HCALL *)calloc((*lpCallList).dwCallsNumEntries,sizeof(HCALL));
hCalls=&(*lpCallList).dwCallsOffset;
getMessage();
for (byte i=1;i<=(*lpCallList).dwCallsNumEntries;i++)
{
LINECALLINFO *lpCallInfo;
lpCallInfo=malloc(1000);
memset(lpCallInfo, 0,1000);
(*lpCallInfo).dwTotalSize =1000;
lResult=lineGetCallInfo(hCalls[i],lpCallInfo);
DWORD *lpCallerID;
lpCallerID=(DWORD *)calloc((*lpCallInfo).dwCallerIDSize,sizeof(DWORD));
memset(lpCallerID, 0,(*lpCallInfo).dwCallerIDSize);
lpCallerID=&(*lpCallInfo).dwCallerIDOffset;
for (byte j=1;j<=(*lpCallInfo).dwCallerIDSize;j++)
{ printf(" %d",*lpCallerID[j]);}
I think it has something to do with DWORD and bytes.
But becaus of being a total newbie in c (and ++) i don*t understand, what the matter is.
Kind regards
Martin
.
- Follow-Ups:
- Re: lineGetCallInfo CallerID
- From: Andreas Marschall [MVP TAPI]
- Re: lineGetCallInfo CallerID
- Prev by Date: Telecommunications Alternatives For The Distributed Workforce (March 2006)
- Next by Date: Re: dial using tsp from command line without ms dialer
- Previous by thread: Telecommunications Alternatives For The Distributed Workforce (March 2006)
- Next by thread: Re: lineGetCallInfo CallerID
- Index(es):
Relevant Pages
|