Go Bindings for pjsua2
go get github.com/dieklingel/go-pjprojectimport (
"github.com/dieklingel/go-pjproject/pjsua2"
)
func main() {
config := pjsua2.NewEpConfig()
endpoint := pjsua2.NewEndpoint()
endpoint.LibCreate()
endpoint.LibInit(config)
endpoint.LibStart()
...
enpoint.LibDestroy()
}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 |
- Checkout the pjproject version, for which bindings should be generated.
cd 3rdparty/pjproject
git checkout 2.16
cd ../../- Generate Bindings
# setup dev environment
nix develop -c $SHELL
bash build/generate.sh