java - Failed to create SipSession; network unavailable -


i've loaded android sip demo android studio. registered account on getonsip.com, added phone accounts, , verified works calling phone getonsip.com webapp , 1 android phone another. far.

i modified java code demo accommodate getonsip settings:

  sipprofile.builder builder = new sipprofile.builder(username, domain);   builder.setoutboundproxy(proxy);   builder.setpassword(password);   builder.setauthusername(auth);   builder.setautoregistration(true);   builder.setport(5060);   builder.setprotocol("udp");   sipprofile = builder.build(); 

i deployed phone (galaxy s4, android 4.4.2 api 19). however, when try place call myself this:

  sipcall = sipmanager.makeaudiocall(sipprofile.geturistring(), sipaddress, listener, 30); 

i same error:

05-14 11:43:13.476    5061-5080/android.sipdemo w/system.err﹕ android.net.sip.sipexception: failed create sipsession; network unavailable? 

other posts on stackoverflow , around internet have not helped me. i've tried adding 5 second delay before calling, rebooting phone, , changing target sip address include sip:<address>@getonsip.com , sip:<address>@getonsip.com:5060, same error message.

does know how resolve this?


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -