Vincenzo Esposito

Results 41 comments of Vincenzo Esposito
trafficstars

samples from the official repo can be found here, it is trivial to apply to this https://github.com/pjsip/pjproject/tree/master/pjsip-apps/src/swig/java

it looks you reconfigure the sip account when making an outgoing call, but without seeing the code it is impossible to spot the error

> In the _startStack()_ method of the _SipService.java_ file I now added a stun server like so: > > `epConfig.getUaConfig().getStunServer().add("stun.provider.net");` > or > `epConfig.getUaConfig().getStunServer().add("stun.provider.net:1234");` > or > `epConfig.getUaConfig().getStunServer().add("sip:stun.provider.net:1234");` > >...

samples from the official repo can be found here, it is trivial to apply to this https://github.com/pjsip/pjproject/tree/master/pjsip-apps/src/swig/java

I think what you are looking for is the "Request Audio Focus" feature. It is independent from the library and should be handled by the client app. Basically you have...

Based on the API level you should request the audio focus differently. I don't see any problem here. A simple if should be enough

Same as before, without requesting audio focus and listening for its state audio will never work fine.