Discussion:
Tapi play wav
(too old to reply)
b***@gmail.com
2012-03-06 07:30:32 UTC
Permalink
hi all

i am developing a Tapi service in my workplace, and the make call and incoming call works fine
now i am trying to play a wav file to the call but keep getting casting problems
i currently try 2 ways, both giving exceptions when trying to make ITTerminal/Support:

1. ITAddress lineAddress = myAddressAll[sta.Station];
ITCallInfo ici = (ITCallInfo)myCall;
ITTerminalSupport myTerminalSupport = (ITTerminalSupport)lineAddress;
--> catch : NOINTERFACE

2. ITAddress lineAddress = myAddressAll[sta.Station];
ITCallInfo ici = (ITCallInfo)myCall;
ITBasicCallControl2 myCallControl2 = (ITBasicCallControl2)ici;
ITTerminal playbackTerminal;
TERMINAL_DIRECTION capture = TAPI3Lib.TERMINAL_DIRECTION.TD_CAPTURE;
playbackTerminal = myCallControl2.RequestTerminal(
TapiConstants.CLSID_String_FilePlaybackTerminal,
TapiConstants.TAPIMEDIATYPE_AUDIO,
capture);
--> catch : specific xast is not valid

please help me
ariel
Andreas Marschall [exMVP TAPI]
2012-03-06 12:58:07 UTC
Permalink
Ariel,
What OS are you using?
What device / TSP are you using?

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion.  Private mail is usually not repliedto.
* This posting is provided "AS IS" with no warranties, and confers norights.
Loading...