Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
/ k2s Public archive

Simple nodejs Kurento to SIP gateway

Notifications You must be signed in to change notification settings

Sfinx/k2s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k2s

This is dirty example of the Kurento to SIP (Asterisk) gateway. The brain dead JsSIP lib is used for now. It do not works under nodejs so additional patches (located at diffs dir) are needed. The already patched node_modules dir is present too. As both Kurento and JsSIP lack as good docs as examples - the test directory is provided which contains 2 simple tests:

  • Console based call example that can be used to connect to Asterisk (call.js)
  • Kurento RTPEndpoint example that plays and record to files (kurento.js)

And the example (gw.js) can be used to connect Kurento play/rec files to any external phone using Asterisk trunk. This simple gateway has limited support of the reINVITE's - the main problem here is that Kurento do not supports the RTP negotiations at all so the only way is to destroy all its RTPEndpoints and reconnect them again.

To call : nodejs gw.js --call=number

To wait for calls : nodejs gw.js --wait

gw.js plays the /tmp/player.webm file to the SIP channel and records accordingly to the /tmp/record.webm one.

About

Simple nodejs Kurento to SIP gateway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published