[svn-commits] may: branch 1.8 r341312 - /branches/1.8/addons/chan_ooh323.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Oct 18 18:20:57 CDT 2011


Author: may
Date: Tue Oct 18 18:20:53 2011
New Revision: 341312

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=341312
Log:
fix issue on channel numbering (calls could have same channel number
on heavy loaded system)

Modified:
    branches/1.8/addons/chan_ooh323.c

Modified: branches/1.8/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/addons/chan_ooh323.c?view=diff&rev=341312&r1=341311&r2=341312
==============================================================================
--- branches/1.8/addons/chan_ooh323.c (original)
+++ branches/1.8/addons/chan_ooh323.c Tue Oct 18 18:20:53 2011
@@ -353,10 +353,10 @@
 
 	/* Don't hold a h323 pvt lock while we allocate a channel */
 	ast_mutex_unlock(&i->lock);
+   	ast_mutex_lock(&ooh323c_cn_lock);
    	ch = ast_channel_alloc(1, state, i->callerid_num, i->callerid_name, 
 				i->accountcode, i->exten, i->context, linkedid, i->amaflags,
 				"OOH323/%s-%ld", host, callnumber);
-   	ast_mutex_lock(&ooh323c_cn_lock);
    	callnumber++;
    	ast_mutex_unlock(&ooh323c_cn_lock);
    




More information about the svn-commits mailing list