• 大小: 2.03M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: IP  C#  VOIP  

资源简介

This is a C# based simple SIP (VOIP) call-out phone. This SIP application was developed and is currently in use as "Help -> Call to support". The idea was to create a zero configuration, very simple call-out phone, and that is how it is now (though IP based incoming calls are supported; example: sip:test@ip:7666, 7666 is the port SIP_Call out runs).

Currently, this application runs on Windows only. For some reason .NET "still" has no managed support for audio-in and audio-out. The audio part uses the unmanaged Windows wave API.

I tried to make the example application well organized, clear, and well commented - don't know how it turned out, you can be the judge. For beginners, I suggest you Google and read some SIP introduction, otherwise you will never get what is going on.

Because the code is full of comments, I think there is no need for a lot of explanation here; just dig into the code.

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace LumiSoft.SIP.UA
{
    /// 
    /// Application main class.
    /// 

    static class Program
    {
        #region static method Main

        /// 
        /// The main entry point for the application.
        /// 

        /// Command line arguments.
        [STAThread]
        public static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += delegate(object senderUnhandledExceptionEventArgs e){
                MessageBox.Show(“Error: “ + ((Exception)e.Exceptionobject).Message“Error:“MessageBoxButtons.OKMessageBoxIcon.Error);
            };
            A

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-12-21 13:10  SIP_CallOut\bin\
     目录           0  2010-12-21 13:10  SIP_CallOut\bin\Debug\
     文件     1081344  2010-12-21 13:03  SIP_CallOut\bin\Debug\LumiSoft.Net.dll
     文件     2066007  2010-12-21 13:03  SIP_CallOut\bin\Debug\LumiSoft.Net.xml
     文件     1297920  2010-12-21 13:09  SIP_CallOut\bin\Debug\SIP_CallOut.exe
     文件       14328  2010-12-21 13:07  SIP_CallOut\bin\Debug\SIP_CallOut.vshost.exe
     文件         490  2007-07-21 02:33  SIP_CallOut\bin\Debug\SIP_CallOut.vshost.exe.manifest
     目录           0  2010-12-21 13:10  SIP_CallOut\obj\
     目录           0  2010-12-21 13:10  SIP_CallOut\obj\Debug\
     目录           0  2010-12-21 13:10  SIP_CallOut\obj\Debug\TempPE\
     目录           0  2010-12-21 13:10  SIP_CallOut\obj\Release\
     目录           0  2010-12-21 13:10  SIP_CallOut\obj\Release\TempPE\
     文件        1369  2010-12-21 13:09  SIP_CallOut\Program.cs
     目录           0  2010-12-21 13:10  SIP_CallOut\Properties\
     文件        1452  2010-10-15 08:13  SIP_CallOut\Properties\AssemblyInfo.cs
     文件        2857  2010-11-10 12:59  SIP_CallOut\Properties\Resources.Designer.cs
     文件        5612  2010-10-15 08:13  SIP_CallOut\Properties\Resources.resx
     文件        1096  2010-11-10 12:59  SIP_CallOut\Properties\Settings.Designer.cs
     文件         249  2010-10-15 08:13  SIP_CallOut\Properties\Settings.settings
     目录           0  2010-12-21 13:10  SIP_CallOut\Resources\
     文件       10134  2010-10-15 09:27  SIP_CallOut\Resources\app.ico
     文件      125706  2010-10-31 20:35  SIP_CallOut\Resources\busy.wav
     文件       10134  2010-10-15 09:19  SIP_CallOut\Resources\call.ico
     文件       10134  2010-10-15 09:19  SIP_CallOut\Resources\call_hangup.ico
     文件      231596  2010-10-22 15:45  SIP_CallOut\Resources\calling.wav
     文件      125706  2010-10-31 20:37  SIP_CallOut\Resources\hangup.wav
     文件       15086  2010-11-02 13:26  SIP_CallOut\Resources\mic.ico
     文件      485708  2010-10-31 17:46  SIP_CallOut\Resources\onhold.wav
     文件        2283  2010-11-10 13:00  SIP_CallOut\Resources\ResManager.cs
     文件       33120  2010-10-22 15:45  SIP_CallOut\Resources\ringing.wav
     文件      188757  2010-11-15 09:28  SIP_CallOut\Resources\router.ico
............此处省略7个文件信息

评论

共有 条评论