voip

Why Does RTP use UDP instead of TCP?

蹲街弑〆低调 提交于 2019-11-28 22:16:36
问题 I wanted to know why UDP is used in RTP rather than TCP ?. Major VoIP Tools used only UDP as i hacked some of the VoIP OSS. 回答1: As DJ pointed out, TCP is about getting a reliable data stream, and will slow down transmission, and re-transmit corrupted packets, in order to achieve that. UDP does not care about reliability of the communication, and will not slow down or re-transmit data. If your application needs a reliable data stream, for example, to retrieve a file from a webserver, you

Python SIP library

淺唱寂寞╮ 提交于 2019-11-28 20:25:02
I need to write python application connect to trixbox that run as SIP server. But I not found any library that implement in python. I found SIP SKD at http://www.vaxvoip.com/ but it not support python. Can anyone suggest me an alternative to VaxVoip? Thank you. Jermiajab There are Python bindings for the PJSUA API. Twisted supports SIP. That's really cool You might want to have a look at Sippy . It's a B2BUA with a complete SIP stack implementation underneath (you could use just that). It's written entirely in Python, so it's pretty hackable. Sippy is implemented with Twisted but uses none of

iOS无限后台加速耗电的问题

邮差的信 提交于 2019-11-28 19:33:58
背景 总所周知,iPhone的电池容量本身比较小。所以iOS系统本身为了弥补这一短板做出了一个重大的优化 —— 『伪后台』。 这一机制是在iPhone在续航上发挥重大的作用,但是也因为『伪后台』限制了一些更灵活的App响应。 原来早在iOS4开始,iOS为音乐、定位、viop、下载数据等功能提供后台启动的条件,从此以后不管是大到『微信』『QQ』『支付宝』,小如『摩拜』单车这样的应用都获取用户的『定位服务』权限,然后通过它在后台『 无限重启』,也就是那个时候大家都说『更耗电了』。 实例 发现了吗,漫山遍野的后台活动。尤其是『TIM』『Chrome』和『斗鱼』;我只是无意中点到这个应用然后随意看一下,结果发现几分钟的前台工作竟然有十几分钟乃至半个小时的后台活动,这大概就是为什么耗电量越来越大并且iOS越来越卡的根源了把! 机制 『IOS 后台运行定位介绍及解决办法』 http://blog.csdn.net/ruglcc/article/details/52020918 这篇文章为我们讲述了,如何利用定位在后台运行的方法。 第一部分 1.先说说iOS 应用程序5个状态: 停止运行-应用程序已经终止,或者还未启动。 不活动-应用程序处于前台但不再接收事件(例如,用户在app处于活动时锁住了设备)。 活动-app处于“使用中”的状态。 后台-app不再屏幕上显示,但它仍然执行代码。 挂起

How implement the VOIP application using android.net.rtp package

耗尽温柔 提交于 2019-11-28 19:20:05
问题 I am trying to implemented the VoIP application using the AudioGroup and AudioStream classes of the android.net.rtp package. But my application not function properly. After "Join" the "AudioGroup" class object with the "AudioStream" object, its send udp packets successfully. I checked that using the packet analyzer. But voice is not hear from the phone. I run my application in 2 phones and try communicate voice between them. In below I mention my source code. public class MainActivity extends

SIP-Client for Raspberry Pi that works from command line?

蹲街弑〆低调 提交于 2019-11-28 18:58:10
i want to use my raspberry pi as a SIP/VOIP-Phone, just controlling the RPI via SSH. I found some tutorials and it seems that Twinkle is one of the most useful apps for that. So i successfully installed twinkle on my RPI, one SPI-Client on my Android-Phone and for know i am able to send text messages from one to another. The thing is: I have to use the Twinkel GUI with X-Server-forwarding (currently using MacOS with X11 and iTerm). But i kind of want to automate the whole process, like using twinkle from command line, controll it with scripts etc. So, obviously twinkle is not made for that.

How to make asterisk server automatically response to SIP call?

六眼飞鱼酱① 提交于 2019-11-28 13:09:05
问题 My objective: I want to use softphone(3CX phone) register with asterisk server, and make call to the server and asterisk act as a server to automatically response something, like play a song. How i did: I installed asteriskNow using virtualbox, and registered the softphone by setting exntension for my SIP device (extension 333). And i write a dialplan in etc/asterisk/extensions.conf . The dialplan is : [incoming] exten =>s,1,Answer() exten =>s,n,Playback(dir-intro-oper) exten =>s,n,Hangup() I

SIP library for iOS with non-GPL license

拟墨画扇 提交于 2019-11-28 04:47:36
Are there any non-GPL SIP libraries/SDKs that'll let me implement SIP for iOS? alinoz These are the ones I know about: Proprietary: vaxvoip Open source: GPL/LGPL sofia-sip linphone exosip oSIP is LGPL and therefore can be used (as a library) in commercial and closed-source projects. It compiles easily for arm. It is the SIP library used by linphone for iPhone; however, linphone is GPL. These days SIP over WebRTC is getting popularity. It uses SIP Signaling and WebRTC as Media which is provided by google. Following options are also very good if you to avoid getting into SIP level complexities.

PJSUA2 sip android native app

巧了我就是萌 提交于 2019-11-28 04:43:42
问题 Here I'm developing an application using native android in ubuntu 14.04LTS eclipse adt for android. Build, configure, and make everything went perfect. After that I imported pjsua2 sample app into eclipse, I then added native library support but when I run on emulator it throws an error. The error log, 10-25 06:12:09.489: E/AndroidRuntime(1571): FATAL EXCEPTION: main 10-25 06:12:09.489: E/AndroidRuntime(1571): Process: org.pjsip.pjsua2.app, PID: 1571 10-25 06:12:09.489: E/AndroidRuntime(1571)

UILocalNotification does not fire after 10 minutes in background

醉酒当歌 提交于 2019-11-28 02:25:44
问题 I have a VoIP application. Which is working fine. Call is working in foreground and background. Following steps are done: UIBackgroundModes => voip in Info.plist Configured one of the app’s sockets for VoIP usage. Before moving to the background, setKeepAliveTimeout:handler: is called Configured audio session to handle transitions to and from active use. To ensure a better user experience on iPhone, used the Core Telephony framework to adjust behavior in relation to cell-based phone calls; To

How do I forward a Twilio number to a VoIP phone?

家住魔仙堡 提交于 2019-11-27 23:21:32
Twilio noob + VoIP noob here, so brace yourself for a double-dumb question. I have a local Twilio number that currently points to a text-to-speech voicemail greeting. I get a lot of hang-ups (empty voicemail messages), so I would prefer to start routing my incoming calls to a VoIP phone during business hours. I only have one question about this so far: HOW? Forwarding voice calls from a Twilio number to a VoIP client. Example with Zoiper VoIP client ( https://www.zoiper.com/ ). Twilio configuration Step 1 - Configure credentials Login into your Twilio console, then go to Programmable Voice