Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
Hello
 
I am beginner in TAPI
I read TAPI3 structure in microsoft site and downloaded this project
 
Examples to create your Conferencing System in .NET, C# VOIP & Video Conferencing Systems using H.323 and TAPI 3[^]
and I tried to understand below code in this project
 
private void button1_Click(object sender, System.EventArgs e)
		{
			string addr=textBox1.Text;
			MessageBox.Show("Dialing to "+addr+" ...");
			call_control=call_address.CreateCall(addr,TapiConstants.LINEADDRESSTYPE_IPADDRESS,TapiConstants.TAPIMEDIATYPE_AUDIO | TapiConstants.TAPIMEDIATYPE_VIDEO);
			button1.Enabled=false;
			IEnumStream enum_stream;
			ITStreamControl pstream_control;
			pstream_control=(ITStreamControl)call_control;
			pstream_control.EnumerateStreams(out enum_stream);
			ITStream p_stream;
			uint a11=0;
			enum_stream.Next(1,out p_stream,ref a11);
			int imedia;
			imedia=p_stream.MediaType;
			TERMINAL_DIRECTION dir;
			dir=p_stream.Direction;
			ITTerminal termi,termi1;
				
			ITTerminalSupport term_support=(ITTerminalSupport)call_address;
			termi=term_support.GetDefaultStaticTerminal(imedia,dir);
			p_stream.SelectTerminal(termi);
 
			
 
			enum_stream.Next(1,out p_stream,ref a11);
			termi1=term_support.GetDefaultStaticTerminal(imedia,TERMINAL_DIRECTION.TD_CAPTURE);
			p_stream.SelectTerminal(termi1);
			call_control.Connect(false);
 
		}
 
 
But I can't understood code completely .
1-when TAPI create a call (in top of code) ,wait to answer or resume ?
2- what is the correct logic of the code(first create call then stream control that do ...) I want sure I understood correctly
 
I excuse that I create a question instead of comment under project. because of project has been created in 2010 and it's not active
 
tanks
Posted 25-Apr-13 23:29pm
Edited 25-Apr-13 23:33pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 BillWoodruff 360
1 Mathew Soji 309
2 DamithSL 225
3 Afzaal Ahmad Zeeshan 202
4 Maciej Los 190
0 OriginalGriff 6,249
1 Sergey Alexandrovich Kryukov 5,853
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 3,865


Advertise | Privacy | Mobile
Web04 | 2.8.1411019.1 | Last Updated 26 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100