如何使用 C# 构建软电话(使用 SIP 协议)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1067692/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 07:26:01  来源:igfitidea点击:

How to build a softphone (using SIP protocol) using C#

c#voipsip

提问by Srikanth V M

I have this challenge to build an sip softphone using c# or .net technologies.

我面临着使用 c# 或 .net 技术构建 sip 软电话的挑战。

Please guide me the technology, requirements and specifications that is needed to build such.

请指导我构建此类所需的技术、要求和规范。

Possible requirements:

可能的要求:

Supported codecs:

支持的编解码器:

G.722.1, G.723.1, G.726, G.728, G.711, G.729, G.723.1, iLBC,: G.711 (A and m-law),G.729A/B/D/E, AMR, GSM 6.10/EFR, iLBC, Speex

G.722.1, G.723.1, G.726, G.728, G.711, G.729, G.723.1, iLBC,: G.711 (A and m-law),G.729A/B/D/ E、AMR、GSM 6.10/EFR、iLBC、Speex

  • Voice:

    Real time Quality Monitoring (MOS) 3 independent phone lines
    Auto-Answer/Do Not Disturb Call
    Forwarding Full Duplex Audio
    Recording compress the audio data.

  • Fully SIP compatible softphone/dialer for PC2Phone and Mobile2Phone (iPhone, Nokia N95) application with symbian s60 , full source code should provide.

  • Compatible with Windows 2000/XP/2003/Vista/Mac

  • NAT/Firewall traversal feature

  • Works with any 3rd party SIP Server

  • Supports SIP outbound proxy

  • Displays callers account balance

  • Displays call credit time

  • Automatic Echo Cancellation

  • Automatic jitter buffer adjustment

  • Last number Redial

  • History of 10 last dialed numbers

  • Quick dial user list

  • Quick provision for customers, only user name and password required

  • 语音:

    实时质量监控 (MOS) 3 条独立电话线
    自动应答/请勿打扰呼叫
    转移全双工
    录音压缩音频数据。

  • 与 symbian s60 完全兼容的 PC2Phone 和 Mobile2Phone(iPhone、诺基亚 N95)应用程序的 SIP 兼容软电话/拨号器,应提供完整的源代码。

  • 兼容 Windows 2000/XP/2003/Vista/Mac

  • NAT/防火墙穿越功能

  • 适用于任何第 3 方 SIP 服务器

  • 支持SIP出站代理

  • 显示来电者帐户余额

  • 显示通话信用时间

  • 自动回声消除

  • 自动抖动缓冲调整

  • 最后号码重拨

  • 最后拨打的 10 个号码的历史记录

  • 快速拨号用户列表

  • 为客户快速开通,只需要用户名和密码

回答by abhilash

Here are a few pointers

这里有一些提示

  • See thisarticle on Code Project for implementing an SIP stack in C#
  • See thispost for audio compression using LAME
  • 请参阅有关代码项目的这篇文章,以在 C# 中实现 SIP 堆栈
  • 有关使用LAME进行音频压缩的信息,请参阅帖子

回答by yogman

Microsoft Real-Time Communications: Protocols and Technologies http://technet.microsoft.com/en-us/library/bb457036.aspx

Microsoft 实时通信:协议和技术 http://technet.microsoft.com/en-us/library/bb457036.aspx

回答by jnielsen

Konnetic provide fully managed SIP components for .NET development.

Konnetic 为 .NET 开发提供完全托管的 SIP 组件。

Their SIP .NETSDK is available here and is probably the most comprehensive. They also provide an MSRP library.

他们的SIP .NETSDK 可在此处获得,并且可能是最全面的。他们还提供了一个 MSRP 库。

Otherwise, Microsoft's Lync server comes with a very good managed SIP library, available here: www.microsoft.com/en-us/lync/default.aspx

否则,Microsoft 的 Lync 服务器带有一个非常好的托管 SIP 库,可在此处获得:www.microsoft.com/en-us/lync/default.aspx

回答by jwri

http://www.konnetic.comis a relatively new addition. Fully managed. Everything you need to work with SIP and SDP. They haven't picked the low-hanging fruit in the standard like a lot of the others. Just as good but tied to Microsoft is the Microsoft Lync server.

http://www.konnetic.com是一个相对较新的补充。全面管理。使用 SIP 和 SDP 所需的一切。他们没有像许多其他人一样在标准中摘取低垂的果实。Microsoft Lync 服务器同样出色但与 Microsoft 紧密相关。