pjsip-android
pjsip-android copied to clipboard
How do I configure pjsip to use a certain stun server?
Currently I can register my sip service with my sip provider but can not make a call. The call state changes immediately from PJSIP_INV_STATE_CALLING to PJSIP_INV_STATE_DISCONNECTED. My guess is that I need to make use of the providers stun server to establish a proper connection. How do I do that?
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");
none of which are working. Am I doing it correctly? Or what else can be the problem, if the call state behaves like I already explained?
Myself I do in the same function: StringVector servers = new StringVector(); servers.add("stun.provider.net:1234"); mEndpoint.natUpdateStunServers(servers, true);
[Help me urgently, its so urgent please please please] Sir please help me out too. I have downloaded this whole package and built, but it isn't running and I am facing difficulty understanding the code. So please help me out how to make an application based on this. I need to develop just a simple application that could send/receive messages and calls. Please help me.
In the startStack() method of the SipService.java file I now added a stun server like so:
epConfig.getUaConfig().getStunServer().add("stun.provider.net");
orepConfig.getUaConfig().getStunServer().add("stun.provider.net:1234");
orepConfig.getUaConfig().getStunServer().add("sip:stun.provider.net:1234");
none of which are working. Am I doing it correctly? Or what else can be the problem, if the call state behaves like I already explained?
you still facing the problem? Do you see anything wrong in the sip trace?
closing for inactivity