1.2 detects my NAT as Blocked

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

 



Hi Alexei,

thanks for the report. I just tried the sipgate STUN server and it seems to
work though.

Having said that, we could have a valid case here. In 1.2. we added SOFTWARE
attribute in all outgoing STUN requests, as recommended (SHOULD strength) by
RFC 5389. If the STUN server implements the old RFC 3489 (and in the case of
NAT type detection, it should, as this will only work with RFC 3489
compliant servers), this attribute may break it, as the SOFTWARE attribute
is not part of the older RFC and the padding rule is different for both
RFC's.

I've just fixed this in sipit24 branch (will integrate to trunk soon).

cheers
 Benny


On Sat, May 16, 2009 at 9:35 PM, Alexei Kuznetsov <eofster at gmail.com> wrote:

> Hi,
>
> Starting from pjproject-1.2, it detects my NAT as Blocked. Below there's
> also an output with Port Restricted type from 1.1 and the same hardware. The
> actual type of my NAT is probably Port Restricted.
>
> ==========
> pjproject-1.2
> ==========
>
> $ ./pjsua-i386-apple-darwin9.6.0 --stun-srv=stun.sipgate.net:10000--app-log-level=5
>  16:23:49.691 os_core_unix.c  pjlib 1.2 for POSIX initialized
>  16:23:49.693 sip_endpoint.c  Creating endpoint instance...
>  16:23:49.693          pjlib  select() I/O Queue created (0x195094)
>  16:23:49.693 sip_endpoint.c  Module "mod-msg-print" registered
>  16:23:49.693 sip_transport.  Transport manager created.
>  16:23:49.693 sip_endpoint.c  Module "mod-pjsua-log" registered
>  16:23:49.694 sip_endpoint.c  Module "mod-tsx-layer" registered
>  16:23:49.694 sip_endpoint.c  Module "mod-stateful-util" registered
>  16:23:49.694 sip_endpoint.c  Module "mod-ua" registered
>  16:23:49.694 sip_endpoint.c  Module "mod-100rel" registered
>  16:23:49.694 sip_endpoint.c  Module "mod-pjsua" registered
>  16:23:49.694 sip_endpoint.c  Module "mod-invite" registered
>  16:23:49.694   pjsua_core.c  STUN server stun.sipgate.net:10000 resolved,
> address is 217.10.79.2:10000
>  16:23:49.822       pa_dev.c  PortAudio sound library initialized, status=0
>  16:23:49.823       pa_dev.c  PortAudio host api count=1
>  16:23:49.823       pa_dev.c  Sound device count=6
>  16:23:49.823          pjlib  select() I/O Queue created (0x81a214)
>  16:23:49.823   conference.c  Creating conference bridge with 254 ports
>  16:23:49.823   conference.c  Sound device successfully created for port 0
>  16:23:49.836  natck0x823600  Local address is 192.168.1.10:55654
>  16:23:49.836  natck0x823600  Server set to 217.10.79.2:10000
>  16:23:49.836  natck0x823600  Performing Test I: Binding request to
> 217.10.79.2:10000
>  16:23:49.836  natck0x823600  TX 44 bytes STUN message to
> 217.10.79.2:10000:
> --- begin STUN message ---
> STUN Binding request
>  Hdr: length=24, magic=122ac76d, tsx_id=368ace6c52f6306d00000000
>  Attributes:
>  CHANGE-REQUEST: length=4, value=0 (0x0)
>  SOFTWARE: length=10, value="pjnath-1.2"
> --- end of STUN message ---
>
>  16:23:49.837 stuntsx0x82974  STUN client transaction created
>  16:23:49.837 stuntsx0x82974  STUN sending message (transmit count=1)
>  16:23:49.837 sip_endpoint.c  Module "mod-evsub" registered
>  16:23:49.837 sip_endpoint.c  Module "mod-presence" registered
>  16:23:49.837        evsub.c  Event pkg "presence" registered by
> mod-presence
>  16:23:49.837 sip_endpoint.c  Module "mod-refer" registered
>  16:23:49.837        evsub.c  Event pkg "refer" registered by mod-refer
>  16:23:49.837 sip_endpoint.c  Module "mod-pjsua-pres" registered
>  16:23:49.837 sip_endpoint.c  Module "mod-pjsua-im" registered
>  16:23:49.837 sip_endpoint.c  Module "mod-pjsua-options" registered
>  16:23:49.837   pjsua_core.c  1 SIP worker threads created
>  16:23:49.837   pjsua_core.c  pjsua version 1.2 for i386-apple-darwin9.6.0
> initialized
>  16:23:49.837 sip_endpoint.c  Module "mod-default-handler" registered
>  16:23:49.887  natck0x823600  Performing Test II: Binding request with
> change address and port request to 217.10.79.2:10000
>  16:23:49.887  natck0x823600  TX 44 bytes STUN message to
> 217.10.79.2:10000:
> --- begin STUN message ---
> STUN Binding request
>  Hdr: length=24, magic=77d2f8b7, tsx_id=3bc6f3d602b2854300000001
>  Attributes:
>  CHANGE-REQUEST: length=4, value=6 (0x6)
>  SOFTWARE: length=10, value="pjnath-1.2"
> --- end of STUN message ---
>
>  16:23:49.887 stuntsx0x82c94  STUN client transaction created
>  16:23:49.887 stuntsx0x82c94  STUN sending message (transmit count=1)
>  16:23:49.894  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:49.895  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:49.896  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:49.896  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:49.896   pjsua_core.c  SIP UDP socket reachable at 91.78.36.43:5060
>  16:23:49.896 sip_transport_  Error setting SO_RCVBUF: No buffer space
> available [120055]
>  16:23:49.896 sip_transport_  Error setting SO_SNDBUF: No buffer space
> available [120055]
>  16:23:49.896    udp0x82ca00  SIP UDP transport started, published address
> is 91.78.36.43:5060
>  16:23:49.896    pjsua_acc.c  Account <sip:91.78.36.43:5060> added with id
> 0
>  16:23:49.897    tcplis:5060  SIP TCP listener ready for incoming
> connections at 192.168.1.10:5060
>  16:23:49.897    pjsua_acc.c  Account <sip:192.168.1.10:5060;transport=TCP>
> added with id 1
>  16:23:49.937 stuntsx0x82974  STUN sending message (transmit count=2)
>  16:23:49.938  natck0x823600  Performing Test III: Binding request with
> change port request to 217.10.79.2:10000
>  16:23:49.939  natck0x823600  TX 44 bytes STUN message to
> 217.10.79.2:10000:
> --- begin STUN message ---
> STUN Binding request
>  Hdr: length=24, magic=1fcabc9c, tsx_id=3724b6124b2d740600000002
>  Attributes:
>  CHANGE-REQUEST: length=4, value=2 (0x2)
>  SOFTWARE: length=10, value="pjnath-1.2"
> --- end of STUN message ---
>
>  16:23:49.939 stuntsx0x82ed4  STUN client transaction created
>  16:23:49.939 stuntsx0x82ed4  STUN sending message (transmit count=1)
>  16:23:49.953  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:49.953  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:49.955  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:49.955  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:49.955  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:49.956  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:49.957  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:49.957  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:49.957  pjsua_media.c  RTP socket reachable at 91.78.36.43:4000
>  16:23:49.957  pjsua_media.c  RTCP socket reachable at 91.78.36.43:4001
>  16:23:49.987 stuntsx0x82c94  STUN sending message (transmit count=2)
>  16:23:50.014  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:50.014  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:50.016  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:50.016  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:50.016  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:50.016  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:50.018  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:50.018  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:50.018  pjsua_media.c  RTP socket reachable at 91.78.36.43:4002
>  16:23:50.018  pjsua_media.c  RTCP socket reachable at 91.78.36.43:4003
>  16:23:50.039 stuntsx0x82ed4  STUN sending message (transmit count=2)
>  16:23:50.075  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:50.075  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:50.080  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:50.080  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:50.080  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:50.080  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:50.080  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:50.080  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:50.080  pjsua_media.c  RTP socket reachable at 91.78.36.43:4004
>  16:23:50.080  pjsua_media.c  RTCP socket reachable at 91.78.36.43:4005
>  16:23:50.137 stuntsx0x82974  STUN sending message (transmit count=3)
>  16:23:50.138  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:50.138  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:50.139  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:50.139  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:50.140  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:50.140  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:50.142  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:23:50.142  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:23:50.142  pjsua_media.c  RTP socket reachable at 91.78.36.43:4006
>  16:23:50.142  pjsua_media.c  RTCP socket reachable at 91.78.36.43:4007
> >>>>
> Account list:
>  [ 0] <sip:91.78.36.43:5060>: does not register
>       Online status: Online
>  *[ 1] <sip:192.168.1.10:5060;transport=TCP>: does not register
>       Online status: Online
> Buddy list:
>  -none-
>
>
> +=============================================================================+
> |       Call Commands:         |   Buddy, IM & Presence:  |     Account:
>    |
> |                              |                          |
>   |
> |  m  Make new call            | +b  Add new buddy       .| +a  Add new
> accnt |
> |  M  Make multiple calls      | -b  Delete buddy         | -a  Delete
> accnt. |
> |  a  Answer call              |  i  Send IM              | !a  Modify
> accnt. |
> |  h  Hangup call  (ha=all)    |  s  Subscribe presence   | rr
>  (Re-)register |
> |  H  Hold call                |  u  Unsubscribe presence | ru  Unregister
>    |
> |  v  re-inVite (release hold) |  t  ToGgle Online status |  >  Cycle next
> ac.|
> |  U  send UPDATE              |  T  Set online status    |  <  Cycle prev
> ac.|
> | ],[ Select next/prev call
>  +--------------------------+-------------------+
> |  x  Xfer call                |      Media Commands:     |  Status &
> Config: |
> |  X  Xfer with Replaces       |                          |
>   |
> |  #  Send RFC 2833 DTMF       | cl  List ports           |  d  Dump status
>   |
> |  *  Send DTMF with INFO      | cc  Connect port         | dd  Dump
> detailed |
> | dq  Dump curr. call quality  | cd  Disconnect port      | dc  Dump config
>   |
> |                              |  V  Adjust audio Volume  |  f  Save config
>   |
> |  S  Send arbitrary REQUEST   | Cp  Codec priorities     |  f  Save config
>   |
>
> +------------------------------+--------------------------+-------------------+
> |  q  QUIT       sleep MS     echo [0|1|txt]        n: detect NAT type
>    |
>
> +=============================================================================+
> You have 0 active call
> >>>  16:23:50.187 stuntsx0x82c94  STUN sending message (transmit count=3)
>  16:23:50.239 stuntsx0x82ed4  STUN sending message (transmit count=3)
>  16:23:50.537 stuntsx0x82974  STUN sending message (transmit count=4)
>  16:23:50.588 stuntsx0x82c94  STUN sending message (transmit count=4)
>  16:23:50.640 stuntsx0x82ed4  STUN sending message (transmit count=4)
>  16:23:51.337 stuntsx0x82974  STUN sending message (transmit count=5)
>  16:23:51.388 stuntsx0x82c94  STUN sending message (transmit count=5)
>  16:23:51.440 stuntsx0x82ed4  STUN sending message (transmit count=5)
>  16:23:52.937 stuntsx0x82974  STUN sending message (transmit count=6)
>  16:23:52.988 stuntsx0x82c94  STUN sending message (transmit count=6)
>  16:23:53.040 stuntsx0x82ed4  STUN sending message (transmit count=6)
>  16:23:56.137 stuntsx0x82974  STUN sending message (transmit count=7)
>  16:23:56.188 stuntsx0x82c94  STUN sending message (transmit count=7)
>  16:23:56.240 stuntsx0x82ed4  STUN sending message (transmit count=7)
>  16:23:57.737 stuntsx0x82974  STUN timeout waiting for response
>  16:23:57.737  natck0x823600  Completed Test I: Binding request,
> status=370004
>  16:23:57.788 stuntsx0x82c94  STUN timeout waiting for response
>  16:23:57.788  natck0x823600  Completed Test II: Binding request with
> change address and port request, status=370004
>  16:23:57.840 stuntsx0x82ed4  STUN timeout waiting for response
>  16:23:57.840  natck0x823600  Completed Test III: Binding request with
> change port request, status=370004
>  16:23:57.840    pjsua_app.c  NAT detected as Blocked
>  16:23:57.840 stuntsx0x82ed4  STUN client transaction destroyed
>  16:23:57.840 stuntsx0x82c94  STUN client transaction destroyed
>  16:23:57.840 stuntsx0x82974  STUN client transaction destroyed
> q
>  16:24:19.302       pa_dev.c  PortAudio sound library shutting down..
>  16:24:19.302   pjsua_core.c  Shutting down...
>  16:24:20.310   pjsua_core.c  Destroying...
>  16:24:20.310 sip_endpoint.c  Destroying endpoing instance..
>  16:24:20.310 sip_transactio  Stopping transaction layer module
>  16:24:20.310 sip_endpoint.c  Module "mod-default-handler" unregistered
>  16:24:20.310 sip_endpoint.c  Module "mod-pjsua-options" unregistered
>  16:24:20.310 sip_endpoint.c  Module "mod-pjsua-im" unregistered
>  16:24:20.310 sip_endpoint.c  Module "mod-pjsua-pres" unregistered
>  16:24:20.310 sip_endpoint.c  Module "mod-pjsua" unregistered
>  16:24:20.310 sip_endpoint.c  Module "mod-stateful-util" unregistered
>  16:24:20.310 sip_endpoint.c  Module "mod-refer" unregistered
>  16:24:20.311 sip_endpoint.c  Module "mod-presence" unregistered
>  16:24:20.311 sip_endpoint.c  Module "mod-evsub" unregistered
>  16:24:20.311 sip_endpoint.c  Module "mod-invite" unregistered
>  16:24:20.311 sip_endpoint.c  Module "mod-100rel" unregistered
>  16:24:20.311 sip_endpoint.c  Module "mod-ua" unregistered
>  16:24:20.311 sip_transactio  Transaction layer module destroyed
>  16:24:20.311 sip_endpoint.c  Module "mod-tsx-layer" unregistered
>  16:24:20.311 sip_endpoint.c  Module "mod-msg-print" unregistered
>  16:24:20.311 sip_endpoint.c  Module "mod-pjsua-log" unregistered
>  16:24:20.311 sip_transport.  Destroying transport manager
>  16:24:20.312    tcplis:5060  SIP TCP listener destroyed
>  16:24:20.312 sip_endpoint.c  Endpoint 0x809464 destroyed
>  16:24:20.313   pjsua_core.c  PJSUA destroyed...
>
>
>
>
>
> ==========
> pjproject-1.1
> ==========
>
> $ ./pjsua-i386-apple-darwin9.6.0 --stun-srv=stun.sipgate.net:10000--app-log-level=5
>  16:26:47.382 os_core_unix.c  pjlib 1.1 for POSIX initialized
>  16:26:47.545 sip_endpoint.c  Creating endpoint instance...
>  16:26:47.546          pjlib  select() I/O Queue created (0x192094)
>  16:26:47.546 sip_endpoint.c  Module "mod-msg-print" registered
>  16:26:47.546 sip_transport.  Transport manager created.
>  16:26:47.546 sip_endpoint.c  Module "mod-pjsua-log" registered
>  16:26:47.546 sip_endpoint.c  Module "mod-tsx-layer" registered
>  16:26:47.546 sip_endpoint.c  Module "mod-stateful-util" registered
>  16:26:47.547 sip_endpoint.c  Module "mod-ua" registered
>  16:26:47.547 sip_endpoint.c  Module "mod-100rel" registered
>  16:26:47.547 sip_endpoint.c  Module "mod-pjsua" registered
>  16:26:47.547 sip_endpoint.c  Module "mod-invite" registered
>  16:26:47.547   pjsua_core.c  STUN server stun.sipgate.net:10000 resolved,
> address is 217.10.79.2:10000
>  16:26:47.682       pa_dev.c  PortAudio sound library initialized, status=0
>  16:26:47.682       pa_dev.c  PortAudio host api count=1
>  16:26:47.682       pa_dev.c  Sound device count=6
>  16:26:47.682          pjlib  select() I/O Queue created (0x819e14)
>  16:26:47.682   conference.c  Creating conference bridge with 254 ports
>  16:26:47.682   conference.c  Sound device successfully created for port 0
>  16:26:47.683  natck0x822600  Local address is 192.168.1.10:55656
>  16:26:47.683  natck0x822600  Server set to 217.10.79.2:10000
>  16:26:47.683  natck0x822600  Performing Test I: Binding request to
> 217.10.79.2:10000
>  16:26:47.683  natck0x822600  TX 28 bytes STUN message to
> 217.10.79.2:10000:
> --- begin STUN message ---
> STUN Binding request
>  Hdr: length=8, magic=37a58779, tsx_id=5461357939fdc63600000000
>  Attributes:
>  CHANGE-REQUEST: length=4, value=0 (0x0)
> --- end of STUN message ---
>
>  16:26:47.683 stuntsx0x82993  STUN client transaction created
>  16:26:47.683 stuntsx0x82993  STUN sending message (transmit count=1)
>  16:26:47.683 sip_endpoint.c  Module "mod-evsub" registered
>  16:26:47.683 sip_endpoint.c  Module "mod-presence" registered
>  16:26:47.683        evsub.c  Event pkg "presence" registered by
> mod-presence
>  16:26:47.683 sip_endpoint.c  Module "mod-refer" registered
>  16:26:47.683        evsub.c  Event pkg "refer" registered by mod-refer
>  16:26:47.683 sip_endpoint.c  Module "mod-pjsua-pres" registered
>  16:26:47.683 sip_endpoint.c  Module "mod-pjsua-im" registered
>  16:26:47.683 sip_endpoint.c  Module "mod-pjsua-options" registered
>  16:26:47.683   pjsua_core.c  1 SIP worker threads created
>  16:26:47.683   pjsua_core.c  pjsua version 1.1 for i386-apple-darwin9.6.0
> initialized
>  16:26:47.683 sip_endpoint.c  Module "mod-default-handler" registered
>  16:26:47.733  natck0x822600  Performing Test II: Binding request with
> change address and port request to 217.10.79.2:10000
>  16:26:47.734  natck0x822600  TX 28 bytes STUN message to
> 217.10.79.2:10000:
> --- begin STUN message ---
> STUN Binding request
>  Hdr: length=8, magic=45b4d78f, tsx_id=63b4110942ca990200000001
>  Attributes:
>  CHANGE-REQUEST: length=4, value=6 (0x6)
> --- end of STUN message ---
>
>  16:26:47.735 stuntsx0x82c93  STUN client transaction created
>  16:26:47.735 stuntsx0x82c93  STUN sending message (transmit count=1)
>  16:26:47.739     stun_msg.c  Unrecognized attribute type 0x8020
>  16:26:47.739  natck0x822600  RX 88 bytes STUN message from
> 217.10.79.2:10000:
> --- begin STUN message ---
> STUN Binding success response
>  Hdr: length=68, magic=37a58779, tsx_id=5461357939fdc63600000000
>  Attributes:
>  MAPPED-ADDRESS: length=8, IPv4 addr=91.78.36.43:55656
>  SOURCE-ADDRESS: length=8, IPv4 addr=217.10.79.2:10000
>  CHANGED-ADDRESS: length=8, IPv4 addr=217.10.79.3:10001
>  ???: length=8
>  SOFTWARE: length=16, value="Vovida.org 0.96"
> --- end of STUN message ---
>
>  16:26:47.739  natck0x822600  Completed Test I: Binding request, status=0
>  16:26:47.741  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.741  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.742  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.742  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.742   pjsua_core.c  SIP UDP socket reachable at 91.78.36.43:5060
>  16:26:47.742 sip_transport_  Error setting SO_RCVBUF: No buffer space
> available [120055]
>  16:26:47.742 sip_transport_  Error setting SO_SNDBUF: No buffer space
> available [120055]
>  16:26:47.742    udp0x82ca00  SIP UDP transport started, published address
> is 91.78.36.43:5060
>  16:26:47.742    pjsua_acc.c  Account <sip:91.78.36.43:5060> added with id
> 0
>  16:26:47.742    tcplis:5060  SIP TCP listener ready for incoming
> connections at 192.168.1.10:5060
>  16:26:47.743    pjsua_acc.c  Account <sip:192.168.1.10:5060;transport=TCP>
> added with id 1
>  16:26:47.787  natck0x822600  Performing Test III: Binding request with
> change port request to 217.10.79.2:10000
>  16:26:47.787  natck0x822600  TX 28 bytes STUN message to
> 217.10.79.2:10000:
> --- begin STUN message ---
> STUN Binding request
>  Hdr: length=8, magic=0f6ed54c, tsx_id=3575787e3339b39d00000002
>  Attributes:
>  CHANGE-REQUEST: length=4, value=2 (0x2)
> --- end of STUN message ---
>
>  16:26:47.787 stuntsx0x82ed3  STUN client transaction created
>  16:26:47.787 stuntsx0x82ed3  STUN sending message (transmit count=1)
>  16:26:47.798  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.798  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.800  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.800  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.800  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.800  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.802  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.802  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.802  pjsua_media.c  RTP socket reachable at 91.78.36.43:4000
>  16:26:47.802  pjsua_media.c  RTCP socket reachable at 91.78.36.43:4001
>  16:26:47.835 stuntsx0x82c93  STUN sending message (transmit count=2)
>  16:26:47.860  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.860  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.861  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.862  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.862  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.862  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.863  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.863  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.863  pjsua_media.c  RTP socket reachable at 91.78.36.43:4002
>  16:26:47.863  pjsua_media.c  RTCP socket reachable at 91.78.36.43:4003
>  16:26:47.887 stuntsx0x82ed3  STUN sending message (transmit count=2)
>  16:26:47.920  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.920  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.922  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.922  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.923  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.923  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.929  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.929  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.929  pjsua_media.c  RTP socket reachable at 91.78.36.43:4004
>  16:26:47.929  pjsua_media.c  RTCP socket reachable at 91.78.36.43:4005
>  16:26:47.984  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.985  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.986  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.987  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.987  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.987  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.989  stun_simple.c  Warning: unknown attr type 8020 in attr 3.
> Attribute was ignored.
>  16:26:47.989  stun_simple.c  Warning: unknown attr type 8022 in attr 4.
> Attribute was ignored.
>  16:26:47.989  pjsua_media.c  RTP socket reachable at 91.78.36.43:4006
>  16:26:47.989  pjsua_media.c  RTCP socket reachable at 91.78.36.43:4007
> >>>>
> Account list:
>  [ 0] <sip:91.78.36.43:5060>: does not register
>       Online status: Online
>  *[ 1] <sip:192.168.1.10:5060;transport=TCP>: does not register
>       Online status: Online
> Buddy list:
>  -none-
>
>
> +=============================================================================+
> |       Call Commands:         |   Buddy, IM & Presence:  |     Account:
>    |
> |                              |                          |
>   |
> |  m  Make new call            | +b  Add new buddy       .| +a  Add new
> accnt |
> |  M  Make multiple calls      | -b  Delete buddy         | -a  Delete
> accnt. |
> |  a  Answer call              |  i  Send IM              | !a  Modify
> accnt. |
> |  h  Hangup call  (ha=all)    |  s  Subscribe presence   | rr
>  (Re-)register |
> |  H  Hold call                |  u  Unsubscribe presence | ru  Unregister
>    |
> |  v  re-inVite (release hold) |  t  ToGgle Online status |  >  Cycle next
> ac.|
> |  U  send UPDATE              |  T  Set online status    |  <  Cycle prev
> ac.|
> | ],[ Select next/prev call
>  +--------------------------+-------------------+
> |  x  Xfer call                |      Media Commands:     |  Status &
> Config: |
> |  X  Xfer with Replaces       |                          |
>   |
> |  #  Send RFC 2833 DTMF       | cl  List ports           |  d  Dump status
>   |
> |  *  Send DTMF with INFO      | cc  Connect port         | dd  Dump
> detailed |
> | dq  Dump curr. call quality  | cd  Disconnect port      | dc  Dump config
>   |
> |                              |  V  Adjust audio Volume  |  f  Save config
>   |
> |  S  Send arbitrary REQUEST   | Cp  Codec priorities     |  f  Save config
>   |
>
> +------------------------------+--------------------------+-------------------+
> |  q  QUIT       sleep MS     echo [0|1|txt]        n: detect NAT type
>    |
>
> +=============================================================================+
> You have 0 active call
> >>>  16:26:48.035 stuntsx0x82c93  STUN sending message (transmit count=3)
>  16:26:48.087 stuntsx0x82ed3  STUN sending message (transmit count=3)
>  16:26:48.436 stuntsx0x82c93  STUN sending message (transmit count=4)
>  16:26:48.487 stuntsx0x82ed3  STUN sending message (transmit count=4)
>  16:26:49.236 stuntsx0x82c93  STUN sending message (transmit count=5)
>  16:26:49.287 stuntsx0x82ed3  STUN sending message (transmit count=5)
>  16:26:49.739 stuntsx0x82993  STUN client transaction destroyed
>  16:26:50.836 stuntsx0x82c93  STUN sending message (transmit count=6)
>  16:26:50.887 stuntsx0x82ed3  STUN sending message (transmit count=6)
>  16:26:54.036 stuntsx0x82c93  STUN sending message (transmit count=7)
>  16:26:54.087 stuntsx0x82ed3  STUN sending message (transmit count=7)
>  16:26:55.636 stuntsx0x82c93  STUN timeout waiting for response
>  16:26:55.637  natck0x822600  Completed Test II: Binding request with
> change address and port request, status=370004
>  16:26:55.637  natck0x822600  Performing Test IB: Binding request to
> alternate address to 217.10.79.3:10001
>  16:26:55.637  natck0x822600  TX 28 bytes STUN message to
> 217.10.79.3:10001:
> --- begin STUN message ---
> STUN Binding request
>  Hdr: length=8, magic=6cca904e, tsx_id=66c828ae5ee6ec3900000003
>  Attributes:
>  CHANGE-REQUEST: length=4, value=0 (0x0)
> --- end of STUN message ---
>
>  16:26:55.638 stuntsx0x82993  STUN client transaction created
>  16:26:55.638 stuntsx0x82993  STUN sending message (transmit count=1)
>  16:26:55.687 stuntsx0x82ed3  STUN timeout waiting for response
>  16:26:55.687  natck0x822600  Completed Test III: Binding request with
> change port request, status=370004
>  16:26:55.705     stun_msg.c  Unrecognized attribute type 0x8020
>  16:26:55.705  natck0x822600  RX 88 bytes STUN message from
> 217.10.79.3:10001:
> --- begin STUN message ---
> STUN Binding success response
>  Hdr: length=68, magic=6cca904e, tsx_id=66c828ae5ee6ec3900000003
>  Attributes:
>  MAPPED-ADDRESS: length=8, IPv4 addr=91.78.36.43:55656
>  SOURCE-ADDRESS: length=8, IPv4 addr=217.10.79.3:10001
>  CHANGED-ADDRESS: length=8, IPv4 addr=217.10.79.2:10000
>  ???: length=8
>  SOFTWARE: length=16, value="Vovida.org 0.96"
> --- end of STUN message ---
>
>  16:26:55.706  natck0x822600  Completed Test IB: Binding request to
> alternate address, status=0
>  16:26:55.706    pjsua_app.c  NAT detected as Port Restricted
>  16:26:55.706 stuntsx0x82993  STUN client transaction destroyed
>  16:26:55.706 stuntsx0x82ed3  STUN client transaction destroyed
>  16:26:55.706 stuntsx0x82c93  STUN client transaction destroyed
> q
>  16:28:29.008       pa_dev.c  PortAudio sound library shutting down..
>  16:28:29.008   pjsua_core.c  Shutting down...
>  16:28:30.012   pjsua_core.c  Destroying...
>  16:28:30.012 sip_endpoint.c  Destroying endpoing instance..
>  16:28:30.012 sip_transactio  Stopping transaction layer module
>  16:28:30.012 sip_endpoint.c  Module "mod-default-handler" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-pjsua-options" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-pjsua-im" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-pjsua-pres" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-pjsua" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-stateful-util" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-refer" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-presence" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-evsub" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-invite" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-100rel" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-ua" unregistered
>  16:28:30.012 sip_transactio  Transaction layer module destroyed
>  16:28:30.012 sip_endpoint.c  Module "mod-tsx-layer" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-msg-print" unregistered
>  16:28:30.012 sip_endpoint.c  Module "mod-pjsua-log" unregistered
>  16:28:30.012 sip_transport.  Destroying transport manager
>  16:28:30.014    tcplis:5060  SIP TCP listener destroyed
>  16:28:30.014 sip_endpoint.c  Endpoint 0x809864 destroyed
>  16:28:30.014   pjsua_core.c  PJSUA destroyed...
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090519/df96db9b/attachment-0001.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