teardown-js
v0.0.3
Published
SIP Teardown Generator
Downloads
17
Maintainers
Readme
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