25 Jun 2011 @ 7:21 AM 

This was fun. Installed asterisk from ports, version 1.8.

asterisk-gui (which is in /usr/ports/www in case you were looking for it in /usr/ports/net) installs okay. Edited manager.conf and started getting a browser loop. Found a bug report from about a month ago. There is javascript version detection, and it hasn’t been corrected to check for version 1.8, and so it loops badly.

In the file, /usr/local/share/asterisk/static-http/config/js, change the asterisk1.6 to 1.8 like below (highlighted in red):

detectPlatform: function(resp){                sessionData.AsteriskVersionString = resp;                  // logic for platform detection,                if( sessionData.PLATFORM.isAA50 || sessionData.PLATFORM.isABE ){                        if( sessionData.PLATFORM.isAA50 ){                                sessionData.PLATFORM.isOSA = false ;                                sessionData.PLATFORM.isAST_1_4 = false ;                                sessionData.PLATFORM.isAST_1_6 = false ;                                sessionData.listOfCodecs = {                                        ‘ulaw’ : ‘u-law’ ,                                        ‘alaw’ : ‘a-law’ ,                                        ‘gsm’  : ‘GSM’ ,                                        ‘g729’ : ‘G.729A’,                                        ‘g726’ : ‘G.726’ ,                                        ‘g722’ : ‘G.722’                                };                        }                        // ??                }else{                        var resp_lower = resp.toLowerCase();                        if(  resp_lower.contains(“branches/1.4”)  || resp_lower.contains(“asterisk/1.4”) ||  resp_lower.contains(“svn-branch-1.4”) ) {                                sessionData.PLATFORM.isAST_1_4 = true ;                                sessionData.PLATFORM.isAST_1_6 = false ;                        }else if ( resp_lower.contains(“branches/1.6”)  || resp_lower.contains(“asterisk/1.8“) ||  resp_lower.contains(“svn-branch-1.6”) ||  resp_lower.contains(“svn-trunk-“)  ){                                sessionData.PLATFORM.isAST_1_4 = false ;                                sessionData.PLATFORM.isAST_1_6 = true ;                        }else {                                sessionData.PLATFORM.isAST_1_4 = true ;                                sessionData.PLATFORM.isAST_1_6 = false ;                        }                }        },

Posted By: caunter
Last Edit: 25 Jun 2011 @ 07:21 AM

EmailPermalink
Tags
Categories: inputs


 

Responses to this post » (None)

 
Post a Comment

You must be logged in to post a comment.


 Last 50 Posts
 Back
Change Theme...
  • Users » 328
  • Posts/Pages » 47
  • Comments » 1
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

Music



    No Child Pages.