?
Solved

TAPI support on windows 7

Posted on 2010-09-09
1
Medium Priority
?
1,218 Views
Last Modified: 2012-08-14
Hi.

I have the following C# code which works perfectly in Windows XP. However, when I run this on Windows 7, it doesn't work.

 
bool found = false;

                tapi = new TAPIClass();
                tapi.Initialize();
                
                call_notify = new callnotification();
                call_notify.addtolist = new callnotification.listshow(this.status);
                tapi.ITTAPIEventNotification_Event_Event += new TAPI3Lib.ITTAPIEventNotification_EventEventHandler(call_notify.Event);
                tapi.EventFilter = (int)(TAPI_EVENT.TE_CALLNOTIFICATION |
                    TAPI_EVENT.TE_DIGITEVENT |
                    TAPI_EVENT.TE_PHONEEVENT |
                    TAPI_EVENT.TE_CALLSTATE |
                    TAPI_EVENT.TE_GENERATEEVENT |
                    TAPI_EVENT.TE_GATHERDIGITS |
                    TAPI_EVENT.TE_REQUEST);
                

                ITCollection collec;
                ITAddress address;
                ITMediaSupport support;
                ITAddressCapabilities capability;
                collec = (ITCollection)tapi.Addresses;
                
                foreach (ITAddress addr in collec)
                {
                    
                    found = false;
                    address = addr;
                    support = (ITMediaSupport)address;
                    capability = (ITAddressCapabilities)address;
                    if (support.QueryMediaType(TapiConstants.TAPIMEDIATYPE_AUDIO))
                    {
                        
                        found = true;
                    }
                    capability = null;
                    support = null;
                    address = null;
                    if (found == true)
                    {                        
                        if (addr.AddressName.ToUpper() == "H323 LINE")
                        {                           
                            call_address = addr;
                        }
                        //break;
                    }
                }
                
                ////registration part
                registration = tapi.RegisterCallNotifications(call_address, true, true, TapiConstants.TAPIMEDIATYPE_AUDIO, 1);

Open in new window


The problem occurs at this portion: line 31
if (support.QueryMediaType(TapiConstants.TAPIMEDIATYPE_AUDIO))

This is never true in Windows 7, thus, my code doesn't work. I have already started up Telephony services in Win 7, what else do I need to do?

I'm using TAPI3Lib.dll
0
Comment
Question by:asischandra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
Rimvis earned 2000 total points
ID: 33636044
Hi asischandra,H323 protocol is not supported since Windows Vistahttp://www.i-b-a-m.de/Andreas_Marschall%27s_TAPI_and_TSPI_FAQ.htm#_Q:_What_about
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question