npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

teardown-js

0.0.3 • Public • Published

Dependency Status

teardown-js

Generates a SIP BYE for Session Teardown provided key parameters

Install:

npm install teardown-js

Example Usage:

var mybye = teardownJS.teardown('toUser','mydomain:5060','127.0.0.1','c7a0cha91z','myfromtag','mytotag','"my user"','"my target"');

Example Result

BYE sip:toUser@mydomain:5060 SIP/2.0
Via: SIP/2.0/UDP mydomain:5060
From: "some user" <sip:toUser@mydomain:5060>;tag=xxfrom
To: "some target" <sip:toUser@mydomain:5060>;tag=xxto
Call-ID: c7a0cha9
User-Agent: Teardown-JS
Max-Forwards: 15
CSeq: 2017 BYE
Route: <sip:mydomain:5060;ftag=xxfrom;lr=on>
Content-Length: 0

install

npm i teardown-js

Downloadsweekly downloads

0

version

0.0.3

license

GPLv2

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability