3

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.
karan
8,8734 gold badges45 silver badges81 bronze badges
asked Dec 11, 2015 at 10:03
8
  • do you register your sip account ? Check if credentials are correct Commented Dec 11, 2015 at 10:26
  • yes everything is fine.even i am able to make call with local server. Commented Dec 11, 2015 at 11:01
  • what errors do you receive ? Commented Dec 11, 2015 at 11:02
  • no error in log,but it is transport error i can find while using IMSDROID Commented Dec 11, 2015 at 11:05
  • even i am able to receive incoming calls,but problem occurs with outgoing calls Commented Dec 11, 2015 at 11:06

1 Answer 1

3

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

sadegh saati
1,1701 gold badge13 silver badges25 bronze badges
answered Dec 17, 2015 at 4:49
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.