rprinz08 / pjgo Goto Github PK
View Code? Open in Web Editor NEWUsing pjsip with golang
Using pjsip with golang
swig -c++ -go -cgo -intgosize 64 \
-outcurrentdir \
-I/usr/local/include \
/home/user/pjproject-2.9/pjsip-apps/src/swig/pjsua2.i
/usr/local/include/pjsua2/siptypes.hpp:386: Warning 314: 'type' is a Go keyword, renaming to 'Xtype'
/usr/local/include/pjsua2/siptypes.hpp:556: Warning 314: 'type' is a Go keyword, renaming to 'Xtype'
/usr/local/include/pjsua2/siptypes.hpp:647: Warning 314: 'type' is a Go keyword, renaming to 'Xtype'
/usr/local/include/pjsua2/siptypes.hpp:681: Warning 314: 'type' is a Go keyword, renaming to 'Xtype'
/usr/local/include/pjsua2/media.hpp:61: Warning 314: 'type' is a Go keyword, renaming to 'Xtype'
/usr/local/include/pjsua2/media.hpp:1390: Warning 314: 'type' is a Go keyword, renaming to 'Xtype'
/usr/local/include/pjsua2/call.hpp:265: Warning 314: 'type' is a Go keyword, renaming to 'Xtype'
/usr/local/include/pjsua2/call.hpp:385: Warning 314: 'type' is a Go keyword, renaming to 'Xtype'
/usr/local/include/pjsua2/call.hpp:561: Warning 314: 'type' is a Go keyword, renaming to 'Xtype'
/usr/local/include/pjsua2/endpoint.hpp:131: Warning 314: 'type' is a Go keyword, renaming to 'Xtype'
/usr/local/include/pjsua2/endpoint.hpp:284: Warning 314: 'type' is a Go keyword, renaming to 'Xtype'
and after go build
pjsua2_wrap.cxx:14420:83: required from here
/usr/include/c++/7/bits/stl_construct.h:75:7: error: โpj::AudioMedia::AudioMedia()โ is protected within this context
{ ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/pjsua2/endpoint.hpp:27:0,
from /usr/local/include/pjsua2.hpp:22,
from pjsua2_wrap.cxx:348:
/usr/local/include/pjsua2/media.hpp:298:5: note: declared protected here
AudioMedia();
^~~~~~~~~~
This is from end list.
pjsua2 will not register to the sip server until acc.SetRegistration(true) is called. I have tested this on v2.9, not sure if it works without this on older versions.
Solution: call acc.SetRegistration(true) after acc.Create(accCfg)
Thank for the repo, but I can't see the go examples as mentioned in the Readme?
were you able to get any of the core callbacks like OnCallState
working?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.