• Stars
    star
    180
  • Rank 213,097 (Top 5 %)
  • Language
    Python
  • License
    Other
  • Created over 9 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

SIP/XMPP/WebRTC Application Server

SylkServer

A State of the art, extensible RTC Application Server.

Home page: http://sylkserver.com

License

SylkServer is licensed under GNU General Public License version 3. A copy of the license is available at http://www.fsf.org/licensing/licenses/gpl-3.0.html

Description

SylkServer allows creation and delivery of rich multimedia applications accessed by WebRTC applications, SIP clients and XMPP endpoints. The server supports SIP and XMPP signaling, RTP, MSRP and WebRTC media planes, has built in capabilities for creating multiparty conferences with Audio and Video, IM/ File Transfers and can be extended with custom applications by using Python language.

Deployment scenarios

For SIP functionality, SylkServer is typically deployed behind a SIP Proxy that is designed to route the inbound and outbound traffic, handle the authentication, authorization and accounting.

SylkServer can be deployed as a standalone conference server on a private network to serve SIP clients on the same LAN by using bonjour mode. Blink for MacOSX can be used for automatic discovery of SylkServer instances in their neighborhood.

SylkServer can be deployed as a standalone WebRTC video conference server. The client side can be a standalone application (like the companion Sylk client) and modern web browsers with WebRTC support (like Chrome, Firefox, Safari and Edge browsers).

Features

SIP Signaling

  • TLS, TCP and UDP transports
  • INVITE and REFER
  • SUBSCRIBE/NOTIFY
  • Bonjour mode

NAT Traversal

  • SIP Outbound
  • ICE clients
  • MSRP Relay clients
  • MSRP ACM clients

Audio

  • Wideband (Opus, G722 and Speex)
  • Narrowband (G711 and GSM)
  • SRTP encryption (SDES and ZRTP key-exchanges)
  • Hold/Unhold
  • RTP timeout
  • DTMF handling

Video

  • H.264, VP8 and VP9 codecs
  • SRTP encryption (SDES and ZRTP key-exchange)

Instant Messaging

  • MSRP protocol
  • CPIM envelope
  • Is-composing
  • Delivery reports

File Transfer

  • MSRP protocol
  • Progress reports
  • Conference-info extension
  • Conference room persistent

Audio/Chat conferencing

  • Wideband RTP mixer
  • MSRP switch
  • XMPP MUC
  • Multiparty screensharing
  • Conference event package

Video conferencing

  • WebRTC media
  • Encryption (TLS, sRTP)
  • VP8/VP9/H.264 video codecs
  • Opus wideband audio
  • SFU scaling methodology
  • Floor control

XMPP Gateway

  • Server to Server mode
  • IM (MSRP sessions and SIP Messages)
  • Presence (SIMPLE and XMPP)

P2P WebRTC Gateway

See README.webrtc file.

Applications

SIP applications

When a SIP request arrives at SylkServer, an application can be selected depending on the SIP Request URI. The selection mechanism is described in detail in the sample configuration file config.ini.sample. SIP requests can be bridged to WebRTC aplications or XMPP endpoints using the applications described below.

SIP conference

SylkServer allows SIP end-points to create ad-hoc conference rooms by sending INVITE to a random username at the hostname or domain where the server runs. Other participants can then join by sending an INVITE to the same SIP URI used to create the room. The INVITE and subsequent re-INVITE methods may contain one or more media types supported by the server. Each conference room mixed audio, instant messages and uploded files are dispatched to all participants. One can remove or add participants by sending a REFER method to the conference URI.

If a participant sends a file to the SIP URI of the room, the server will accept it, store it for the duration of the conference and offer it to all participants either present at that moment, or offer it on demand to those that have joined the conference at a later moment.

Using an extension to MSRP chat protocol, the server provides also multi-party screen sharing capability.

XMPP Gateway

SylkServer can act as a transparent inter-domain gateway between SIP and XMPP protocols. This can be used by a SIP service provider to bridge out to external XMPP domains or to receive incoming chat messages and Jingle audio sessions from remote XMPP domains to its local SIP users. In a similar fashion, a XMPP service provider can use the gateway to bridge out to external SIP domains and handle incoming chat requests from SIP domains to the XMPP users it serves.

A media session or a presence session initiated by an incoming connection on the XMPP side is translated into an outgoing request on the SIP side and the other way around. To make this possible, proper SIP or XMPP records must exists into the DNS zone for the domain that needs the gateway service.

WebRTC gateway

Used to bridge audio and video calls between SIP clients and WebRTC applications. A simple to use client API (sylkrtc.js) is provided for developing web pages that include such functionality. This application supports transparently any audio/video codec negotiated by the end-points, however WebRTC has standardised particular codecs for the use on the web (like OPUS for audio), therefore the SIP clients must support the same set of codecs.

See https://webrtc.sipthor.net for a working example.

WebRTC multi-party conference

This application allows WebRTC enabled end-points to organise ad-hoc multi-media conferences with audio/video, chat, file and screen sharing.

For audio and video, SylkServer implements Selective Forwarding Unit (SFU) functionality by using Janus backend. SFUs use little resources on the server side, allowing for handling much more load than classic MCUs.

For text chat, the media is mixed inside the SIP conference application, which makes it interoperable with SIP MSRP chat and XMPP protocols and standards.

Sylk WebRTC client is provided as a sample client and new web clients can be developed using sylkrtc API.

The bandwidth usage is optimised in such a way that independent of the number of participants present in the conference, the bandwidth required by each participant is not greater than for a direct video call between only two participants.

For scalling up beyond one server instance, AG Projects provides a commercial product called SIP Thor.

Standards

The server implements relevant features from the following standards:

  • SIP (RFC3261, RFC3263) and related RFCs for DNS, ICE and RTP
  • MSRP protocol RFC4975
  • MSRP relay extension RFC4976
  • MSRP File Transfer RFC5547
  • MSRP switch RFC7701
  • MSRP Alternative Connection Model RFC6135
  • Indication of Message Composition RFC3994
  • CPIM Message Format RFC3862
  • Instant Message Disposition Notification (IMDN) RFC5438
  • Conference event package RFC4575
  • A Framework for Conferencing with SIP RFC4353
  • Conferencing for User Agents RFC4579
  • Conferencing for User Agents RFC4579 5.1 INVITE: Joining a Conference Using the Conference URI - Dial-In 5.2 INVITE: Adding a Participant by the Focus - Dial-Out 5.5 REFER: Requesting a Focus to Add a New Resource to a Conference 5.11 REFER with BYE: Requesting a Focus to Remove a Participant from a Conference
  • XMPP core (RFC 6120) http://xmpp.org/rfcs/rfc6120.html
  • XMPP extensions http://xmpp.org/xmpp-protocols/xmpp-extensions
  • Instant Messaging and Presence http://xmpp.org/rfcs/rfc6121.html
  • Interworking between the Session Initiation Protocol (SIP) and the Extensible Messaging and Presence Protocol (XMPP):
    • Presence: RFC7248
    • IM: RFC7572
    • Chat: RFC7573
    • Multi-party chat: RFC7702
  • WebRTC standards http://www.w3.org/TR/webrtc/
  • RTP Topologies RFC7667 3.7 Selective Forwarding Middlebox
  • OMA RCC0.7 Filetransfer over HTTP/POST

Support

The project is developed and supported by AG Projects. The support is provided on a best-effort basis. "best-effort" means that we try to solve the bugs you report or help fix your problems as soon as we can, subject to available resources.

To request support you must the use SIP Beyond VoIP mailing list:

http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip

For commercial support contact AG Projects http://ag-projects.com

Credits

Special thanks to our sponsors:

Developers

  • Dan Pascu
  • Tijmen de Mes
  • Saul Ibarra Corretge
  • Adrian Georgescu

More Repositories

1

python-sipsimple

SIP SIMPLE implementation for Python
Python
307
star
2

blink-qt

Blink SIP Client
Python
89
star
3

sylk-webrtc

Sylk WebRTC client
JavaScript
53
star
4

python-cjson

A very fast JSON encoder/decoder for Python2
C
43
star
5

mediaproxy

Media relay for RTP/RTCP and UDP streams
Python
42
star
6

sipclients

Command line SIP clients based SIP SIMPLE SDK
Python
29
star
7

sylk-mobile

Sylk WebRTC mobile client
JavaScript
28
star
8

sylkrtc.js

JavaScript SylkRTC API library
JavaScript
27
star
9

python3-sipsimple

SIP SIMPLE SDK written in Python
Python
25
star
10

python-otr

Off-The-Record Messaging protocol implementation for Python
Python
19
star
11

blink-cocoa

Blink - SIP Client for Mac
Python
17
star
12

python-gnutls

GnuTLS bindings for Python
Python
16
star
13

openxcap

Fully featured XCAP server (RFC 4825)
Python
15
star
14

python-application

Basic building blocks for Python applications
Python
15
star
15

cdrtool

CDR mediation and rating engine for Call Details Records.
PHP
15
star
16

sylk-pushserver

Mobile push notifications for RTC infrastructures
Python
13
star
17

python3-otr

Off-The-Record Messaging protocol implementation for Python
Python
12
star
18

msrprelay

MSRP Relay (RFC 4976) implementation
Python
8
star
19

sipclients3

Command line SIP clients based SIP SIMPLE SDK
Python
6
star
20

python-msrplib

MSRP (RFC4975) client library
Python
5
star
21

callcontrol

Call Control Application for OpenSIPS
Python
5
star
22

python-eventlib

Networking library for SIP SIMPLE Client SDK
Python
3
star
23

python-xcaplib

XCAP (RFC4825) client library
Python
3
star
24

python3-xcaplib

XCAP (RFC4825) client library
Python
2
star
25

python3-gnutls

GnuTLS bindings for Python
Python
1
star
26

python3-application

Basic building blocks for Python applications
Python
1
star