harcrow

When I use the lineMakeCall() method I do not see the status of the call on the phone such as "Dialing ..." as I do when I use the PhoneMakeCall() method. Do I need to hand the call off to another application in order to see that

Thanks

Harry



Re: Smart Devices VB and C# Projects lineMakeCall() call status

MF CAP

hi. please let me see source...




Re: Smart Devices VB and C# Projects lineMakeCall() call status

harcrow

This is basically the code that is called. I have the code built into a library. I have tried changing the line call privilege from owner to monitor, but that didn't seem to make any difference. The media modes I retreived from the lineGetDevCaps() method. I am also using call backs to get the different states that the call is in. Let me know if additional code is needed.

// Prepare the lineinitializeexparams

lineinitializeexparams initparams = new CTapi.lineinitializeexparams();

initparams.dwTotalSize = (uint) Marshal.SizeOf(initparams);

initparams.dwNeededSize = initparams.dwTotalSize;

initparams.dwUsedSize = initparams.dwTotalSize;

initparams.hEvent = System.IntPtr.Zero;

initparams.dwOptions = (uint)LineInitializeExOptions.LINEINITIALIZEEXOPTION_USEHIDDENWINDOW;

LineErrReturn ret = lineInitializeEx(out m_hTapi, m_AppHandle, m_CallBack, m_friendlyAppName, out m_numberDevices, ref m_TapiVersion, ref initparams);

ret = lineOpen( m_hTapi, deviceID, out m_hLine, m_TapiNegotiatedVer, 0, null, LineCallPrivilege.LINECALLPRIVILEGE_OWNER, m_MediaModes, null);

int callRequestID = lineMakeCall(m_hLine, out hCall, phoneNumber, 0, System.IntPtr.Zero);

Thanks

Harry