Re: client impersonation
- From: "Matthias Moetje [MVP]" <moetje@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 8 May 2006 23:00:18 +0200
Eric,
runtime adding lines: I don't see the problem you mentioned. I'm the TSP,so
I provide the lines. Did I misunderstand you?
Well, TAPI wasn't built with the case in mind that a TSP can be aware
of logged in users. If you think this is the only viable solution then
you might have a look at the LINE_CREATE and LINE_REMOVE
messages.
I'd like to stress that currently I only have these two smaller problems:the
- When the Telephony service starts at boot time (set to automatic instead
of manual) then when asked for the lines (EnumLines) it returns 0. When
later a user logs in and actually needs a line, no more call is made to
TSP and there is no line available for the user (some kine of caching?).If
I kill the Telephony process and try again, then the user has his line(s)
correctly. When this user logs off and another user logs in, the lines of
the new user are correctly displayed. I don't understand this behaviour at
all. Workaround is to make sure the Telephony service not starts at
boot-time.
No I wouldn't say that this is right. The telephony service should not
depend on being restarted. If you are seeing unexpected behaviour
you should read about "lifetime of a TSP" on MSDN and check with
your implementation when providerInit and providerShutdown is called.
I think this should help explain that.
What you could do is
- on providerInit check all logged on users and add all lines that belong to
these users
- then spin a thread from your TSP that monitors logons and logoffs
- when you detect a logon you send the LINE_CREATE message to
dynamically add the associated line(s).
- when you detect a logoff you send LINE_REMOVE
The dynamic line creation and deletion mechanism was introduced to allow
Plug and Play for telephony devices but it could also help in your case.
Best regards,
Matthias Moetje
-------------------------------------
TERASENS GmbH
Augustenstraße 24
80333 Munich, GERMANY
-------------------------------------
Fon: +49 89 143370-0
Fax: +49 89 143370-22
e-mail: moetje at terasens dot com
www: www.terasens.com
-------------------------------------
.
- Follow-Ups:
- Re: client impersonation
- From: Eric
- Re: client impersonation
- References:
- TSP: client impersonation
- From: Eric
- Re: client impersonation
- From: Grant Schenck
- Re: client impersonation
- From: Eric
- Re: client impersonation
- From: Matthias Moetje [MVP]
- Re: client impersonation
- From: Eric
- Re: client impersonation
- From: Matthias Moetje [MVP]
- Re: client impersonation
- From: Eric
- TSP: client impersonation
- Prev by Date: Re: can not get CallerID
- Next by Date: Re: can not get CallerID
- Previous by thread: Re: client impersonation
- Next by thread: Re: client impersonation
- Index(es):