Solved

TAPI support on windows 7

Posted on 2010-09-09
1
1,187 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
1 Comment
 
LVL 19

Accepted Solution

by:
Rimvis earned 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 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