Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Presence Feature


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
jerry.richards at teot...
Guest





PostPosted: Thu Sep 03, 2009 1:51 pm    Post subject: [Freeswitch-users] Presence Feature Reply with quote

Does Freeswitch support Presence via SIMPLE protocol? Can it maintain
presence? I presume this would be a SUBSCRIBE/NOTIFY arrangement?

Best Regards,
Jerry


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
diego.viola at gmail.com
Guest





PostPosted: Thu Sep 03, 2009 2:33 pm    Post subject: [Freeswitch-users] Presence Feature Reply with quote

Not sure if it does via SIMPLE protocol, but if you do "event plain all" you should see the PRESENCE_IN and PRESENCE_OUT events.

Diego

On Thu, Sep 3, 2009 at 6:40 PM, Jerry Richards <jerry.richards@teotech.com (jerry.richards@teotech.com)> wrote:
Quote:
Does Freeswitch support Presence via SIMPLE protocol?  Can it maintain
presence?  I presume this would be a SUBSCRIBE/NOTIFY arrangement?

Best Regards,
Jerry


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
diego.viola at gmail.com
Guest





PostPosted: Thu Sep 03, 2009 2:33 pm    Post subject: [Freeswitch-users] Presence Feature Reply with quote

I have made a simple script that catches the PRESENCE IN/OUT events and passes them to a method to get the information for the phones, you can take a look at it here.

http://fisheye.freeswitch.org/browse/FreeSWITCH/contrib/diegoviola/ruby/presence/presence.rb?r=14679

Diego

On Thu, Sep 3, 2009 at 7:27 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Not sure if it does via SIMPLE protocol, but if you do "event plain all" you should see the PRESENCE_IN and PRESENCE_OUT events.

Diego


On Thu, Sep 3, 2009 at 6:40 PM, Jerry Richards <jerry.richards@teotech.com (jerry.richards@teotech.com)> wrote:
Quote:
Does Freeswitch support Presence via SIMPLE protocol?  Can it maintain
presence?  I presume this would be a SUBSCRIBE/NOTIFY arrangement?

Best Regards,
Jerry


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




Back to top
lfurrea at gmail.com
Guest





PostPosted: Thu Sep 03, 2009 3:35 pm    Post subject: [Freeswitch-users] Presence Feature Reply with quote

Diego can you explain a little bit further what your script does.

Not really versed into ruby but I certainly interested on these events

On Thu, Sep 3, 2009 at 1:30 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
I have made a simple script that catches the PRESENCE IN/OUT events and passes them to a method to get the information for the phones, you can take a look at it here.

http://fisheye.freeswitch.org/browse/FreeSWITCH/contrib/diegoviola/ruby/presence/presence.rb?r=14679

Diego


On Thu, Sep 3, 2009 at 7:27 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Not sure if it does via SIMPLE protocol, but if you do "event plain all" you should see the PRESENCE_IN and PRESENCE_OUT events.

Diego


On Thu, Sep 3, 2009 at 6:40 PM, Jerry Richards <jerry.richards@teotech.com (jerry.richards@teotech.com)> wrote:
Quote:
Does Freeswitch support Presence via SIMPLE protocol?  Can it maintain
presence?  I presume this would be a SUBSCRIBE/NOTIFY arrangement?

Best Regards,
Jerry


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org









_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
diego.viola at gmail.com
Guest





PostPosted: Thu Sep 03, 2009 3:52 pm    Post subject: [Freeswitch-users] Presence Feature Reply with quote

Hi Luis,

My script simply adds two event hooks for presence (PRESENCE_IN and PRESENCE_OUT) and then it passes those events to a method (presence_handler) and it prints the "from" which is something like: 1000%192.168.0.2 (the user and ip) and the status: which can be Registered or Unregistered.

The script is a daemon, so when you register/unregister a phone you see something like this:

I, [2009-08-29T03:05:20.351467 #3092]  INFO -- : Phone 1000%192.168.0.2 - Unregistered

I, [2009-08-29T03:05:20.864802 #3092]  INFO -- : Phone 1000%192.168.0.2 - Unregistered

I, [2009-08-29T03:05:20.865763 #3092]  INFO -- : Phone 1000%192.168.0.2 - Registered(UDP)

I, [2009-08-29T03:05:21.390911 #3092]  INFO -- : Phone 1000%192.168.0.2 - Registered(UDP)

I, [2009-08-29T03:05:21.391308 #3092]  INFO -- : Phone 1000%192.168.0.2 - Registered(UDP)

I, [2009-08-29T03:05:21.548433 #3092]  INFO -- : Phone 1000%192.168.0.2 - Unregistered


That's pretty much what it does, but this makes it possible to make apps to report the status of phones, etc. I was thinking to send that information on a database and then show it on a web interface, with Ajax, etc. on "near real time", it would be pretty cool Smile.

Let me know if you have any questions or need any help.

Regards,

Diego

On Thu, Sep 3, 2009 at 8:29 PM, Luis F Urrea <lfurrea@gmail.com (lfurrea@gmail.com)> wrote:
Quote:
Diego can you explain a little bit further what your script does.

Not really versed into ruby but I certainly interested on these events


On Thu, Sep 3, 2009 at 1:30 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
I have made a simple script that catches the PRESENCE IN/OUT events and passes them to a method to get the information for the phones, you can take a look at it here.

http://fisheye.freeswitch.org/browse/FreeSWITCH/contrib/diegoviola/ruby/presence/presence.rb?r=14679

Diego


On Thu, Sep 3, 2009 at 7:27 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Not sure if it does via SIMPLE protocol, but if you do "event plain all" you should see the PRESENCE_IN and PRESENCE_OUT events.

Diego


On Thu, Sep 3, 2009 at 6:40 PM, Jerry Richards <jerry.richards@teotech.com (jerry.richards@teotech.com)> wrote:
Quote:
Does Freeswitch support Presence via SIMPLE protocol?  Can it maintain
presence?  I presume this would be a SUBSCRIBE/NOTIFY arrangement?

Best Regards,
Jerry


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org









_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org






_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
diego.viola at gmail.com
Guest





PostPosted: Thu Sep 03, 2009 4:15 pm    Post subject: [Freeswitch-users] Presence Feature Reply with quote

You should try to do something like "event plain all" from the freeswitch CLI and see all the events that you can use in your apps, etc.

The sky is the limit Wink

Diego

On Thu, Sep 3, 2009 at 8:46 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Hi Luis,

My script simply adds two event hooks for presence (PRESENCE_IN and PRESENCE_OUT) and then it passes those events to a method (presence_handler) and it prints the "from" which is something like: 1000%192.168.0.2 (the user and ip) and the status: which can be Registered or Unregistered.

The script is a daemon, so when you register/unregister a phone you see something like this:

I, [2009-08-29T03:05:20.351467 #3092]  INFO -- : Phone 1000%192.168.0.2 - Unregistered

I, [2009-08-29T03:05:20.864802 #3092]  INFO -- : Phone 1000%192.168.0.2 - Unregistered

I, [2009-08-29T03:05:20.865763 #3092]  INFO -- : Phone 1000%192.168.0.2 - Registered(UDP)

I, [2009-08-29T03:05:21.390911 #3092]  INFO -- : Phone 1000%192.168.0.2 - Registered(UDP)

I, [2009-08-29T03:05:21.391308 #3092]  INFO -- : Phone 1000%192.168.0.2 - Registered(UDP)

I, [2009-08-29T03:05:21.548433 #3092]  INFO -- : Phone 1000%192.168.0.2 - Unregistered


That's pretty much what it does, but this makes it possible to make apps to report the status of phones, etc. I was thinking to send that information on a database and then show it on a web interface, with Ajax, etc. on "near real time", it would be pretty cool Smile.

Let me know if you have any questions or need any help.

Regards,

Diego


On Thu, Sep 3, 2009 at 8:29 PM, Luis F Urrea <lfurrea@gmail.com (lfurrea@gmail.com)> wrote:
Quote:
Diego can you explain a little bit further what your script does.

Not really versed into ruby but I certainly interested on these events


On Thu, Sep 3, 2009 at 1:30 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
I have made a simple script that catches the PRESENCE IN/OUT events and passes them to a method to get the information for the phones, you can take a look at it here.

http://fisheye.freeswitch.org/browse/FreeSWITCH/contrib/diegoviola/ruby/presence/presence.rb?r=14679

Diego


On Thu, Sep 3, 2009 at 7:27 PM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Not sure if it does via SIMPLE protocol, but if you do "event plain all" you should see the PRESENCE_IN and PRESENCE_OUT events.

Diego


On Thu, Sep 3, 2009 at 6:40 PM, Jerry Richards <jerry.richards@teotech.com (jerry.richards@teotech.com)> wrote:
Quote:
Does Freeswitch support Presence via SIMPLE protocol?  Can it maintain
presence?  I presume this would be a SUBSCRIBE/NOTIFY arrangement?

Best Regards,
Jerry


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org









_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org






_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





Back to top
tayeb.meftah at gmail.com
Guest





PostPosted: Thu Sep 03, 2009 7:23 pm    Post subject: [Freeswitch-users] Presence Feature Reply with quote

freeswitch support all sip standard featurs including presence/ blf/...
and all featurs that sofia sip support is supported by freeswitch, +
aditional featurs
thanks and welcome to freeswitch!
Jerry Richards wrote:
Quote:
Does Freeswitch support Presence via SIMPLE protocol? Can it maintain
presence? I presume this would be a SUBSCRIBE/NOTIFY arrangement?

Best Regards,
Jerry


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4378 (20090828) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com






__________ Information from ESET NOD32 Antivirus, version of virus signature database 4378 (20090828) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services