How to resolve TURN based issues in PJSIP?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am developing an iPhone application using PJSIP. Everything was fine. Now
I have enabled TURN in my project. When I try to make call, I am getting
problem with that. If I disable TURN, I am not getting any problem.

*Log msg:*


09:35:13.506   pjsua_call.c !Making call with acc #1 to
sip:00910000000000 at sip.nymgo.com;transport=udp
09:35:13.507  pjsua_media.c  .Set sound device: capture=-1, playback=-2
09:35:13.507  pjsua_media.c  ..Opening sound device PCM at 16000/1/20ms
09:35:14.464 coreaudio_dev.  ...core audio stream started
09:35:14.511 os_core_unix.c  Info: possibly re-registering existing thread
09:35:14.545  pjsua_media.c  .Call 0: initializing media..
09:35:14.548        icetp00  ..Creating ICE stream transport with 1 component(s)
09:35:14.551        icetp00  ...Comp 1: srflx candidate starts Binding discovery
09:35:14.623        icetp00  ...Comp 1: host candidate 192.168.1.139:64931 added
09:35:14.624 udprel0xbafe00  ...TURN client session created
09:35:14.630 udprel0xbafe00  ...State changed Null --> Resolving
09:35:14.632 udprel0xbafe00  ...State changed Resolving --> Resolved
09:35:14.633 udprel0xbafe00  ...State changed Resolved --> Allocating
09:35:14.635        icetp00  ...Comp 1: TURN relay candidate waiting
for allocation
09:35:14.635        icetp00  ...ICE stream transport created
09:35:14.934 stuntp0x383ff0  ...STUN mapped address found/changed:
59.99.230.117:40728
09:35:14.962        icetp00 !...Comp 1: Binding discovery complete,
srflx address is 59.99.230.117:40728
09:35:22.550 stuntsx0xb85b5  ..STUN timeout waiting for response
09:35:22.551 udprel0xbafe00  ...Allocate error: STUN transaction has
timed out (PJNATH_ESTUNTIMEDOUT)
09:35:22.551 udprel0xbafe00  ...State changed Allocating --> Deallocated
09:35:22.551        icetp00  ....TURN allocation failed: STUN
transaction has timed out (PJNATH_ESTUNTIMEDOUT)
09:35:22.552 udprel0xbafe00  ...Request to shutdown in state
Deallocated, cause:370004
09:35:22.552 udprel0xbafe00  ...State changed Deallocated --> Destroying
09:35:22.554 udprel0xbafe00  TURN client session destroyed
09:35:22.555  pjsua_media.c !..Error initializing ICE media transport:
STUN transaction has timed out (PJNATH_ESTUNTIMEDOUT) [status=370004]
09:35:22.567        icetp00  ...ICE stream transport destroyed
09:35:22.567  pjsua_media.c  ..Error creating media transport: STUN
transaction has timed out (PJNATH_ESTUNTIMEDOUT)
09:35:22.567  pjsua_media.c  ..Call 0: deinitializing media..
09:35:22.567  pjsua_media.c  ....Media session call00:0 is destroyed
09:35:22.568   pjsua_call.c  .Error initializing media channel: STUN
transaction has timed out (PJNATH_ESTUNTIMEDOUT) [status=370004]
09:35:22.568  pjsua_media.c  .Call 0: deinitializing media..
2011-10-26 09:35:22.573 Nymgo[2549:307] Error making call : 370004
wait_fences: failed to receive reply: 10004003
09:35:23.569  pjsua_media.c !Closing sound device after idle for 1 seconds
09:35:23.654  pjsua_media.c  .Closing iPhone IO device sound playback
device and iPhone IO device sound capture device
09:35:23.805 coreaudio_dev.  .core audio stream stopped

I don't know what is going wrong, please help me to resolve it.


-- 

Regards,
J Alex Antony Vijay.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20111028/bf372478/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux