{"id":15679037,"url":"https://github.com/lmangani/parsip","last_synced_at":"2025-08-04T20:07:17.476Z","repository":{"id":57319743,"uuid":"127423226","full_name":"lmangani/parsip","owner":"lmangani","description":"A straight-forward SIP/SDP parsing module for Node/JS","archived":false,"fork":false,"pushed_at":"2024-12-09T21:38:44.000Z","size":93,"stargazers_count":13,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T14:21:57.930Z","etag":null,"topics":["javascript","json","library","node","p-rtp-stats","parse","parser","sdp","sip","sip-sdp","vq-rtcpxr","x-rtp-stat"],"latest_commit_sha":null,"homepage":"http://sipcapture.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lmangani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-30T11:59:01.000Z","updated_at":"2024-12-29T16:52:09.000Z","dependencies_parsed_at":"2024-06-19T01:54:49.936Z","dependency_job_id":"5604be40-03fb-47a5-aecb-6a601dfcf4fd","html_url":"https://github.com/lmangani/parsip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmangani%2Fparsip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmangani%2Fparsip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmangani%2Fparsip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmangani%2Fparsip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmangani","download_url":"https://codeload.github.com/lmangani/parsip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251666759,"owners_count":21624366,"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","json","library","node","p-rtp-stats","parse","parser","sdp","sip","sip-sdp","vq-rtcpxr","x-rtp-stat"],"created_at":"2024-10-03T16:26:03.169Z","updated_at":"2025-04-30T08:22:26.529Z","avatar_url":"https://github.com/lmangani.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# parSIP \u003cimg src=\"https://user-images.githubusercontent.com/1423657/38137158-590eefbc-3423-11e8-96dd-487022b5618c.gif\" width=200 /\u003e\n\nA straight-forward SIP/SDP parsing module for Node/JS\n\n## Usage\n#### SIP to JSON\n```javascript\nvar parsip = require('parsip');\nvar sip_message = \"...\" // Valid SIP Message here\nvar sip = parsip.getSIP(sip_message);\n```\n\n#### SDP to JSON\n```javascript\nif (sip.headers['Content-Type'][0].raw == 'application/sdp'){\n  var sdp = parsip.getSDP(sip.body);\n}\n```\n\n#### VQ PUBLISH to JSON\n```javascript\nif (sip.headers['Content-Type'][0].raw == 'application/vq-rtcpxr'){\n  var vqj = parsip.getVQ(sip.headers.Packetloss[0].raw);\n}\n```\n```\n{ NLR: '0.0', JDR: '0.0' }\n```\n\n#### X-RTP-Stat to JSON\n```javascript\nif (sip.headers['X-Rtp-Stat'][0].raw){\n\tvar xrtp = parsip.getVQ(sip.headers['X-Rtp-Stat'][0].raw);\n}\n```\n```\n{ EX: 'BareSip',\n  CS: '1000',\n  CD: '29',\n  PR: '1463',\n  PS: '1490',\n  PL: '0,0',\n  PD: '0,0',\n  JI: '3.0,3.0',\n  IP: '3.4.5.6:48926,1.2.3.4:12856',\n  EN: 'PCMA/8000',\n  DE: 'PCMA/8000' }\n```\n\n#### JWT to JSON\n```javascript\nvar jwt = parsip.getJWT(sip.body.identity);\n```\n\n\n### License\nParSIP is released under the MIT License\n\n### Acknowledgement\nBased on elements from the awesome [jsSIP](https://github.com/versatica/JsSIP) and `SDP-Tranform` packages\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmangani%2Fparsip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmangani%2Fparsip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmangani%2Fparsip/lists"}