简体   繁体   中英

Making Sip call in android

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM