Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-23-2012, 01:44 PM   PM User | #1
Joe327
New to the CF scene

 
Join Date: Apr 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Joe327 is an unknown quantity at this point
Help to create sample from VB .NET into C# .NET

Hello,

I have a task to build an application which also needs to have DTMF and IVR features in it. It needs to be written in C#.

I came across a site that provides several sample programs which use an SDK called Ozeki SIP SDK. I found an example which would be perfect for my needs: http://www.*****************/p_331-v...-ivr-voip.html

The only thing is that it is written in VB. NET.

I would like to ask for your help and how can I change the programming language?

Thank you.
Joe327 is offline   Reply With Quote
Old 04-23-2012, 01:46 PM   PM User | #2
Joe327
New to the CF scene

 
Join Date: Apr 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Joe327 is an unknown quantity at this point
Oh great...

Sorry did not know about the restriction of posting links. You can google to: 'Visual Basic .NET DTMF IVR'

Thanks again
Joe327 is offline   Reply With Quote
Old 04-23-2012, 03:51 PM   PM User | #3
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
http://www.developerfusion.com/tools.../vb-to-csharp/

is that what you are asking?
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Old 09-25-2012, 01:45 PM   PM User | #4
Niko68
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Niko68 is an unknown quantity at this point
How to build the IVR tree

I am working on building the IVR tree and I am testing an IVR example program. I am really satisfied with my library which is provided by the Ozeki VoIP SIP SDK. So here is the solution:

This IVR example is a standard softphone program with some changes in the code, therefore I had to handle calls and call states. The program automatically accepts the incoming calls. As for the call states, in case of the InCall state I had to make the proper MediaHandler connection in order to make the program work properly.

The PhoneCallAudioSender object needs to be connected to the TextToSpeech object that will read up the IVR nose messages, and the PhoneCallAudioReceiver and the SpeechToText objects need to be connected together. When both the sender and the receiver are attached to the call, the TextToSpeech object can be started and the main menu message will be read up.
You can see that there is no microphone or speaker used in this example program. This is because the program works automatically and does not need human interactions. If it was a fully featured IVR program, it would contain some call transferring for having the line given to a human operator, but this example only demonstrates how we can navigate the IVR tree with voice instructions.

1. private void call_CallStateChanged(object sender, VoIPEventArgs<CallState> e)
2. {
3. InvokeGUIThread(() => { label1.Text = e.Item.ToString(); });
4.
5. switch (e.Item)
6. {
7. case CallState.InCall:
8.
9. connector.Connect(ivrReader, mediaSender);
10. connector.Connect(mediaReceiver, navigator);
11.
12. mediaSender.AttachToCall(call);
13. mediaReceiver.AttachToCall(call);
14.
15. ivrReader.AddAndStartText(selectedNode.message);
16.
17. break;

If you wish you can read more about the topic at voip-sip-sdk com/p_412-voip-ivr-voice-navigation-voip.html.

Regards,
Niko
Niko68 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:55 PM.


Advertisement
Log in to turn off these ads.