markjulmar / itapi3 Goto Github PK
View Code? Open in Web Editor NEWC++/CLI TAPI 3.0 client .NET wrapper
Home Page: http://www.julmar.com
License: MIT License
C++/CLI TAPI 3.0 client .NET wrapper
Home Page: http://www.julmar.com
License: MIT License
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.
I cant understand how can I add ITapı to a project. can you help?
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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.