rbrindley: branch 2.0 r4814 - /branches/2.0/config/js/sip.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Jun 1 12:44:12 CDT 2009


Author: rbrindley
Date: Mon Jun  1 12:44:09 2009
New Revision: 4814

URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4814
Log:

- fixed an issue where SIP codecs would improperly select the default codecs


Modified:
    branches/2.0/config/js/sip.js

Modified: branches/2.0/config/js/sip.js
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/js/sip.js?view=diff&rev=4814&r1=4813&r2=4814
==============================================================================
--- branches/2.0/config/js/sip.js (original)
+++ branches/2.0/config/js/sip.js Mon Jun  1 12:44:09 2009
@@ -65,7 +65,7 @@
 	if( c.hasOwnProperty('disallow') ) { disallowed = c['disallow'].split(','); } 
 	var default_selected = ['ulaw','alaw','gsm'];
 	default_selected.each( function(val) {
-		if (!disallowed.contains(val)) {
+		if (!disallowed.contains(val) && !c.hasOwnProperty('allow')) {
 			real_codecs = real_codecs + "," + val;
 		}
 	});




More information about the asterisk-gui-commits mailing list