Summary:ASTERISK-21917: [patch] STUN crashes when SIP is bound to ipv4 and ipv6
Reporter:Torrey Searle (tsearle)Labels:
Date Opened:2013-06-18 03:00:48Date Closed:2013-10-08 10:43:05
Versions:11.4.0 Frequency of
Environment:Attachments:( 0) 0023_ipv6_stun_crash.patch
( 1) rtp.conf
( 2) sip.conf
( 3) stun_backtrace
Description:When chan_sip has ICE support enabled and is bound to both ipv4 and ipv6 using the [::] any bind address.  res_rtp will only add ipv6 candidates.  The result of this that asterisk is unable to build a checklist in the case of an ipv4 ICE call and crashes on an assertion failure

My proposed fix is to instruct pjsip to build a list of ipv4 and ipv6 addresses in the case the ipv6 "any interface" has been used
Comments:By: Torrey Searle (tsearle) 2013-06-18 03:14:40.445-0500

included an example config that should be sufficent to reproduce the crash

By: Rusty Newton (rnewton) 2013-06-20 17:29:46.015-0500

Thanks for the report and patch!

By: Kinsey Moore (kmoore) 2013-10-08 10:47:21.106-0500

This has been committed to 11, 12, and trunk with some minor rearrangement. Thanks for the report and the patch!