{"id":15914676,"url":"https://github.com/gmazovec/sipcore","last_synced_at":"2025-06-28T15:34:56.942Z","repository":{"id":7074227,"uuid":"8361476","full_name":"gmazovec/sipcore","owner":"gmazovec","description":"General purpose SIP library for NodeJS and Web browsers.","archived":false,"fork":false,"pushed_at":"2014-11-27T14:09:36.000Z","size":636,"stargazers_count":19,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-23T03:22:54.063Z","etag":null,"topics":["javascript","sip"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gmazovec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-22T16:48:51.000Z","updated_at":"2019-07-19T06:50:10.000Z","dependencies_parsed_at":"2022-07-30T10:17:57.403Z","dependency_job_id":null,"html_url":"https://github.com/gmazovec/sipcore","commit_stats":null,"previous_names":["gmazovec/sipcore.js"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmazovec%2Fsipcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmazovec%2Fsipcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmazovec%2Fsipcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmazovec%2Fsipcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmazovec","download_url":"https://codeload.github.com/gmazovec/sipcore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221703405,"owners_count":16866534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","sip"],"created_at":"2024-10-06T17:05:15.587Z","updated_at":"2024-10-27T16:17:55.645Z","avatar_url":"https://github.com/gmazovec.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"sipcore.js\n==========\n\nGeneral purpose SIP library for JavaScript.\n\n## Installation\n\n    npm install sipcore\n\n## API\n\n    SIP.format (msg, compact)\n    SIP.parse (text)\n    SIP.parseUri (text)\n    SIP.formatUri (uri)\n    SIP.isMessage (obj)\n\n    SIP.createMessage (obj)\n    Message.getHeader (name, parse, pos)\n    Message.setHeader (name, value, pos)\n    Message.toResponse (status, reason)\n    Message.toRequest (method, uri)\n    Message.copy ()\n    Message.format (compact)\n\n    SIP.createProtocol([constructor], [options])\n\n    SIP.createTransport ()\n    Transport.register (protocol, [port], [address])\n    Transport.listen ([cb])\n    Transport.isListening ([protocol])\n    Transport.send (msg, [address], [port], [protocol], [cb])\n    Transport.close ()\n    Event: Transport.on('message', function (msg))\n    Event: Transport.on('listening', function (listenState))\n\n    SIP.createTransaction (transport, [msg])\n    Transaction.state\n    Transaction.timeout\n    Transaction.error\n    Transaction.send (msg, [addr], [port], [protocol], [cb])\n    Transaction.send (msg, [cb])\n    Transaction.on('message', function (message))\n    Transaction.on('state', function (state)\n    Transaction.on('timeout', function ())\n\n\n## Example\n\n```javascript\nvar sip = require('sipcore');\nvar protocol = sip.createProtocol();\nvar transport = sip.createTransport();\n\ntransport.register(protocol);\ntransport.listen(function (listenState) {\n    console.log('* HEAP listening...', listenState.heap ? 'ok' : 'failed');\n});\n\ntransport.on('message', function (msg) {\n    console.log('-- new SIP message');\n    console.log(msg.format());\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmazovec%2Fsipcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmazovec%2Fsipcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmazovec%2Fsipcore/lists"}