VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
jerry.richards at teot... Guest
|
|
Back to top |
|
|
diego.viola at gmail.com Guest
|
Posted: Thu Sep 03, 2009 2:33 pm Post subject: [Freeswitch-users] Presence Feature |
|
|
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:
|
|
Back to top |
|
|
diego.viola at gmail.com Guest
|
|
Back to top |
|
|
lfurrea at gmail.com Guest
|
Posted: Thu Sep 03, 2009 3:35 pm Post subject: [Freeswitch-users] Presence Feature |
|
|
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:
|
|
Back to top |
|
|
diego.viola at gmail.com Guest
|
Posted: Thu Sep 03, 2009 3:52 pm Post subject: [Freeswitch-users] Presence Feature |
|
|
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 .
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:
|
|
Back to top |
|
|
diego.viola at gmail.com Guest
|
Posted: Thu Sep 03, 2009 4:15 pm Post subject: [Freeswitch-users] Presence Feature |
|
|
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
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 .
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:
|
|
|
Back to top |
|
|
tayeb.meftah at gmail.com Guest
|
Posted: Thu Sep 03, 2009 7:23 pm Post subject: [Freeswitch-users] Presence Feature |
|
|
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:
__________ 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 |
|
|
|
|
|
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
|