ndemou Posted March 31, 2009 Report Share Posted March 31, 2009 I'd like to change the favicon displayed for the web pages of pbxnsip. Is there a way to change the default one? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted March 31, 2009 Report Share Posted March 31, 2009 I'd like to change the favicon displayed for the web pages of pbxnsip. Is there a way to change the default one? You can put your own into the html directory (call it "favicon.ico"). But beware - the browser stays with the old one, even if you press F5. At least IE seems to keep it for a long long time. Quote Link to comment Share on other sites More sharing options...
ndemou Posted March 31, 2009 Author Report Share Posted March 31, 2009 You can put your own into the html directory (call it "favicon.ico"). Thanks for the suggestion but I have tried that with no success. I did some tests however and maybe I have a clue about why it's not working. I think that pbxnsip is not serving /favicon.ico except after a successful login. According to wikipedia browsers try to fetch favicon.ico before the user has the chance to login (except MAYBE if the favicon is properly referenced in the html of the page but this doesn't seem to be the case with pbxnsip). If the first attempt fails then they don't try again (at least not until restart of the browser). Here is what you can do to test it yourselves: 0) place a favicon.ico on some pbxnsip installation 1) Open a browser on a PC that has never visited the pbxnsip installation you'll test with (or trust that you can clear every byte your browser keeps cached) 2) try to open pbxnsip-host-name:8080/favicon.ico -- you should not see the favicon.ico saved in /html 3) login to pbxnsip -- (the favicon should not show up next to the url in your address bar) 4) retry to open pbxnsip-host-name:8080/favicon.ico -- you should now see the favicon.ico saved in /html BTW I've seen the same "bugy" behavior with images embedded in the emails pbxnsip sends to it's users (e.g. emails about missed calls have a link to /img/save.gif which does not display unless the user is loged in) Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted March 31, 2009 Report Share Posted March 31, 2009 Thanks for the suggestion but I have tried that with no success. I did some tests however and maybe I have a clue about why it's not working. I think that pbxnsip is not serving /favicon.ico except after a successful login. According to wikipedia browsers try to fetch favicon.ico before the user has the chance to login (except MAYBE if the favicon is properly referenced in the html of the page but this doesn't seem to be the case with pbxnsip). If the first attempt fails then they don't try again (at least not until restart of the browser). Here is what you can do to test it yourselves: 0) place a favicon.ico on some pbxnsip installation 1) Open a browser on a PC that has never visited the pbxnsip installation you'll test with (or trust that you can clear every byte your browser keeps cached) 2) try to open pbxnsip-host-name:8080/favicon.ico -- you should not see the favicon.ico saved in /html 3) login to pbxnsip -- (the favicon should not show up next to the url in your address bar) 4) retry to open pbxnsip-host-name:8080/favicon.ico -- you should now see the favicon.ico saved in /html BTW I've seen the same "bugy" behavior with images embedded in the emails pbxnsip sends to it's users (e.g. emails about missed calls have a link to /img/save.gif which does not display unless the user is loged in) Hmm. During the login session we are allowing certain extensions to be loaded ("jpg css gif js"). "ico" was not on that list. I guess that was the mistake. We add that to the list, next version will have it. Quote Link to comment Share on other sites More sharing options...
ndemou Posted March 31, 2009 Author Report Share Posted March 31, 2009 thanks for the prompt reply/reaction Quote Link to comment Share on other sites More sharing options...
ndemou Posted April 29, 2009 Author Report Share Posted April 29, 2009 we are allowing certain extensions to be loaded ("jpg css gif js") [without requiring a login]. ... We added [.ico] to the list, next version will have it. Can you do the same for .txt? I'm asking because like some others[1] I had to move my pbxnsip to port 80[2] and now I'd like to place a robots.txt instructing google and other robots to stay away. By the way, I did a quick test and .ico seems not to be allowed in v3.3.1.3177 but I'm not sure if the "fix" was supposed to be in this version or the next. ____________ [1] http://www.google.gr/search?q=%22informati...50&filter=0 [2] some clients were having strict clients that blocked 8080 -- most not techies feel uneasy when you ask them to open a port in their firewall Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted April 29, 2009 Report Share Posted April 29, 2009 Can you do the same for .txt? I'm asking because like some others[1] I had to move my pbxnsip to port 80[2] and now I'd like to place a robots.txt instructing google and other robots to stay away. By the way, I did a quick test and .ico seems not to be allowed in v3.3.1.3177 but I'm not sure if the "fix" was supposed to be in this version or the next. ____________ [1] http://www.google.gr/search?q=%22informati...50&filter=0 [2] some clients were having strict clients that blocked 8080 -- most not techies feel uneasy when you ask them to open a port in their firewall Funny... Maybe it helps to increase our position in the google ranking ! Maybe we should just include the robots.txt in the default deployment. Do you have by chance something that we can put in there? Quote Link to comment Share on other sites More sharing options...
saracarrol Posted May 4, 2009 Report Share Posted May 4, 2009 I'd like to change the favicon displayed for the web pages of pbxnsip. Is there a way to change the default one? from your index.html,u find out a text into html tag almost like this <a href=".../.../favicon.jpg"> .from this,just change the new favicon file name and in your images folder,paste the new one and then verify this.it will work. Quote Link to comment Share on other sites More sharing options...
ndemou Posted May 5, 2009 Author Report Share Posted May 5, 2009 Funny... Maybe it helps to increase our position in the google ranking ! Maybe we should just include the robots.txt in the default deployment. Do you have by chance something that we can put in there? I replied a few days ago via email but to keep the thread complete here is my answer again: I was going to use this simple "stay out" robots.txt based on [1]: User-agent: * Disallow: / ____________________ [1] http://www.google.com/support/webmasters/b...py?answer=35302 Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted May 5, 2009 Report Share Posted May 5, 2009 I was going to use this simple "stay out" robots.txt based on [1]: User-agent: * Disallow: / Okay, version 4 will have this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.