IVR / Dialogic library
I'm developing an Interactive Voice Responce system that works accross a Dialogic D/4PCI board. I downloaded the system release drivers from Intel, but there doesn't seem to be a library that will enable me to develop the system in C#. (Their samples are all in C, and converting them to C++ gave endless errors) I have found some relevant libraries (dll's) online, but they cost quite a bit of money and I would obviously prefer something free. There is a service running on the machine called 'Dialogic'. Could I access the board's functionality through this?
Any information about accessing the hardware through C# would also help.
I know this might be an obscure request, but any pointers will be greatly appreciated.
Niklas JarviPosted Jan 21, 2013, 5:53 AM
I have been stuck in the process of IVR development and I need some help. I found a webpage (which you can check if you click here) but I would like to ask you to send me source codes and explanations if you can. I put the code I have found below. It can be good strating point for others too.
The code below shows the method that handles the PBX registration. Getting data from the
application configuration file is really simple with the ConfigurationManager.AppSettings
object. This can directly reach the data in the app.config file specified by the key
elements. This method needs to be called directly after the softphone initialization as it
needs an initialized softphone object to work properly.
private void register()
{
try
{
var cm = ConfigurationManager.AppSettings;
IsRegRequired = bool.Parse(cm["IsRegRequired"]);
displayname = cm["displayname"];
username = cm["username"];
registername = cm["registername"];
regpass = cm["regpass"];
domainhost = cm["domainhost"];
port = Int32.Parse(cm["port"]);
switch (Int32.Parse(cm["nat"]))
{
case 0:
natTraversal = NatTraversalMethod.None;
break;
case 1:
natTraversal = NatTraversalMethod.STUN;
break;
case 2:
natTraversal = NatTraversalMethod.TURN;
break;
}
SIPAccount sa = new SIPAccount(IsRegRequired, displayname, username, registername,
regpass, domainhost, port);
NatConfiguration nc = new NatConfiguration(natTraversal);
phoneLine = softPhone.CreatePhoneLine(sa, nc);
phoneLine.PhoneLineStateChanged += new EventHandler
(phoneLine_PhoneLineInformation);
softPhone.RegisterPhoneLine(phoneLine);
}
catch (Exception ex)
{
...
}
}
I am waiting for your advices.
Have a nice day,
Niko
Ian EclePosted Apr 19, 2012, 4:25 AM
madinewalaPosted Aug 5, 2004, 7:07 AM