Donald Lee
unread,Jul 30, 2012, 5:15:11 PM7/30/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
We have a customer who needs to be able to assign each User to 30 or
so Tapi Lines (Each user is assigned to the same 30 Tapi lines),
but using "mmc / TAPIMGMT.MSC" we are only able to assign a User to 14
Tapi Lines.
Using "mmc / TAPIMGMT.MSC" on the 15th assignment of a User (Auby
Taylor in this case) to a 15th line (1026 in this case), the "mmc /
TAPIMGMT.MSC" seems to show
that user Auby Taylor is assigned to the 15th Line 1026 ok (as well as
the other 14 lines). But if you exit the "mmc / TAPIMGMT.MSC" and then
run "mmc / TAPIMGMT.MSC" again, the
Gui does not show Auby Taylor assigned to line 1026 anymore (Auby
Taylor is still assigned to the other 14 lines, just not 15th line
1026).
After tracking down what Tapi is doing when Assigning Users to Lines,
I found (using ProcessMonitor) that TAPI is writing to the file
C:\WINDOWS\TAPI\tsec.ini to save all the User to Line assignments.
When we have user Auby Taylor assigned to 13 different lines the
corresponding entries in the tsec.ini file look like this:
[SEDAPPSLAB\ataylor]
FriendlyUserName=Auby Taylor
Lines=5,5,5,6,5,7,5,8,5,9,5,10,5,11,5,12,5,13,5,14,5,15,5,16,5,3
Where apparently the Lines has the format ProviderId,LineId (our Tapi
Provider Id is 5 I assume), so we have SEDAPPSLAB\ataylor assigned to
13 different Lines.
Then thru "mmc / TAPIMGMT.MSC" if I add a 14th Line to user Auby
Taylor the tsec.ini file entry now looks like this
[SEDAPPSLAB\ataylor]
FriendlyUserName=Auby Taylor
Lines=5,5,5,6,5,7,5,8,5,9,5,10,5,11,5,12,5,13,5,14,5,15,5,16,5,3,5,17
And at the end you can see the 14th Line (5,17) added (everything
good).
Now if I run "mmc / TAPIMGMT.MSC" again to add a 15th line (Line 1026)
to Auby Taylor, the Gui acts like it got added and I see Line 1026
associated with
user Auby Taylor, but if I look at the tsec.ini file, it has not
changed, it still has the same 14 Line entries (the 15th Line entry
never got added to the file).
Looking at ProcessMonitor I do see the file being written to, but
apparently its just writing the same data.
If I exit "mmc / TAPIMGMT.MSC" and then re-run "mmc / TAPIMGMT.MSC" it
then shows Auby Taylor only associated with 14 Lines as they are in
the tsec.ini file.
If I manually edit the tsec.ini file add a 15th Line to user Auby
Taylor, and then bring up "mmc / TAPIMGMT.MSC", it properly displays
Auby Taylor associated
to the 15 Lines just fine (don't know yet whether the Service provider
actually works yet, we are in the process of testing that).
The original developer for the Tapi Service provider no longer works
for the company, but looking at the code I do not see anywhere
where tsec.ini file is getting opened/created. This apparently is
something done within the Microsoft Tapi code and not in the service
provider.
If the tsec.ini data is maintained by the service provider, where is
that being done. No where do I see any user information at all. I see
where
TUISPI_providerConfig: allows a PBX to be assigned.
TUISPI_lineConfigDialog: allows a line and the sublines to be assigned
to a PBX
TUISPI_phoneConfigDialog: this is treated the same as a
TUISPI_lineConfigDialog
But no where do I see any API that deals with assigning a user to a
line/address and I don't see the Gui that is displayed from "mmc /
TAPIMGMT.MSC" for
assigning Users to extensions.
Also I do not see a Dialog Box in the code that has Users to Lines
like is displayed by the "mmc / TAPIMGMT.MSC" gui (I wish I could
attach a .PNG file to show the Gui I am talking about).
We also found the "tsecimp" command which allows you to modify/read
the tsec.ini file, and it also only is able to assign a User to 14
lines or less lines.
The customer is saying they were able to do this before when using
W2k3 and our older Tapi service provider, but upgrading to W2k8 and
our latest Tapi service provider is no longer working.
So exactly who is writing to this C:\WINDOWS\TAPI\tsec.ini file and
why won't the "mmc / TAPIMGMT.MSC" Gui assign a user to more than 14
Lines.