Skip to content

dieKlingel/go-pjproject

Repository files navigation

go-pjproject

Go Bindings for pjsua2

Getting Started

go get github.com/dieklingel/go-pjproject
import (
	"github.com/dieklingel/go-pjproject/pjsua2"
)

func main() {
	config := pjsua2.NewEpConfig()
	endpoint := pjsua2.NewEndpoint()
	endpoint.LibCreate()
	endpoint.LibInit(config)
	endpoint.LibStart()

    ...

    enpoint.LibDestroy()
}

PJ-Version Compability

Here you can find an overview from which pjproject version the go-pjproject was generated

dieklingel/go-pjproject pjsip/pjproject
v1.0.0 2.14.1
v1.0.1 2.15
v1.0.2 2.15.1

Develop

Generate Bindings

  1. Checkout the pjproject version, for which bindings should be generated.
cd 3rdparty/pjproject
git checkout 2.16
cd ../../
  1. Generate Bindings
# setup dev environment
nix develop -c $SHELL
bash build/generate.sh

About

pjsua2 bindings for go

Topics

Resources

License

Stars

Watchers

Forks

Contributors