This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
kamailio:k43-async-sip-routing-nodejs [2015/09/07 10:34] – [SIP Routing] admin | kamailio:k43-async-sip-routing-nodejs [2015/09/07 11:36] (current) – [Async SIP Routing with Kamailio and Node.js] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Async SIP Routing with Kamailio and Node.js ====== | ====== Async SIP Routing with Kamailio and Node.js ====== | ||
- | **Work in progress | + | Node.js-based external routing decision engine for Kamailio. |
===== Overview ===== | ===== Overview ===== | ||
Line 9: | Line 9: | ||
The [[http:// | The [[http:// | ||
+ | {{ : | ||
===== SIP Routing ===== | ===== SIP Routing ===== | ||
Line 71: | Line 72: | ||
* retransmission and ringing timeouts | * retransmission and ringing timeouts | ||
* local socket or the path to be followed | * local socket or the path to be followed | ||
+ | * branch flags | ||
+ | |||
+ | The example above results in: the request will be routed to sip: | ||
+ | |||
+ | ==== EVAPI Processing ==== | ||
+ | |||
+ | EVAPI is sort of generic framework to push events to external application from inside kamailio.cfg via TCP connections. It has the capability of suspending the processing of the SIP request until there is a response from the external application. By suspending the SIP request, other SIP messages can be processes, thus not blocking Kamailio while waiting for event response. This asynchronous mechanism enables high throughput for SIP routing. | ||
===== Presentations ===== | ===== Presentations ===== | ||
Line 934: | Line 942: | ||
* http:// | * http:// | ||
- | A simple sample application is shown next: | + | A simple sample application is shown next example. It connects to Kamailio' |
- | < | + | To read more about nestring format, see: |
+ | |||
+ | * https:// | ||
+ | |||
+ | Node.js application: | ||
+ | |||
+ | < | ||
var net = require(' | var net = require(' | ||
Line 1066: | Line 1080: | ||
</ | </ | ||
+ | ===== Resources ===== | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[https:// |