Re: ITBasicCallControl2 does not have CreateTerminal function

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks,
The examples which use createTerminal dont work on my notebook. (Outgoing
and tapisend). I dont know why but theres got to be a reason. I spent a lot
of time on them and more or less understood whats going on in those codes.
But since sample codes dont work on my notebook, I didnt think its a very
good idea to write any other code based on them. Can you confirm that
tapisend and outgoing works on Windows XP ?(If so, I will try to borrow
another pc (not easy) and try them on those)
So as you said I modified the fileterm since it works fine on my laptop. It
uses requestTerminal. Thats why I insisted on using requestTerminal.
Honestly I am neither a programmer nor interested in telephony applications.
(I kinda started to get interested though) I am developing video processing
applications for security systems for my advisor and he told me to add
telephone, fax, e-mail, etc... properties to the system to notify the users.
I didnt have any problem with other things (like fax, etc). But this Tapi
3.1 is the worst documented thing I have ever encountered in microsoft
libraries. I am kinda disappointed with microsoft, too. They are always
bragging about the support they provide(I dont see any microsoft people
here), there were lots of people which helped me on Linux forums while
developing similar things. There are some errors in the sample codes on the
msdn. they might seem like simple mistakes for experienced programmers but
It makes the situation pretty hard for beginners. Especially since
experienced users advise us to look at those wrong codes which makes us
think that they are true but we just dont get it. Since there are lots of
things we really dont get , we cant trust our own judgements till we improve
our knowledge on the subject. Anyways, Is there any book related to Tapi 3.1
or tutorial you know ? Especially I prefer e-books. This is not gonna work
with MSDN, thats for sure. I have less than 5 days to finish the whole
project. So if you know any code(which works) that makes a call and plays a
sound file that would be great, too, Sorry for the stupid questions but I am
working on 10 different microsoft libraries now and its not easy.

Thanks again.
Necati



"Matthias Moetje" <moetje@xxxxxxxxxxxxxxxxxxx> wrote in message
news:%23zI2PqDeFHA.1328@xxxxxxxxxxxxxxxxxxxxxxx
> Necati,
>
> currently I have no idea what could be wrong. When you say
> that the fileterm sample works then I'd say nothing is wrong
> with your system but most probably something is wrong with
> your code.
>
> Why do you insist on the RequestTerminal instead of CreateTerminal?
> If you are unsure, then just try the other method to confirm or deny!
> I think that's a basic procedure all programmers are forced to follow
> at some point. I don't believe that it makes a difference, but if you
> think
> then just try it and you'll know.
>
> You say that the fileterm sample is working. Why not modify the fileterm
> sample for outoing calls? Or just copy&paste the relevant media playback
> related code into your project?
>
> Don't expect to get results too fast. The development of our telephony
> server has taken a very long time and more than half of the time was
> needed to implement things in different ways to find out and pick the
> method which is most efficient. (e.g. we have implemented 7 different
> methods of audio playback and file terminals weren't even among
> those). I admit that this is sometimes very frustrating, but I can only
> suggest to keep on trying!
>
> Best regards,
>
> Matthias Moetje
> -------------------------------------
> TERASENS GmbH
> Ackermannstraße 3
> 80797 München
> -------------------------------------
> Fon: +49 89 143370-0
> Fax: +49 89 143370-22
> e-mail: moetje at terasens dot de
> www: www.terasens.de
> -------------------------------------
>
> "caglar ari" <cari@xxxxxxxxxxxxxxxxx> wrote in message
> news:OGCAVLBeFHA.3028@xxxxxxxxxxxxxxxxxxxxxxx
>> Thanks,
>> I hope you will warn them. you advised me to look at the simple playback
>> example. Since you confirmed that it is wrong, do you have any other
>> suggestion for me ? Should I use the logic in the outgoing sample code
>> ?(find stream then select terminal on it etc..) I used requestTerminal
>> instead of createTerminal but I havent managed to hear the sound on the
>> other side. Do you know anybody who tried to make a call and play the wav
>
>> file using requestTerminal. It works fine for answering , in fileterm for
>> instance (I can confirm that but it calls g_pCall->answer() function at
> the
>> end and I have no idea about what that function does) . Could
>> requestTerminal be specific for answering ? (I dont think so) Actually
>> my
>> code doesnt give any error. I checked all of the returned values using
>> if
>> statements and they are all fine. I just dont hear the sound on the other
>> side. My operating system is windows XP SP2. Could there be any reason
>> related to operating system that makes tapisend not play the sound ?
>> Actually it works it just cant play the sound file giving a error message
>> which means that the stream is not ready. Since Tapisend also doesn't
>> play
>> sound on my notebook and as far as I have seen from the messages there
>> are
>> lots people who think that it works, my code may also be fine but there
>> is
>> something wrong with my system. Is this possible ?
>>
>> Thanks a lot,
>> Necati
>>
>> "Matthias Moetje" <moetje@xxxxxxxxxxxxxxxxxxx> wrote in message
>> news:%23WKbAqAeFHA.3808@xxxxxxxxxxxxxxxxxxxxxxx
>> > Caglar,
>> >
>> >> ITTerminalSupport ? And Why did they use TD_RENDER, isnt TD_RENDER for
>> >> incoming sound, did they try to listen something then play that sound
>> >> back
>> > ?
>> >> Why didn't they change it to TD_CAPTURE afterwards ?
>> >
>> > You are again right, this is another error in the mentioned sample.
> Seems
>> > this code has never been tested. (On the bottom they are correctly
>> > mentioning
>> > a capture stream).
>> >
>> > BTW you can't change the terminal direction once the terminal is
> created.
>> >
>> >
>> > Best regards,
>> >
>> > Matthias Moetje
>> > -------------------------------------
>> > TERASENS GmbH
>> > Ackermannstraße 3
>> > 80797 München
>> > -------------------------------------
>> > Fon: +49 89 143370-0
>> > Fax: +49 89 143370-22
>> > e-mail: moetje at terasens dot de
>> > www: www.terasens.de
>> > -------------------------------------
>> >
>> > "caglar ari" <cari@xxxxxxxxxxxxxxxxx> wrote in message
>> > news:%23r6KOw%23dFHA.3488@xxxxxxxxxxxxxxxxxxxxxxx
>> >> Hi,
>> >> in the page
>> >>
>> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tapi/tapi3/simple_playback.asp
>> >> They also used CreateTerminal. It seems like pCall is
> ITBasicCallControl
>> > or
>> >> ITBasicCallControl2 (probably ITBasicCallControl2 calling
> requestTerminal
>> >> not CreateTerminal ) is this assumption true ? Or is pCall used for
>> >> ITTerminalSupport ? And Why did they use TD_RENDER, isnt TD_RENDER for
>> >> incoming sound, did they try to listen something then play that sound
>> >> back
>> > ?
>> >> Why didn't they change it to TD_CAPTURE afterwards ?
>> >>
>> >> ITTerminal *pFilePlaybackTerminal = NULL;
>> >>
>> >> pCall->CreateTerminal(
>> >> CLSID_FilePlaybackTerminal,
>> >> TD_RENDER,
>> >> TAPIMEDIATYPE_MultiTrack,
>> >> &pFileTerminal
>> >> );
>> >>
>> >> "Matthias Moetje" <moetje@xxxxxxxxxxxxxxxxxxx> wrote in message
>> >> news:u1HMFU%23dFHA.1448@xxxxxxxxxxxxxxxxxxxxxxx
>> >> > Caglar,
>> >> >
>> >> > you are right this is an error on MSDN. It should be RequestTerminal
>> >> > instead of CreateTerminal.
>> >> >
>> >> > Maybe Andreas can use his contacts to have this corrected...
>> >> >
>> >> > Best regards,
>> >> >
>> >> > Matthias Moetje
>> >> > -------------------------------------
>> >> > TERASENS GmbH
>> >> > Ackermannstraße 3
>> >> > 80797 München
>> >> > -------------------------------------
>> >> > Fon: +49 89 143370-0
>> >> > Fax: +49 89 143370-22
>> >> > e-mail: moetje at terasens dot de
>> >> > www: www.terasens.de
>> >> > -------------------------------------
>> >> >
>> >> > "caglar ari" <cari@xxxxxxxxxxxxxxxxx> wrote in message
>> >> > news:%23dcXOh9dFHA.1036@xxxxxxxxxxxxxxxxxxxxxxx
>> >> >> Hi,
>> >> >> in the page
>> >> >>
>> >> >
>> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tapi/tapi3/using_multitrack_terminals_and_the_default_selection_mechanism.asp
>> >> >>
>> >> >> there is an example
>> >> >>
>> >> >> ITBasicCallControl2 *pCallControl2 = NULL;
>> >> >>
>> >> >> hr = pCallInfo->QueryInterface( IID_ITBasicCallControl2,
>> >> >> (void**)&pCallControl2);
>> >> >>
>> >> >> // If (hr != S-OK) process the error here.
>> >> >>
>> >> >> // Create the terminal for file recording.
>> >> >> ITTerminal *pFileRecordingTerminal = NULL;
>> >> >>
>> >> >> hr = pCallControl2->CreateTerminal(
>> >> >> CLSID_FileRecordTerminal,
>> >> >> TAPIMEDIATYPE_MULTITRACK ,
>> >> >> TD_MULTITRACK_MIXED,
>> >> >> &pFileRecordingTerminal);
>> >> >>
>> >> >> However When I tried to use it, compiler gives an error saying
>> >> >> ITBasicCallControl2 does not have a CreateTerminal function.
> According
>> > to
>> >> >> the msdn documents it does not have, ITTerminalSupport has that
>> > funxtion.
>> >> > Am
>> >> >> I doing something wrong ? Does ITBasicCallControl2 have that
> function
>> >> >> ?
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>


.



Relevant Pages

  • Re: Little Effects Discussion
    ... I just dont really like it. ... I did play around with its highest ... the coolest sound.. ... Just about all 4 stage phasers are excellent. ...
    (alt.guitar)
  • HELP WOULD BE GREATLY APPRECIATED!!! :)
    ... appartly i dont have a sound card in my computer and i dont know how i can go ... when trying to play something in media player i get this message: ... your sound device. ... I tried going to add new hardware to no luck, it could find driver... ...
    (microsoft.public.windowsmedia.player)
  • Re: best materials
    ... All three are vastly superior to my 1951 ES 125. ... All three sound ... and play great. ...  But I dont understand this kind of shit "if you sound bad on your ...
    (rec.music.makers.guitar.jazz)
  • Re: How to play direct into PC and a program like Amplitube without latency?
    ... dont want to buy it if i cant sort out this problem and ive only got 9 days ... from that moment on whenever i strum a string there's latency. ... So i've either got a choice of being able to play with no latency but very ... My PC is a 1.6ghz CPU with 2gb RAM, and soundcard is Creative Labs Sound ...
    (alt.guitar)
  • tapisend using CME_STREAM_ACTIVE
    ... I tried to modify fileterm so that I can make a call and then play the wav ... structure in outgoing sample or tapisend. ... I can see the details but I dont see the overall picture. ...
    (microsoft.public.win32.programmer.tapi)