locked
Tapi play6wav cant create ITTrminal/support RRS feed

  • Question

  • ha all

    i am developing a tapi sln, and already have makecall and incoming call working

    BUT now a am trying to play a wav to the call and keep getting casting problems when trying to create the ITTerminal/Support objects (C#)

    here's what i do:

    1.              ITAddress lineAddress = myAddressAll[sta.Station];
                    ITCallInfo ici = (ITCallInfo)myCall;
                    ITTerminalSupport myTerminalSupport = (ITTerminalSupport)lineAddress;
                    NOINTERFACE exception

    2.                 ITAddress lineAddress = myAddressAll[sta.Station];
                    ITCallInfo ici = (ITCallInfo)myCall;
                    ITBasicCallControl2 myCallControl2 = (ITBasicCallControl2)ici;
                    TAPI3Lib.ITTerminal playbackTerminal;
                    TAPI3Lib.TERMINAL_DIRECTION capture = TAPI3Lib.TERMINAL_DIRECTION.TD_CAPTURE;
                     playbackTerminal = myCallControl2.RequestTerminal(
                        TapiConstants.CLSID_String_FilePlaybackTerminal,
                        TapiConstants.TAPIMEDIATYPE_AUDIO,
                        capture);

                       specific cast is not valid exception

    plz help

    ariel

    • Moved by Lie You Thursday, March 8, 2012 2:58 AM Move it for better support. (From:.NET Base Class Library)
    Tuesday, March 6, 2012 7:55 AM

All replies

  • from all the research it seem that perhaps this ipecs telephony simply do not support terminal, maybe they only implemented tapi2 
    Monday, June 4, 2012 11:02 AM