Web development

VoIP calls from the browser

I faced the necessity to introduce a sip phone to the browser. On the internet mostly is the information on the basis of red5 + red5phone, but it seemed a bit of crocky and insufficiently reliable. Let us just say I was not satisfied with the time correlation of deployment and the required hardware resources to a level of quality, support, and ranging, also it is problematic for integration in a web project.
A little more searching I found this one project on the internet. It makes essentially the same as red5, but it is written in python and it has a flexible web interface.
In fact, the web-based interface is a small application on the flash, which is controlled by JavaScript or other programming language by calling the built-in functions of applications and processing of events. It has the ability to be integrated in other flash applications.
Running the server is done by these simple manipulations:

svn checkout p2p-sip.googlecode.com/svn/trunk / p2p-sip-read-only
svn checkout
rtmplite.googlecode.com / svn / trunk / rtmplite-read-only
cd. / rtmplite-read-only
PYTHONPATH =.. / p2p-sip-read-only/src:.
python. / siprtmp.py

It might be needed to specify ip address, which will be indicated when communicating with ip-pbx, it can be done with a key –e <ip address >. In order to debug is a key –d.
In this version is a great probability of error, during which will not be possible to make outgoing calls, to fix using a commentary on the line 217 in a file p2p-sip-read-only/src/std/rfc3261.ru. This bug will get fixed soon (according to the developer).
When setting the sip server to work with siprtmp, the users that will be calling through the web need to use a codec speex, for example in asterisk is done as follows:

disallow = all
allow = speex

The site of developer provides an example of the phone, and detailed description.


This solution can be used for video calls and conferences.

The main thing is: you do not forget to allow a flash application to use an audio device on your computer.

Official website of the server
Official website of the flash application
Another page of the flash application

At the moment, the developer is trying to do a full-fledged demon from siprtmp.ru on my initiative and overcome the need to export PYTHONPATH =.. / p2p-sip-read-only/src:.
“Translated from another resource”
Tags: Flash, python, rtmp, sip
Pirat 7 september 2011, 10:24
Vote for this post
Bring it to the Main Page


Leave a Reply

Avaible tags
  • <b>...</b>highlighting important text on the page in bold
  • <i>..</i>highlighting important text on the page in italic
  • <u>...</u>allocated with tag <u> text shownas underlined
  • <s>...</s>allocated with tag <s> text shown as strikethrough
  • <sup>...</sup>, <sub>...</sub>text in the tag <sup> appears as a superscript, <sub> - subscript
  • <blockquote>...</blockquote>For  highlight citation, use the tag <blockquote>
  • <code lang="lang">...</code>highlighting the program code (supported by bash, cpp, cs, css, xml, html, java, javascript, lisp, lua, php, perl, python, ruby, sql, scala, text)
  • <a href="http://...">...</a>link, specify the desired Internet address in the href attribute
  • <img src="http://..." alt="text" />specify the full path of image in the src attribute