problem with stun server list under macos

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

 



Hi
I was configure two stun servers as well:
    my_config->cfg.stun_ignore_failure = PJ_FALSE;
    my_config->cfg.stun_srv_cnt = 2;
    my_config->cfg.stun_srv[0] = pj_str("xx.xx.xx.xx:3480");
    my_config->cfg.stun_srv[1] = pj_str("yy.yy.yy.yy:3480");


But sometimes (maybe it depends from connection quantity) i got transport creation error:

2013-10-28 15:10:22.025 [26927:2207] ========> pjsua version 2.1-svn for Darwin-13.0/x86_64 initialized
2013-10-28 15:10:22.025 [26927:2207] ========> PJSUA state changed: CREATED --> INIT
2013-10-28 15:10:22.025 [26927:2207] ========> Module "mod-default-handler" registered
2013-10-28 15:10:22.025 [26927:2207] pjsua_transport_create start 1
2013-10-28 15:10:22.037 [26927:18903] ========> STUN sending message (transmit count=2)
2013-10-28 15:10:22.077 [26927:18903] ========> Unrecognized attribute type 0x802b
2013-10-28 15:10:22.077 [26927:18903] ========> Unrecognized attribute type 0x802c
2013-10-28 15:10:22.077 [26927:18903] ========> RX 68 bytes STUN message from xx.xx.xx.xx:3480:
--- begin STUN message ---
STUN Binding success response
 Hdr: length=48, magic=2112a442, tsx_id=b721bd8234210ae40001657a
 Attributes:
  MAPPED-ADDRESS: length=8, IPv4 addr=193.108.122.80:56362
  Attr 0x802b: length=8
  Attr 0x802c: length=8
  XOR-MAPPED-ADDRESS: length=8, IPv4 addr=193.108.122.80:56362
--- end of STUN message ---
2013-10-28 15:10:22.078 [26927:18903] ========> STUN mapped address found/changed: 193.108.122.80:56362
2013-10-28 15:10:22.078 [26927:18903] ========> STUN sock 0x102063228 request, ref_cnt=8
2013-10-28 15:10:22.078 [26927:18903] ========> STUN session 0x102063628 destroy request, ref_cnt=8
2013-10-28 15:10:22.079 [26927:18903] ========> STUN client transaction 0x102146c30 stopped, ref_cnt=9
2013-10-28 15:10:22.079 [26927:18903] ========> STUN resolution success, using xx.xx.xx.xx:3480, address is xx.xx.xx.xx:3480
2013-10-28 15:10:26.120  26927:2207] ========> Error contacting STUN server: Received no response from STUN server (PJLIB_UTIL_ESTUNNOTRESPOND) [status=320010]
2013-10-28 15:10:26.121 [26927:2207] pjsua_transport_create error
2013-10-28 15:10:26.121 [26927:18903] ========> tdata 0x102146aa8 destroy request, force=0, tsx=0x102146c30

Some questions:
- why library told that no response, i seen it in logs
- why transport creation fail without try to next stun server as well.
Changes in stun_simple_client.c do not effect:

enum { MAX_REQUEST = 20 };
static int stun_timer[] = {1000, 1000, 1000, 1000 };
#define STUN_MAGIC 0x2112A442

Changes in     my_config->cfg.stun_ignore_failure = PJ_TRUE;
 do not effect too

Any ideas? it happened only under macos build, iphone android working well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20131028/cdaecb3d/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