Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 2.69 KB

introduction.md

File metadata and controls

17 lines (9 loc) · 2.69 KB

Introduction

NkSIP is an Erlang SIP framework or application server, which greatly facilitates the development of robust and scalable server-side SIP applications like proxy, registrar, redirect or outbound servers and B2BUAs.

SIP is the standard protocol related to IP voice, video and remote sessions, supported by thousands of devices, softphones and network operators. It is the basic building block for most current voice or video enabled networks and it is the core protocol of the IP Multimedia Subsytem (IMS). SIP is powerful and flexible, but also very complex to work with. SIP basic concepts are easy to understand, but developing robust, scalable, highly available applications is usually quite hard and time consuming, because of the many details you have to take into account.

NkSIP takes care of much of the SIP complexity, while allowing full access to requests and responses.

NkSIP allows you to run any number of Services. To start a service, you define a name, and, optionally, a set of transports to start listening on and a callback module. Currently you must use Erlang to develop NkSIP applications (in the near future, it will be possible to use Javascript via node.js, see the roadmap).

Once started a service, you can start sending SIP requests, and when your application starts receiving requests, specific functions in the callback module will be called. Each defined callback function has a sane default functionality, so you only have to implement the functions you need to customize. You don't have to deal with transports, retransmissions, authentications or dialog management. All of those aspects are managed by NkSIP in a standard way. In case you need to, you can implement the related callback functions.

NkSIP includes a poweful plugin mecahnism. New functionality (like new RFCs, event support packages, etc.) can be added securely and quickly, without having to modify the core. There is a large number of additional callback functions that plugins can implement to modify NkSIP behaviour.

NkSIP is a pure SIP framework, so it does not support any real RTP media processing it can't record a call, host an audio conference or transcode. These type of tasks should be done with a SIP media server, like Freeswitch or Asterisk. However NkSIP can act as a standard endpoint (or a B2BUA, actually), which is very useful in many scenarios: registering with an external server, answering and redirecting a call or recovering in real time from a failed media server.