How to use ICE in pjsip

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

 



HI.All
can anyone help me ? how to use ice in pjsip?

this is error code !

# ./pjsua-mipsel-unknown-linux-gnu --use-ice --stun-srv=stunserver.org
--use-turn --turn-srv=192.168.100.146 --log-level=6
 14:18:53.413 os_core_unix.c  pjlib 1.0.2 for POSIX initialized
 14:18:53.450 sip_endpoint.c  Creating endpoint instance...
 14:18:53.454          pjlib  select() I/O Queue created (0x5e0060)
 14:18:53.455 sip_endpoint.c  Module "mod-msg-print" registered
 14:18:53.456 sip_transport.  Transport manager created.
 14:18:53.458 sip_endpoint.c  Module "mod-pjsua-log" registered
 14:18:53.460 sip_endpoint.c  Module "mod-tsx-layer" registered
 14:18:53.461 sip_endpoint.c  Module "mod-stateful-util" registered
 14:18:53.462 sip_endpoint.c  Module "mod-ua" registered
 14:18:53.464 sip_endpoint.c  Module "mod-100rel" registered
 14:18:53.465 sip_endpoint.c  Module "mod-pjsua" registered
 14:18:53.466 sip_endpoint.c  Module "mod-invite" registered
 14:18:53.473   pjsua_core.c  STUN server stunserver.org resolved,
address is 132.177.123.13:3478
 14:18:54.308      pasound.c  PortAudio sound library initialized,
status=0
 14:18:54.309      pasound.c  PortAudio host api count=1
 14:18:54.310      pasound.c  Sound device count=1
 14:18:54.313          pjlib  select() I/O Queue created (0x5e7434)
 14:18:54.340 sip_endpoint.c  Module "mod-evsub" registered
 14:18:54.341 sip_endpoint.c  Module "mod-presence" registered
 14:18:54.342 sip_endpoint.c  Module "mod-refer" registered
 14:18:54.344 sip_endpoint.c  Module "mod-pjsua-pres" registered
 14:18:54.346 sip_endpoint.c  Module "mod-pjsua-im" registered
 14:18:54.348 sip_endpoint.c  Module "mod-pjsua-options" registered
 14:18:54.350   pjsua_core.c  1 SIP worker threads created
 14:18:54.351   pjsua_core.c  pjsua version 1.0.2 for
mipsel-unknown-linux-gnu initialized
 14:18:54.353 sip_endpoint.c  Module "mod-default-handler" registered
 14:18:54.576   pjsua_core.c  SIP UDP socket reachable at
58.211.230.86:63553
 14:18:54.579    udp0x5f8970  SIP UDP transport started, published
address is 58.211.230.86:63553
 14:18:54.581    pjsua_acc.c  Account <sip:58.211.230.86:63553> added
with id 0
 14:18:54.589    tcplis:5060  SIP TCP listener ready for incoming
connections at 192.168.100.168:5060
 14:18:54.590    pjsua_acc.c  Account
<sip:192.168.100.168:5060;transport=TCP> added with id 1
 14:18:54.592        icetp00  Creating ICE stream transport with 2
component(s)
 14:18:54.593        icetp00  Comp 1: srflx candidate starts Binding
discovery
 14:18:54.596        icetp00  Comp 1: host candidate
192.168.100.168:42554 added
 14:18:54.597 udprel0x5fe5c0  TURN client session created
 14:18:54.597 udprel0x5fe5c0  State changed Null --> Resolving
 14:18:54.598 udprel0x5fe5c0  State changed Resolving --> Resolved
 14:18:54.599 udprel0x5fe5c0  State changed Resolved --> Allocating
 14:18:54.600        icetp00  Comp 1: TURN relay candidate waiting for
allocation
 14:18:54.603        icetp00  Comp 2: srflx candidate starts Binding
discovery
 14:18:54.608        icetp00  Comp 2: host candidate
192.168.100.168:42618 added
 14:18:54.609 udprel0x604e08  TURN client session created
 14:18:54.611 udprel0x604e08  State changed Null --> Resolving
 14:18:54.612 udprel0x604e08  State changed Resolving --> Resolved
 14:18:54.613 udprel0x604e08  State changed Resolved --> Allocating
 14:18:54.614        icetp00  Comp 2: TURN relay candidate waiting for
allocation
 14:18:54.615        icetp00  ICE stream transport created
 14:18:54.673    pjsua_app.c  NAT detected as Full Cone
 14:18:54.816 stuntp0x5f8b78  STUN mapped address found/changed:
58.211.230.86:64325
 14:18:54.817        icetp00  Comp 1: Binding discovery complete, srflx
address is 58.211.230.86:64325
 14:18:54.827 stuntp0x602908  STUN mapped address found/changed:
58.211.230.86:61805
 14:18:54.828        icetp00  Comp 2: Binding discovery complete, srflx
address is 58.211.230.86:61805
 14:19:02.511 stuntsx0x60244  STUN timeout waiting for response
 14:19:02.512 udprel0x5fe5c0  Allocate error: STUN transaction has timed
out (PJNATH_ESTUNTIMEDOUT)
 14:19:02.512 udprel0x5fe5c0  State changed Allocating --> Deallocated
 14:19:02.513        icetp00  TURN relay failed: STUN transaction has
timed out (PJNATH_ESTUNTIMEDOUT)
 14:19:02.513 udprel0x5fe5c0  Request to shutdown in state Deallocated,
cause:370004
 14:19:02.513 udprel0x5fe5c0  State changed Deallocated --> Destroying
 14:19:02.515  pjsua_media.c  Error initializing ICE media transport:
STUN transaction has timed out (PJNATH_ESTUNTIMEDOUT) [status=370004]
 14:19:02.515 udprel0x604e08  Request to shutdown in state Allocating,
cause:0
 14:19:02.516        icetp00  ICE stream transport destroyed
 14:19:02.982      pasound.c  PortAudio sound library shutting down..
 14:19:02.983   pjsua_core.c  Shutting down...
 14:19:02.984 udprel0x5fe5c0  TURN client session destroyed
 14:19:02.984 stuntsx0x608c8  STUN timeout waiting for response
 14:19:02.984 udprel0x604e08  Request to shutdown in state Deallocated,
cause:0
 14:19:02.985 udprel0x604e08  State changed Deallocated --> Destroying
 14:19:02.992 udprel0x604e08  TURN client session destroyed
 14:19:03.991   pjsua_core.c  Destroying...
 14:19:03.992 sip_transactio  Stopping transaction layer module
 14:19:03.992 sip_endpoint.c  Module "mod-default-handler" unregistered
 14:19:03.992 sip_endpoint.c  Module "mod-pjsua-options" unregistered
 14:19:03.992 sip_endpoint.c  Module "mod-pjsua-im" unregistered
 14:19:03.993 sip_endpoint.c  Module "mod-pjsua-pres" unregistered
 14:19:03.993 sip_endpoint.c  Module "mod-pjsua" unregistered
 14:19:03.993 sip_endpoint.c  Module "mod-stateful-util" unregistered
 14:19:03.993 sip_endpoint.c  Module "mod-refer" unregistered
 14:19:03.993 sip_endpoint.c  Module "mod-presence" unregistered
 14:19:03.994 sip_endpoint.c  Module "mod-evsub" unregistered
 14:19:03.994 sip_endpoint.c  Module "mod-invite" unregistered
 14:19:03.994 sip_endpoint.c  Module "mod-100rel" unregistered
 14:19:03.995 sip_endpoint.c  Module "mod-ua" unregistered
 14:19:03.997 sip_transactio  Transaction layer module destroyed
 14:19:03.997 sip_endpoint.c  Module "mod-tsx-layer" unregistered
 14:19:03.998 sip_endpoint.c  Module "mod-msg-print" unregistered
 14:19:03.998 sip_endpoint.c  Module "mod-pjsua-log" unregistered
 14:19:04.002    tcplis:5060  SIP TCP listener destroyed
 14:19:04.002 sip_endpoint.c  Endpoint 0x5d81b4 destroyed
 14:19:04.003   pjsua_core.c  PJSUA destroyed...
# 
thanks
Charles




[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