Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9071747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:59:26+00:00 2026-06-16T17:59:26+00:00

I am having some trouble with the interop.tapi3lib.dll (which can be DL here: dllLink

  • 0

I am having some trouble with the interop.tapi3lib.dll (which can be DL here:dllLink)

For a reporting program i’m writing, i want to monitor all of the devices available by the tapi for their calls. Now this is working nicely when i fire up the program, although i suspect the dll is written with the purpose of modifying calls on a single extension, with very little code i can see all of the activity perfectly.

The problem arrises when a user logs out (or in) a phone (I’m using this for a cisco Callmanager). At that time i am able to capture the tapi_object which in turn can be used to determine which line is removed and added (old number and new number) but i can’t register the new address for sending events.

The exception when i try:

Value does not fall within the expected range.

  • because the tapiclass was created before this address was available i suspect.

At the moment i have done a test which creates a single tapiclass for each line individual and 1 tapiclass for monitoring the tapiobject event, but this is eating 10 times the memory for our company’s configuration (20 phones) so i dont even want to test this at the target site (+300 phones). The other option (for i can think of) is to dispose the ‘old’ tapiclass and create a new one after, however i’m a bit concerned with either loosing events between, getting double events between and pingpong when multiple users log in/out (creating the class takes a couple of seconds with my program)

So, what i would really like is the option to

tapi.RegisterCallNotifications(ad, true, true, TAPI3Lib.TapiConstants.TAPIMEDIATYPE_AUDIO, 2);

for newly available lines.

Bit of background for answers 🙂
-I am fairly new to C#, completly new to COM-interop and i know the principles of C++, but ive never written anything in it.

Any help would greatly be appriciated. (also any comments about interop and such)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T17:59:28+00:00Added an answer on June 16, 2026 at 5:59 pm

    Hmm, turns out I was wrong. Adding the line for notification is possible and does not throw the exception. I think i didn’t remove the old line before adding the new in my old sample.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Am having some trouble with the SkyDrive download process and hoping you can help
Im having some trouble writing a getstring function, this is what I have so
I am having trouble releasing Excel Interop Com Objects which is causing my c#
Having some trouble understanding the right approach here. I have a connection to a
I´m having some trouble deciding in which way to go... I've got this application
Having some trouble with NSUserDefaults here. Here's how I'm creating it: NSString *theCity =
Im having some trouble with a linq query into an xml tree. Here is
Having some trouble getting this to work... I basically want the report to look
Having some trouble understanding variable scope within a class structure. I want to create
having some trouble with this can't understand why it won't work properly. http://host.philmadelphia2.com/~clare/order/ when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.