I am using ngn stack library to make sip calls.
If I test on local server when I am connected to WI-FI, it works very fine with audio as well as video. But, on original server I am unable to make call, even there is no request being hit on server side. If I use other applications like 'ZOIPER' it works also fine.
Following error occurs when I click call button after registering both clients. below is the logcat output for the error
12-14 10:35:54.146: D/org.doubango.ngn.services.impl.NgnSipService(4383): OnDialogEvent (Transport error,3)
12-14 10:35:54.146: D/org.doubango.ngn.sip.NgnAVSession(4383): setState(TERMINATED)
12-14 10:35:54.147: D/dalvikvm(4383): create interp thread : stack size=128KB
12-14 10:35:54.149: D/org.doubango.ngn.media.NgnProxyAudioProducer(4383): stopCallback
please help me out.
-
do you register your sip account ? Check if credentials are correctnsinvocation– nsinvocation2015年12月11日 10:26:43 +00:00Commented Dec 11, 2015 at 10:26
-
yes everything is fine.even i am able to make call with local server.Mansuu....– Mansuu....2015年12月11日 11:01:24 +00:00Commented Dec 11, 2015 at 11:01
-
what errors do you receive ?nsinvocation– nsinvocation2015年12月11日 11:02:12 +00:00Commented Dec 11, 2015 at 11:02
-
no error in log,but it is transport error i can find while using IMSDROIDMansuu....– Mansuu....2015年12月11日 11:05:08 +00:00Commented Dec 11, 2015 at 11:05
-
even i am able to receive incoming calls,but problem occurs with outgoing callsMansuu....– Mansuu....2015年12月11日 11:06:09 +00:00Commented Dec 11, 2015 at 11:06
1 Answer 1
Yes i found the solution it was somethig NATT issue. just write code for USE STUN for SIP during configuration setting by writing this code.
ngnConfigService.putBoolean(
NgnConfigurationEntry.NATT_USE_STUN_FOR_SIP, true, true);
Now it's working fine