Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cloudwebrtc/go-sip-ua
Go SIP UA library for client/b2bua
https://github.com/cloudwebrtc/go-sip-ua
b2bua golang ippbx rfc8599 sdp sip voip webrtc
Last synced: 5 days ago
JSON representation
Go SIP UA library for client/b2bua
- Host: GitHub
- URL: https://github.com/cloudwebrtc/go-sip-ua
- Owner: cloudwebrtc
- License: apache-2.0
- Created: 2020-03-10T03:35:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-02T14:00:03.000Z (6 months ago)
- Last Synced: 2025-01-19T06:52:37.711Z (12 days ago)
- Topics: b2bua, golang, ippbx, rfc8599, sdp, sip, voip, webrtc
- Language: Go
- Homepage:
- Size: 470 KB
- Stars: 216
- Watchers: 13
- Forks: 86
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-sip-ua
SIP UA library for client/b2bua using golang
## Features
- [x] Transports UDP/TCP/TLS/WS/WSS.
- [x] Simple pure Go SIP Client.
- [x] Simple pure Go B2BUA, support RFC8599, Google FCM/Apple PushKit.
- [ ] RTP relay (UDP<-->UDP, WebRTC/ICE<->UDP)
- [ ] WebRTC2SIP Gateway.## Running the examples
```bash
git clone https://github.com/cloudwebrtc/go-sip-ua
cd go-sip-ua
```### Client
```bash
# run client
go run examples/client/main.go
```### B2BUA
B2BUA is a minimal SIP call switch, it registers and calls, and supports UDP/TCP/TLS/WebSockets.
When you need a quick test for TLS/WSS, you can use [mkcert](https://github.com/FiloSottile/mkcert) to create a local self-signed certificate.
```bash
mkdir -p certs
mkcert -key-file certs/key.pem -cert-file certs/cert.pem localhost 127.0.0.1 ::1 example.com
```Run the mini b2bua.
```bash
# run b2bua
go run examples/b2bua/main.go -c
```You can use [dart-sip-ua](https://github.com/flutter-webrtc/dart-sip-ua) or [linphone](https://www.linphone.org/) or [jssip](https://tryit.jssip.net/) to test call or registration, built-in test account 100~400
```
WebSocket: wss://127.0.0.1:5081
SIP URI: [email protected]
Authorization User: 100
Password: 100
Display Name: Flutter SIP Client
```## Dependencies
- [ghettovoice/gosip](https://github.com/ghettovoice/gosip) SIP stack
- [c-bata/go-prompt](https://github.com/c-bata/go-prompt) Console for b2bua
- [pixelbender/go-sdp](https://github.com/pixelbender/go-sdp) SDP