[asterisk-commits] file: trunk r370177 - /trunk/res/res_rtp_asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 18 10:15:45 CDT 2012


Author: file
Date: Wed Jul 18 10:15:41 2012
New Revision: 370177

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=370177
Log:
Fix a crash in pjnath when starting an ICE connectivity check and immediately destroying the ICE session.

The initial ICE connectivity check is scheduled as a timer item that is to be executed immediately. It is possible for this timer item to start executing while the ICE session it is working on is destroyed. To reduce the chance of this any timer items that need to be immediately executed will be executed within the thread that has started the initial ICE connectivity check.

Modified:
    trunk/res/res_rtp_asterisk.c

Modified: trunk/res/res_rtp_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_rtp_asterisk.c?view=diff&rev=370177&r1=370176&r2=370177
==============================================================================
--- trunk/res/res_rtp_asterisk.c (original)
+++ trunk/res/res_rtp_asterisk.c Wed Jul 18 10:15:41 2012
@@ -489,6 +489,7 @@
 
 	if (pj_ice_sess_create_check_list(rtp->ice, &ufrag, &passwd, ao2_container_count(rtp->remote_candidates), &candidates[0]) == PJ_SUCCESS) {
 		pj_ice_sess_start_check(rtp->ice);
+		pj_timer_heap_poll(timerheap, NULL);
 		rtp->ice_started = 1;
 	}
 }




More information about the asterisk-commits mailing list