I'm developing an application by TAPI technology in C#.
Suppose that I want to make a call to an organization that has a central device. I want when the target machine answers the phone line, my app dials the second number that is an internal number to that organization. I don't know how to dial the second number.
For example I want to call +1234567890 and when the phone line is answered, I want to dial 101 that is an internal number. My app dial's the first part of number perfectly, but i don't know how to code the second part.
numberList = "001234567890#101".Split('#');
tapiManager = new TapiManager(ProjectName);
tapiManager.Initialize();
lineName = (tapiManager != null && tapiManager.Lines.Length > 0 ? tapiManager.Lines[0].Name : string.Empty);
tapiline = tapiManager.GetLineByName(lineName, true);
if (tapiline == null)
tapiline = tapiManager.GetLineByName(lineName, true);
if (!tapiline.IsOpen)
tapiline.Open(MediaModes.DataModem);
makeCallParams = new MakeCallParams();
makeCallParams.DialPause = 2000;
tapiCall = tapiline.MakeCall(numberList[0], null, makeCallParams);
As you see the last line of my code dials the first number, but I can't find a way to dial the second part.
Any ideas about how I can do that?
This very much depends on what this central device is and how it handles your call, so I'll give a few examples: