Giter VIP home page Giter VIP logo

itapi3's People

Contributors

markjulmar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

itapi3's Issues

Empty wave file when recording a call

When I run the code a empty wave file is created but when finished the applications this file is deleted.
I'm using a modem HIRO V.92 Model: H50113.
This application i will to use for access control the guest to residents in a housing subdivision.
My code is:

 private void OnDial(object sender, EventArgs e)
        {
            TAddress addr = (TAddress) cbAddress.SelectedItem;
            LINEADDRESSTYPES addrType = (LINEADDRESSTYPES) cbDestinationType.SelectedItem;

            TAPIMEDIATYPES mediaType = TAPIMEDIATYPES.AUDIO;
            if (addr.QueryMediaType(TAPIMEDIATYPES.VIDEO))
                mediaType |= TAPIMEDIATYPES.VIDEO;

            try
            {
                addr.Open(mediaType);
            }
            catch (TapiException ex)
            {
                if (ex.ErrorCode == unchecked((int) 0x80040004))
                {
                    try
                    {
                        addr.Open(TAPIMEDIATYPES.DATAMODEM);
                    }
                    catch (Exception exception)
                    {
                        toolStripStatusLabel1.Text = exception.Message;
                    }

                }
                else
                {
                    toolStripStatusLabel1.Text = ex.Message;
                }
                
            }

            currCall = addr.CreateCall(textDestination.Text, addrType, mediaType);
            if (currCall != null)
            {
                try
                {
                    playBackTerminal = currCall.RequestTerminal(
                        TTerminal.FilePlaybackTerminal,
                        TAPIMEDIATYPES.AUDIO, TERMINAL_DIRECTION.TD_CAPTURE
                    );

                    if (playBackTerminal != null)
                    {
                        playBackTerminal.MediaPlayList = new string[] {PLAY_FILENAME};
                    }
                    else
                    {
                        MessageBox.Show("Failed to retrieve playback terminal.");
                    }
                    RecordConversation();
                }
                catch (TapiException ex)
                {
                    MessageBox.Show("On Dial: " + ex.Message);
                }

                try
                {
                    currCall.Connect(false);
                    toolStripStatusLabel1.Text = "Placing call";
                }
                catch (TapiException ex)
                {
                    toolStripStatusLabel1.Text = ex.Message;
                }
            }
        }

        private void RecordConversation()
        {
            if (currCall != null)
            {
                try
                {
                    recordTerminal = currCall.RequestTerminal(
                        TTerminal.FileRecordingTerminal,
                        TAPIMEDIATYPES.MULTITRACK,
                        TERMINAL_DIRECTION.TD_RENDER
                    );

                    if (recordTerminal != null)
                    {
                        recordTerminal.RecordFileName = "PETER-GRABACIÓN.wav";
                        currCall.SelectTerminalOnCall(recordTerminal);
                        recordTerminal.Start();
                    }
                    else
                    {
                        MessageBox.Show("Error al grabar");
                    }
                }
                catch (TapiException ex)
                {
                    MessageBox.Show(ex.ToString());
                }
            }
        }

Thank you in avanced.

Compiled DLLs

Hi

I'm having trouble building the C++ part. Does the ITapi3.dll exist somewhere (or could it be put here for download)?
Same thing for Interop.QuartzTypeLib

thanks in advance

Only .Net 2.0 allowed?

It is 2018 and its still not allowed with new .net...
Can you compile a new version?
I don't have c++ installed on my pc.

Thanks in advance

Terminal is null on call

In the OutgoingSample sample, I get a null TTErminal object when the call is created, specifically in this part of the code
playbackTerminal = currCall.RequestTerminal(
TTerminal.MediaStreamTerminal,
TAPIMEDIATYPES.AUDIO, TERMINAL_DIRECTION.TD_CAPTURE);
I am working with an Avaya IP500 v2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.