Free your Speech

Damien Sandras’ VoIP Blog

Presence Button

Yannick implemented a small script displaying the status information on Ekiga.net.

In order to use it, simply add this to your page :
<script src=”http://www.ekiga.net/status/presence.php?user=YOUR_ID_ON_EKIGA.NET”></script>
where YOUR_ID_ON_EKIGA_NET is simply your username :

(If you can not see how it looks like on the various planets, have a look at my blog directly.)

If you click on the button while the user is online, it should ask Ekiga to call the correct SIP address. This has been tested with Firefox, and it works well.

I would like to thank Yannick for this script, but also Vinicius Depizzol for the button (reusing well-known GNOME icons).

This work is a way to remind that Ekiga is a softphone, but also a platform for the community.

15 Comments so far

  1. Eugenia May 22nd, 2007 8:57 pm

    Damien, looks good, but could you also make a smaller version of the graphic available? About half the width/height?

  2. Damien Sandras May 22nd, 2007 9:26 pm

    Eugenia: Let me ask Yannick…

  3. Yannick May 22nd, 2007 9:36 pm

    Hi Eugenia,

    All I need is a good button. Code will be the same…

    In fact it is as large as it is because I’ve most of the necessary button for displaying real presence (”Away”, “Don’t disturb” and “free for chat” will be added when 3.0 will be released); they all have the same width for easier web design (”Don’t disturb” takes more width than “Call me!”).

    I can try to get rid off the text and only leave icons in the buttons, thus making them smaller. I’ll give a try.

    Regards,
    Yannick

  4. Peteris Krisjanis May 22nd, 2007 10:26 pm

    Personally I already like this version, yeah, smaller version with just presence symbol would also rock. Would be nice to have Inkscape SVG file, for example to make different buttons in different languages.

    Keep up with good work!

  5. Eugenia May 22nd, 2007 11:37 pm

    I was more thinking of these standard buttons like some sites use for RSS, XML and stuff. I created such an example here:
    http://eugenia.blogsome.com//images/disturb.gif

    I can create the rest of the series in that style if you like, just email me with all the needed texts that go on it and I will take care of it (I don\’t have a contact email for you).

    My version is a highly optimized gif at 16 colors, weighing just 300 bytes per graphic and fits easily on most sidebars. With the right ALT and TITLE attributes, it can be easily understandable as to what its function is.

  6. Eugenia May 22nd, 2007 11:38 pm

    To view the image just press “enter” in the url bar and it will load, even if initially says “forbidden”:
    http://eugenia.blogsome.com/images/disturb.gif

  7. Mike May 22nd, 2007 11:39 pm

    “.php”!

  8. David May 23rd, 2007 11:58 am

    Question for Yannick: Does PHP have a good SIP user agent library that you used, or did you roll your own?

  9. Yannick May 24th, 2007 4:40 pm

    @DAvid,

    I’ve no clue.

    I used PHP to dig the SER database (MySQL) and take the infos; in summary the script is just a test on the database and return a javascript code to display images. This is nothing big, really.

    Regards,
    Yannick

  10. TheBonsai May 25th, 2007 7:23 am

    Cool work, Yannick!

    J.

  11. Robert June 6th, 2007 5:22 pm

    Call me paranoid :-P, but can be implemented a version that return some XML?, so i can check it with my own Javascript, I am not too open to link Javascript from outside sources (and i am not trying to saying you guys have bad intentions, just that i am paranoid)

  12. Damien Sandras June 6th, 2007 5:29 pm

    Robert, sure, you can send us the code returning an XML and we will be happy to host it.

  13. Alekibango June 11th, 2007 10:10 pm

    hello. Similar to Robert, i like safety and customization.

    Imho best would be just return the image, so it could be used like this:

    img src=http://…..user=XXXX

    And for people who love to customize things, return json object describing the state. See http://en.wikipedia.org/wiki/JavaScript_Object_Notation for explanation

  14. fisher August 6th, 2007 5:38 pm

    Can you provide just an image? I would like to insert it in «img src=» tag. I know where to point this image ;)
    NB: not all the blog engines allows you to use script tag

  15. Thomas Evdokimoff August 21st, 2007 7:38 pm

    Nice button. Re: different sizes.Its easy to resize with some css. I tried to write it up here, but the code wasn’t accepted.
    Just view the source at
    http://evdokimoff.com/ekiga_presence.html

    Should be easy enough to replace image with your own with some javascript

Leave a reply

- Why ask? This confirms you are a human user!