sip

module
v0.0.0-...-b5fea6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: Apache-2.0

README

go-sip-ua

SIP UA library for client/b2bua using golang

Features

  • Transports UDP/TCP/TLS/WS/WSS.
  • Simple pure Go SIP Client.
  • Simple pure Go B2BUA, support RFC8599, Google FCM/Apple PushKit.
  • RTP relay (UDP<-->UDP, WebRTC/ICE<->UDP)
  • WebRTC2SIP Gateway.

Running the examples

git clone https://github.com/cloudwebrtc/go-sip-ua
cd go-sip-ua
Client
# 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 to create a local self-signed certificate.

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.

# run b2bua
go run examples/b2bua/main.go -c

You can use dart-sip-ua or linphone or jssip to test call or registration, built-in test account 100~400

WebSocket: wss://127.0.0.1:5081
SIP URI: 100@127.0.0.1
Authorization User: 100
Password: 100
Display Name: Flutter SIP Client

Dependencies

sipua

Directories

Path Synopsis
examples
pkg
log
sip
sip/parser
Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek
Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek
timing
Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek
Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek
transaction
transaction package implements SIP Transaction Layer
transaction package implements SIP Transaction Layer
transport
transport package implements SIP transport layer.
transport package implements SIP transport layer.
ua
util
Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek
Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL