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

terminal server problem

154 views
Skip to first unread message

Wilfried Mestdagh

unread,
Dec 16, 2009, 8:00:54 AM12/16/09
to
Hi,

I have a dialer application that does more or less the same as the
windows dialer. It registers in TAPI and also with
LineRegisterRequestRecipient. The application is in the windows startup
menu and I did no registery changes.

while this all works fine on several machines there is a problem when it
is running in a terminal server session. following situation:

user A logs in terminal server, applicaiton is in startup, and all is
working as it should. but when afterwards user B logs in (also
applicaiton in startup), then the phone from user A starts to ring.

user B cannot use my dialer, he only can if user A logs off.

is it possible that I have to do some registry settings to get it all
running on terminal server?

--
rgds, Wilfried
Microsoft MapPoint MVP

Andreas Marschall [exMVP TAPI]

unread,
Dec 16, 2009, 10:41:26 AM12/16/09
to
"Wilfried Mestdagh" <wilf...@mestdagh.biz> schrieb im Newsbeitrag
news:OvzrO$kfKHA...@TK2MSFTNGP06.phx.gbl...

Wilfried,
what TSP are you using?
With Terminal Server only 3rd party TSP make sense,
because the Telephony Service is a machine wide service,
so all users use the same TSPs.
For a 3rd party TSP, i.e. a TSP with multiple lines from a PBX, you can
assign the line devices to users via TAPIMGMT.msc.
You need to enable the Telephony Server via the checkbox in the properties.
Then you can assign users to line devices.
Please note: On a TS you must not run TCMsetup.exe /C ...

Regarding TAPI apps: they should not store their registry setting in HKLM
but in HKCU.

--
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.

Wilfried Mestdagh

unread,
Dec 17, 2009, 5:09:26 AM12/17/09
to
Andreas Marschall [exMVP TAPI] schreef:
Hi Andreas,

Thank you for quick responce. It is Avaya or Panasonic (not sure wich
one) but every user has his own line. I will try to locate the
TAPIMGMT.msc as soon as I get back on the company.

Andreas Marschall [exMVP TAPI]

unread,
Dec 17, 2009, 6:50:20 AM12/17/09
to
"Wilfried Mestdagh" <wilf...@mestdagh.biz> schrieb im Newsbeitrag
news:eF94DEwf...@TK2MSFTNGP05.phx.gbl...

> Hi Andreas,
>
> Thank you for quick responce. It is Avaya or Panasonic (not sure wich one)
> but every user has his own line. I will try to locate the TAPIMGMT.msc as
> soon as I get back on the company.

Wilfried, you are welcome.

To make sure that Telephony Server (ie.e. checkbox within TAPIMGMT.msc) and
Telephony Client (i.e. RemoteSP.TSP) are not activated in parallel,
which would cause issues (MS KB article 841924 - You cannot have the Remote
TSP and a telephony server enabled on the same computer),
please ensure that Remote TSP is deactivated by TCMsetup.exe /C /D

Wilfried Mestdagh

unread,
Jan 6, 2010, 2:00:29 PM1/6/10
to
Andreas Marschall [exMVP TAPI] schreef:
> "Wilfried Mestdagh" <wilf...@mestdagh.biz> schrieb im Newsbeitrag
> news:eF94DEwf...@TK2MSFTNGP05.phx.gbl...
>> Hi Andreas,
>>
>> Thank you for quick responce. It is Avaya or Panasonic (not sure wich one)
>> but every user has his own line. I will try to locate the TAPIMGMT.msc as
>> soon as I get back on the company.
>
> Wilfried, you are welcome.
>
> To make sure that Telephony Server (ie.e. checkbox within TAPIMGMT.msc) and
> Telephony Client (i.e. RemoteSP.TSP) are not activated in parallel,
> which would cause issues (MS KB article 841924 - You cannot have the Remote
> TSP and a telephony server enabled on the same computer),
> please ensure that Remote TSP is deactivated by TCMsetup.exe /C /D
>

Hi Andreas,

I was back on the company today. Remote TSP is deactivated by
TCMSetup.exe /C /D. If I enable the checkbox within TAPIMGMT.msc then
one user see all the lines, but no other can see it. So I checked it off
again. Then it works for 1 user (the first one).

Let me explain because maybe I tell confusing things:

My dialer works good for all users, but when it is started by means of
other programs witch uses tapiRequestMakeCall then this message is
received in my application started by the first user.

user 1 log in and my application uses his TAPI line
user 2 log in and my application uses tapi line of this user
etc.

user 2 wants to dial using a program that uses tapiRequestMakeCall, and
then my application in the session of user one is getting the callback
and it start to dial in the session (and with the line) of user 1.

So it seems that terminal server uses the callback of the first user
logged in.

Klaus Darilion

unread,
Jan 7, 2010, 4:38:56 AM1/7/10
to Wilfried Mestdagh
Wilfried Mestdagh schrieb:
> user 2 wants to dial using a program that uses strange TAPI problem when using terminal server, and

I had similar problem and tried various configuration settings and come
to the conclusion that tapiRequestMakeCall() is buggy and does not work
in terminal-server setups. I guess the user's context is lost somewhere
inside TAPI and then it fetches the first available TAPI application,
regardless which user this application belongs too.

See my postings from 17.10.2008 with subject "strange TAPI problem when
using terminal server".

The only solution for was to do not use tapiRequestMakeCall(). Instead I
use a shellexecute() to start the dialer application manually. I
modified the TAPI dialer from PSDK-samples for this purpose to be
multiuser compatible.

regards
klaus

Wilfried Mestdagh

unread,
Jan 7, 2010, 5:17:23 AM1/7/10
to
Hi Klaus,

Thank you for reply. Reading this I see you had exact the same problem.
Problem is that the tapiRequestMakeCall() is not in application I have
written.

I also see a possible solution in the same discussion from Andreas:

> If you want to use a cluster of TS then it is required to install a
> copy of the 3rd party TSP on each TS seperately (including lines
> assignment.

Do I understeand that the service should be installed for each user
separately?

But did you tryed this and was it solution for the tapiRequestMakeCall?

Klaus Darilion

unread,
Jan 8, 2010, 7:39:51 AM1/8/10
to Wilfried Mestdagh
Wilfried Mestdagh schrieb:

> Hi Klaus,
>
> Thank you for reply. Reading this I see you had exact the same problem.
> Problem is that the tapiRequestMakeCall() is not in application I have
> written.
>
> I also see a possible solution in the same discussion from Andreas:
>
> > If you want to use a cluster of TS then it is required to install a
> > copy of the 3rd party TSP on each TS seperately (including lines
> > assignment.
>
> Do I understeand that the service should be installed for each user
> separately?

I think Andreas means that the service needs to be installed for each
terminal server, not for each user. Thus, I think this will not solve
your problem.

regards
klaus

Wilfried Mestdagh

unread,
Jan 11, 2010, 6:45:38 AM1/11/10
to
Thank you Klaus
0 new messages