sip

SIP servlets, chatserver

烂漫一生 提交于 2019-12-10 11:43:16
问题 I'm trying to get a SIP servlet chat server working, together with the textclient found here. When I use 2 clients to send messages to eachother (peer to peer), everything goes well. But when I use one or more clients together with my server, I have to wait exactly 32 seconds before the server picks up any new messages in the doMessage() method. I'm using Netbeans together with Sailfin as my SIP server. Is there some kind of limitation or configurable delay or timeout between requests or

SMS messaging using Twilio with SIP

爷,独闯天下 提交于 2019-12-10 11:30:44
问题 I'm trying to use Twilio to send and receive SMS on my iPhone. I've gotten inbound and outbound calling set up following these instructions. I'd like the equivalent instructions for SMS. I'm presently using Zoiper as a SIP client, but that's flexible. The phone number configuration page (from here click a phone number) has a section called "Messaging" which allows one to configure a TwiML bin. However, I haven't been able to find any documentation about how to configure SMS over SIP, let

使用MetaSIP自动生成SIP封装C++到Python接口

依然范特西╮ 提交于 2019-12-10 04:26:52
利用SIP将C++封装为Python,SIP采用手动书写,但对于比较庞大的工程手动书写sip文件就显得很苍白无力。QT利用MetaSIP这款工具生成sip文件,然后手动修改部分SIP文件,然后利用python书写 configuer.py配置文件生成Makefile文件,最后执行Make脚本将C++生成为Python。下面主要介绍MetaSIP安装以及配置 过程,以及利用如何利用MetaSIP生成SIP。 1.安装 1) 所需软件 MetaSIP、Python3.x、Qt4、PyQt4、dip、sip、QScintilla2、GCCXML、cmake、mingw MetaSIP下载地址: http://www.riverbankcomputing.com/hg/ PyQt4、sip、QScintilla2均可以到 http://www.riverbankcomputing.com/news 下载 dip一定要采用 http://www.riverbankcomputing.com/hg/ 的版本 GCCXML到 http://gccxml.github.io/HTML/Index.html 下载 2)安装 MetaSIP只支持Python3.x,在安装其之前保证Python3.x和QT安装 a. 安装SIP(参照上篇利用sip封装C++) b. 安装PyQt4 python

使用SIP对C库进行Python封装

﹥>﹥吖頭↗ 提交于 2019-12-10 04:26:39
Python中使用C/C++模块有许多工具,大名鼎鼎的有SWIG(英文意思为:豪饮)、SIP(英文意思为:啜饮,小口的喝),还有 boost.python等。其中SIP是从SWIG发展而来,专为Python调用C/C++模块使用的(看SIP的命名就能看出来,很有意思的)。 SIP的使用方法,在官网的SIP Reference Guide中有介绍,不过那是针对至少有点经验的人员,对初学者来说,想十分钟快速上手还是有点难度的。这里就介绍下本人在使用SIP总结的需要注意的地 方。(本着方便大家方便自己的原则,欢迎转载,无需征得本人同意,但请注明出处,最好是原文连接,图个人气,谢谢!) 前提 ,本机上要装了Python、GCC(Windows下可以用MinGW, 在我的Eclipse下配置CDT一文中有关于MinGW的安装介绍 )。并把python.exe和MinGW下的bin文件路径添加到环境变量中。 第一部分:安装SIP Windows: 将Riverbank上的sip的zip格式的代码包下载,将其解压到C:\Python27中,那么现在sip的文件夹路径为C: \Python27\sip-4.13.2\sip-4.13.2(你也可以将其解压到任何一个文件夹中,但这里为了叙述方便,就解压到我电脑上的 Python的文件夹中)。 打开Windows的cmd命令行,输如cd C:

使用SIP对C++类进行Python封装

穿精又带淫゛_ 提交于 2019-12-10 04:13:21
本文来自于: http://pyqt.sourceforge.net/Docs/sip4/using.html#a-simple-c-example 本人翻译, 欢迎转载 ,赠人玫瑰,手留余香。 Using SIP Bindings are generated by the SIP code generator from a number of specification files, typically with a .sip extension. Specification files look very similar to C and C++ header files, but often with additional information (in the form of a directive or an annotation ) and code so that the bindings generated can be finely tuned. SIP可以从多个参数文件创建C/C++的Python绑定代码,参数文件以*.sip命名,类似于C/C++的.H头文件,原则上与C/C++的模块或头文件对应。 A Simple C++ Example We start with a simple example. Let’s say you have a

在UbuntuKylin15.04上安装GIScript2015

随声附和 提交于 2019-12-10 01:28:01
GIScript入门教程参见: http://my.oschina.net/u/2306127/blog/484213 ,这里介绍基于SIP的C++封装为Python的方法和使用过程。 GIScript2015版采用了新的SIP封装,从而可以更好地与C++接口保持一致。 最近有了一些进展,尝试在在UbuntuKylin15.04上安装GIScript。 由于要使用MetaSIP,需要Python3,先输入python3确认一下当前的环境。 安装python3 sudo apt-get install python-pip sudo apt-get install python3-dev 安装SIP #下载:http://www.riverbankcomputing.com/software/sip/download wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.8/sip-4.16.8.tar.gz #解压 tar -vxf sip-4.16.8.tar.gz #配置 cd sip-4.16.8 python3 configure.py #编译 make #安装 sudo make install 如果出现下述错误: PyQt5 - SIP API 10 level error. API 11

Peer 2 Peer call using PJSIP and PJSUA

情到浓时终转凉″ 提交于 2019-12-10 00:01:16
问题 I am still learning about SIP and all its protocols, specifically trying to integrate PJSIP into an iPhone application to make p2p calls. I have a question about a peer 2 peer connection using PJSUA. I am able to make calls perfectly to other clients on my local network by calling directly using the URI: sip:192. . .*:5060 I am curious if this will work for making direct calls to other SIP URIs that are not on the local network without using server configuration - if not this way, is there

No audio using native android sip library

三世轮回 提交于 2019-12-09 22:32:26
问题 So I'm using the native sip library, and I can connect and register with the server just fine. And when I make the call, it hits a proxy that routes it to a regular phone call, then calls the number inputed. It will connect fine, and the phone on the other end receives the call, but there is no audio. I know the proxy can handle audio because there is an iPhone app hitting the same server and it connects just fine. Here's my code for making the call : public void makeCall(String s) {

freeswitch websocket webrtc

半世苍凉 提交于 2019-12-09 20:31:50
Install the Certificate into FreeSWITCH Replace sipjs.com with the domain name that you used to generate the certificate. cd /etc/letsencrypt/live/sipjs.com echo '' >> /usr/local/freeswitch/certs/wss.pem && cat cert.pem >> /usr/local/freeswitch/certs/wss.pem && cat privkey.pem >> /usr/local/freeswitch/certs/wss.pem && cat chain.pem >> /usr/local/freeswitch/certs/wss.pem Restart FreeSWITCH 其他还有配置在本文档的 《Freeswitch/wss》的章节。 echo '' >> /usr/local/freeswitch/certs/wss.pem && cat cert.pem >> /usr/local/freeswitch/certs/wss.pem && cat privkey.pem >> /usr/local/freeswitch/certs/wss.pem && cat chain

用freeswitch架设局域网内sip电话

こ雲淡風輕ζ 提交于 2019-12-09 20:31:19
FreeSWITCH 是一个电话的软交换解决方案,包括一个软电话和软交换机用以提供语音和聊天的产品驱动。FreeSWITCH 可以用作交换机引擎、PBX、多媒体网关以及多媒体服务器等。 首先保证已经有libjpeg-devel,libtoo,libncurses5,libncurses5-dev git clone git://git.freeswitch.org/freeswitch.git cd freeswitch ./bootstrap.sh 如果要测试IVR的话,需要修改modules.conf,找到mod_flite的行,把它的注释去掉 ./configure make make install 然后需要安装语音文件 sounds-install moh-install (8 kHz) hd-sounds-install hd-moh-install (16 kHz) uhd-sounds-install uhd-moh-install (32 kHz) cd-sounds-install cd-moh-install (48 kHz) 选一个,8 kHz是普通电话的音质,越高越好 make sounds-install moh-install 下载安装完后就算完成了 运行/usr/local/freeswitch/bin/freeswitch开启服务器,要关闭的话