Narwhals Prolong Mischief

    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

    3

    Version

    0.0.3

    License

    GPLv2

    Last publish

    Collaborators

    • lmangani