Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help Required - TSP Development

19 views
Skip to first unread message

Usama Khan

unread,
May 17, 2011, 1:42:25 AM5/17/11
to
Hello,

I am building a TSP which takes input from any TAPI soft-phone and
communicates it to my C# application over Windows Sockets.

I am using JulMar's TSP++ 3 Library and wizard to build the TSP and
then add my code where required and modify it as needed.

I get it working by TAPI Application making a call, which passes
through the TSP to my C# application.

There is a problem however, which is that my request is caught up in a
never-ending loop. After careful monitoring, I was able to deduce that
it is because of the OnTimer() function and I changed it's definition
to complete my request. But that doesn't work. The TSP stops working
but my TAPI application is still waiting for a response from TSP and
the TSP is still running in svchost.

I then tried using the ForceClose() method and setting the line
properties to DISCONNECTED state. But that also didn't work.

I am stuck because I am not able to complete the request. Unless the
request completes, I won't be able to move on and add more
functionality to it.

If anyone can respond, that would be great!

Thanks,
Usama Khan

Andreas Marschall [exMVP TAPI]

unread,
Jun 16, 2011, 4:03:02 PM6/16/11
to
On May 17, 7:42 am, Usama Khan <usama.shahid...@gmail.com> wrote:
> I am building a TSP which takes input from any TAPI soft-phone and
> communicates it to my C# application over Windows Sockets.
>
> I am using JulMar's TSP++ 3 Library and wizard to build the TSP and
> then add my code where required and modify it as needed.
>
> I get it working by TAPI Application making a call, which passes
> through the TSP to my C# application.
>
> There is a problem however, which is that my request is caught up in a
> never-ending loop. After careful monitoring, I was able to deduce that
> it is because of the OnTimer() function and I changed it's definition
> to complete my request. But that doesn't work. The TSP stops working
> but my TAPI application is still waiting for a response from TSP and
> the TSP is still running in svchost.

Usama,
what "request" are you refering too?
Is it the asynchronous TSPI_lineMakeCall()?
Do other asynchronous TSPI functions (like TSPI_lineDrop) work
correctly?
Do synchronous TSPI functions (like TSPI_proviederEnumDevcies(),
TSPI_providerInit, or TSPI_lineOpen) work correctly?
Do you you send corresponding ASYNC_COMPLETIONs for each asynchronous
TSPI_ function call?

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
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.

0 new messages