iOS:开源 VoIP/SIP Objective-C 代码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1493050/
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-09-03 22:16:30  来源:igfitidea点击:

iOS: Open Source VoIP/SIP Objective-C Code

iphoneobjective-copen-sourcevoipsip

提问by Richard Stelling

I have been tasked with investigating the feasibility of writing an iPhone App to access our internal VoIP/SIP systems.

我的任务是调查编写 iPhone 应用程序以访问我们内部 VoIP/SIP 系统的可行性。

I've never coded anything close to VoIP before. Are there any open source VoIP/SIP libraries or examples in C or Objective-C?

我以前从未编写过任何接近 VoIP 的代码。是否有 C 或 Objective-C 中的任何开源 VoIP/SIP 库或示例?

An iOS App that I can skin and add our required features to (mainly UI related) would be the holy grailhere.

一个我可以设置皮肤并向其中添加我们所需功能(主要是 UI 相关的)的 iOS 应用程序将是这里的圣杯

采纳答案by pgb

You may take a look at siphon (http://code.google.com/p/siphon/).

您可以查看 siphon ( http://code.google.com/p/siphon/)。

From their homepage:

从他们的主页:

Home of the World's first free SIP/VoIP application for iPhone and iPod Touch 1 and 2.

Siphon SIP/VoIP project is the first in his category that works on iPhone and iPod Touch 2 with headset for all SIP providers. It is a native application approved running on 2.X using internal micro/speaker and headset.

The Application supports the SIP standard, preserving compatibility with hundreds of SIP providers and offers a GUI which preserves the apple design of native iPhone applications.

世界上第一个适用于 iPhone 和 iPod Touch 1 和 2 的免费 SIP/VoIP 应用程序的主页。

Siphon SIP/VoIP 项目是他的类别中第一个适用于所有 SIP 提供商的带耳机的 iPhone 和 iPod Touch 2。它是使用内部微型/扬声器和耳机在 2.X 上运行的本机应用程序。

该应用程序支持 SIP 标准,保持与数百个 SIP 提供商的兼容性,并提供一个 GUI,保留原生 iPhone 应用程序的苹果设计。

回答by MrTJ

Although it's rather old thread, for reference I add here also pjsip: http://www.pjsip.orgthat has a quite mature iOS port nevertheless it is written in C and its API is also in C.

虽然它是相当老的线程,但作为参考,我在这里也添加了 pjsip:http: //www.pjsip.org ,它有一个相当成熟的 iOS 端口,但它是用 C 编写的,它的 API 也是用 C 编写的。

回答by Suraj K Thomas



PORT SIP

端口 SIP

If you are a new comer on VOIP i would suggest using simple sdk's like PORTSIP
It is free download.you can check the app and make calls and also play around with the call.It is payable only if you want to use it for business.PORTSIP sdk is very easy compared to other sdk's or open source projects.

如果您是 VOIP 的新手,我建议您使用简单的 sdk,例如PORTSIP。
它是免费下载的。您可以检查应用程序并拨打电话,也可以玩电话。仅当您想将其用于业务时才需要付费。与其他 sdk 或开源项目相比,PORTSIP sdk 非常容易。

-ves Not open source,offers less flexibility

-ves 不是开源的,提供较少的灵活性



LINPHONE

LINPHONE

After you get hold of this you go for the open source projects Linphonen/PJSIP etc. Linphone offers high quality sound but is very complicated to integrate and very less documentation is available.you will have to build the project first.http://shallwelearn.com/blog/build-linphone-for-iphone-and-ipad/(for IOS)

掌握了这些之后,您就可以开始使用 Linphonen/PJSIP 等开源项目。Linphone 提供高质量的声音,但集成起来非常复杂,可用的文档也很少。您必须先构建项目。http://shallwelearn.com/blog/build-linphone-for-iphone-and-ipad/(IOS

-ve s Very poor documentation

-ve s 非常差的文档



-PJSIP

-PJSIP

Your best option is PJSIPwhich is very good with documentation and offers everything.Because you get code from scratch you can do anything with the code. I highly recommend PJSIP.But it is difficult to directly go and devolep in PJSIP ,what i would recommend is do sample stuff on simple projects like portsip and go for PJSIP

你最好的选择是PJSIP,它有很好的文档并提供一切。因为你从头开始获得代码,所以你可以用代码做任何事情。我强烈推荐 PJSIP。但是在 PJSIP 中直接去和 devolep 很难,我推荐的是在简单的项目上做样本,比如portsip,然后去 PJSIP

回答by Simon Woodside

Also there's Linphone for iPhone: http://www.linphone.org/eng/linphone/news/linphone-for-iphone.html

还有 iPhone 的 Linphone:http: //www.linphone.org/eng/linphone/news/linphone-for-iphone.html

It supports G711, speex narrowband and wideband and iLBC codecs. Configured with your favourite SIP gateway it will allow you to run calls to PSTN numbers from your mobile using 3G or wifi

它支持 G711、speex 窄带和宽带以及 iLBC 编解码器。配置了您最喜欢的 SIP 网关,它将允许您使用 3G 或 wifi 从您的手机呼叫 PSTN 号码

回答by yijiankaka

http://www.pjsip.orgis not the most perfect. Video is available on PJSIP version 2.0 and later. Only desktop platforms are supported, mobile devices such as iOS are not yet supported. This document describes how to use the video feature with PJSIP.

http://www.pjsip.org并不是最完美的。PJSIP 2.0 及更高版本提供视频。仅支持桌面平台,尚不支持 iOS 等移动设备。本文档介绍如何通过 PJSIP 使用视频功能。

回答by Arpan Dixit

回答by pradipskytel

I use siphon, try this:

我用虹吸管,试试这个:

os-mac  
ide-X