.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Articles >> General >> Post New Resource Bookmark and Share   

 Subscribe to Articles

How to create a voice conference room

Posted By:Evan Miller       Posted Date: July 07, 2011    Points: 200    Category: General    URL: http://www.dotnetspark.com  

This article is about the making of your own voice conference room which is much more practical than the original conference calls.

Creating your own conference room is better than making an appointment for a traditional conference call because if you have your own application for this purpose then you don't need to book a date in advance for a conference call. This makes conferencing available 24/7. The following article was made for those who see the potential in this method and think it will be useful for them, or their company. It presents a software development kit that can easily help you in creating your own voice conference room. To test the sdk's facilities, there is a sample program to download. I've added the link to the end of this article.


The configuration steps are the following:


1.     After you have downloaded and extracted the Ozeki Voice Conference Room example, you need to load it into Visual Studio 2010.


2.     To operate the program properly you need to make some configuration in the telephone initialization section of the PhoneForm.vb file:


1.    private void InitializeSoftPhone()  

2.        {  

3.            try  

4.            {  

5.                softPhone = SoftPhoneFactory.CreateSoftPhone("", 5700, 5750, 5700);   

6.    oftPhone.ChangeNATSettings(NATTraversalMethodType.NONE, "", "", "");  

7.                softPhone.IncommingCall += new EventHandler>(softPhone_IncomingCall);  

8.                phoneLine = softPhone.CreatePhoneLine(new SIPAccount(true, "oz871", "oz871", "oz871", "oz871", "", 5060));  

9.                phoneLine.PhoneLineInformation += new EventHandler>(phoneLine_PhoneLineInformation);  


11.                                   softPhone.RegisterPhoneLine(phoneLine);  

12.                                   mixer = new AudioMixer();  

13.                                   mixer.FrameMixingCompleted += new EventHandler>(mixer_FrameMixingCompleted);  


15.                               }  

16.                               catch (Exception ex)  

17.                               {  

18.                                   MessageBox.Show(String.Format("You didn't give your local IP adress, so the program won't run properly.\n {0}", ex.Message), string.Empty, MessageBoxButtons.OK,  

19.                                   MessageBoxIcon.Error);  

20.                               }  

21.                           }  


In the telephone initialization section of the PhoneForm.vb file search for the following line:


1.    softPhone = SoftPhoneFactory.CreateSoftPhone("your local IP Address", 5700, 5750, 5780, Nothing)  


Replace the local IP address of the PC on which the system runs instead of "your local IP Address".
Also set that the NAT should be between the softphone and the SIP server. This setting depends on the environment (depends on the construction of the network). If this setting is specified incorrectly, audio data from the remote end will not be received during the phone call.

As a next step you also need to provide the user data of your selected SIP PBX as the SIP account object values. This will determine which of the users wish to register in the given SIP PBX. Search for the following line:


1.    phoneLine = softPhone.CreatePhoneLine(new SIPAccount(True, "oz891", "oz891", "oz891", "oz891", "", 5060))  


'True' is the registrationRequired parameter. This parameter is a true value that allows to receive calls (not just initiate calls) if the registration is successful. Registration with 'False' value only allows to initiate calls (not allows to receive calls).

In the example, the "oz891" represents the SipAccount displayname, username, registername and registerpassword. The next two parameters are the IP or domain address of the SIP PBX and its port number.


3. Finally, you only need to build and run the program.


The sample program displays incoming calls on the interface. Therefore, the user can accept or reject the incoming calls easily. The program also offers the option of automatic response. Automatic response means that incoming calls are automatically accepted.

I think this article contains just the right amount of information to decide whether you want to create a voice conference room or not. If you do, this sdk can really help you a lot (especially if you are in lack of time but try for accuracy). But check out the sample program yourself:


 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend