[asterisk-bugs] [JIRA] (ASTERISK-23634) Asterisk crash on multiple (7-10) concurrent WebRTC (avpg/encryption/icesupport) calls

Roman Skvirsky (JIRA) noreply at issues.asterisk.org
Tue Apr 15 06:45:18 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=217338#comment-217338 ] 

Roman Skvirsky commented on ASTERISK-23634:
-------------------------------------------

STUN and TURN are also enabled:

rtp.conf

; Address to use for the STUN server when determining the external IP address and port
; an RTP session can be reached at. This option is disabled by default.
stunaddr=stun.l.google.com:19302
;
; Address to use for the TURN relay server when creating a TURN relay session. This option
; is disabled by default.
turnaddr=x.x.x.x
;
; Port used to contact the TURN relay server on. This option is set to 34780 by default.
turnport=3478
;
; Username used to authenticate with TURN relay server.
turnusername=xxxxx
;
; Password used to authenticate with TURN relay server.
turnpassword=xxxxx

> Asterisk crash on multiple (7-10) concurrent WebRTC (avpg/encryption/icesupport) calls
> --------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-23634
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23634
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_nat
>    Affects Versions: 12.0.0, 12.1.1
>         Environment: Asterisk (12.1.1, 12.0.0, trunk-412327),
> Ubuntu 12.04 (Linux i3.8.0-35-generic #52~precise1-Ubuntu SMP Thu Jan 30 17:24:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux),
> pjproject (https://github.com/asterisk/pjproject/) - dated 15.05.2014,
> libsrtp-1.4.4
>            Reporter: Roman Skvirsky
>
> Crashes on multime (7-10 concurrent calls). Can be reproduced with sipp tester.
> Calls made via SIP/UDP
> Prerequisites: 
> sip.conf:
> avpf=yes
> nat=yes
> encryption=yes
> icesupport=yes
> SDP to send:
> v=0
> o=- 859838542390661385 2 IN IP4 [local_ip]
> s=-
> t=0 0
> a=group:BUNDLE audio
> a=msid-semantic:WMS ARDAMS
> m=audio [media_port] RTP/SAVPF 103 111 9 102 0 8 106 105 13 127 126
> c=IN IP4 [local_ip]
> a=rtcp:46718 IN IP4 [local_ip]
> a=candidate:1073307297 1 udp 2122129151 [local_ip] 46718 typ host generation 0
> a=candidate:1073307297 2 udp 2122129151 [local_ip] 46718 typ host generation 0
> a=candidate:1903862353 1 tcp 1518149375 [local_ip] 32995 typ host generation 0
> a=candidate:1903862353 2 tcp 1518149375 [local_ip] 32995 typ host generation 0
> a=ice-ufrag:Vct0L5nW18FBbUaj
> a=ice-pwd:29EebhS1pD2bKbFR4IQ80J9F
> a=ice-options:google-ice
> a=mid:audio
> a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
> a=sendrecv
> a=rtcp-mux
> a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:T6m3YKv7XtaCND/XrFl7ExsDRdAGXw227NQSCByA
> a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:7WyR0QSShX6pVeXTD3+GSmJf/2XP+DDz53zQZDt7
> a=rtpmap:103 ISAC/16000
> a=rtpmap:111 opus/48000/2
> a=fmtp:111 minptime=10
> a=rtpmap:9 G722/8000
> a=rtpmap:102 ILBC/8000
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:106 CN/32000
> a=rtpmap:105 CN/16000
> a=rtpmap:13 CN/8000
> a=rtpmap:127 red/8000
> a=rtpmap:126 telephone-event/8000
> a=maxptime:60
> a=ssrc:3000605325 cname:yk9j/ZBeDy5G9V2a
> a=ssrc:3000605325 msid:ARDAMS ARDAMSa0
> a=ssrc:3000605325 mslabel:ARDAMS
> a=ssrc:3000605325 label:ARDAMSa0
> Backtrace:
> core was generated by `./asterisk -C ../etc/asterisk/asterisk.conf -c -g'.
> Program terminated with signal 6, Aborted.
> #0  0x00007f9cb565f425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
> 64	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
> (gdb) bt
> #0  0x00007f9cb565f425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
> #1  0x00007f9cb5662b8b in __GI_abort () at abort.c:91
> #2  0x00007f9cb56580ee in __assert_fail_base (fmt=<optimized out>, assertion=0x7f9cb0e98720 "!pj_list_empty(&ioqueue->free_list)", 
>     file=0x7f9cb0e984a0 "../src/pj/ioqueue_select.c", line=<optimized out>, function=<optimized out>) at assert.c:94
> #3  0x00007f9cb5658192 in __GI___assert_fail (assertion=0x7f9cb0e98720 "!pj_list_empty(&ioqueue->free_list)", file=0x7f9cb0e984a0 "../src/pj/ioqueue_select.c", 
>     line=352, function=0x7f9cb0e98970 "pj_ioqueue_register_sock2") at assert.c:103
> #4  0x00007f9cb0e85c39 in pj_ioqueue_register_sock2 () from /usr/local/lib/libpj.so.2
> #5  0x00007f9cb0e8a2f7 in pj_activesock_create () from /usr/local/lib/libpj.so.2
> #6  0x00007f9c724d73e8 in turn_on_state () from /usr/local/lib/libpjnath.so.2
> #7  0x00007f9c724d5366 in pj_turn_session_set_server () from /usr/local/lib/libpjnath.so.2
> #8  0x00007f9c724d7915 in pj_turn_sock_alloc () from /usr/local/lib/libpjnath.so.2
> #9  0x00007f9c69d46f1a in rtp_add_candidates_to_ice (instance=0x7f9c88dc1908, rtp=0x7f9c88dc84e0, addr=0x7f9c4a5e7f60, port=<optimized out>, component=1, 
>     transport=1, turn_cb=0x7f9c69f54b90, turn_sock=0x7f9c88dcaae0) at res_rtp_asterisk.c:1718
> #10 0x00007f9c69d47ad6 in ast_rtp_new (instance=0x7f9c88dc1908, sched=0x3577bc0, addr=0x7f9c4a5e7f60, data=<optimized out>) at res_rtp_asterisk.c:1855
> #11 0x0000000000596ccc in ast_rtp_instance_new (engine_name=0x7f9c88d45b4c "asterisk", sched=0x3577bc0, sa=0x7f9c4a5e8020, data=0x0) at rtp_engine.c:398
> #12 0x00007f9c6ad93656 in dialog_initialize_rtp (dialog=0x7f9c88dd2228) at chan_sip.c:5994
> #13 0x00007f9c6addc520 in check_peer_ok (p=0x7f9c88dd2228, of=0x7f9c4a5e8675 "test5", req=0x7f9c4a5e9250, sipmethod=5, addr=0x7f9c4a5e9cc0, 
>     authpeer=0x7f9c4a5e8bf0, reliable=XMIT_RELIABLE, calleridname=0x7f9c4a5e8770 "", uri2=0x7f9c4a5e84d0 "sip:1111 at 54.86.2.105:5060") at chan_sip.c:18767
> #14 0x00007f9c6addd455 in check_user_full (p=0x7f9c88dd2228, req=0x7f9c4a5e9250, sipmethod=5, uri=0x7f9c88a4e25f "sip:1111 at 54.86.2.105:5060", 
>     reliable=XMIT_RELIABLE, addr=0x7f9c4a5e9cc0, authpeer=0x7f9c4a5e8bf0) at chan_sip.c:18884
> #15 0x00007f9c6adfeeeb in handle_request_invite (p=0x7f9c88dd2228, req=0x7f9c4a5e9250, addr=0x7f9c4a5e9cc0, seqno=1, recount=0x7f9c4a5e9200, 
>     e=0x7f9c88a4e25f "sip:1111 at 54.86.2.105:5060", nounlock=0x7f9c4a5e9204) at chan_sip.c:25701
> #16 0x00007f9c6ae0b436 in handle_incoming (p=0x7f9c88dd2228, req=0x7f9c4a5e9250, addr=0x7f9c4a5e9cc0, recount=0x7f9c4a5e9200, nounlock=0x7f9c4a5e9204)
>     at chan_sip.c:28240
> #17 0x00007f9c6ae0bfcb in handle_request_do (req=0x7f9c4a5e9250, addr=0x7f9c4a5e9cc0) at chan_sip.c:28449
> #18 0x00007f9c6ae0bbb4 in sipsock_read (id=0x7f9c8800a1f0, fd=10, events=1, ignore=0x0) at chan_sip.c:28380
> #19 0x0000000000531d01 in ast_io_wait (ioc=0x18d4e60, howlong=291) at io.c:292
> #20 0x00007f9c6ae0dd8d in do_monitor (data=0x0) at chan_sip.c:29012
> #21 0x00000000005f706f in dummy_start (data=0x3d386c0) at utils.c:1169
> #22 0x00007f9cb3b4de9a in start_thread (arg=0x7f9c4a5ea700) at pthread_create.c:308
> #23 0x00007f9cb571d3fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
> #24 0x0000000000000000 in ?? ()



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list