Solved

TAPI support on windows 7

Posted on 2010-09-09
1
1,206 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.NET MVC -Update model when click on <li> element 29 103
Convert Silverlight ERP To Angularjs,HTML5 3 108
Coding for the first time 9 100
async questions 5 48
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

739 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