Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] dynamically change the presence status (half solved + probably found a bug)


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





PostPosted: Wed Apr 29, 2009 2:03 am    Post subject: [Freeswitch-users] dynamically change the presence status (h Reply with quote

I looked at FS code directly and had an improvement about the problem.


Topic 1: presence can be changed and working

The wiki page:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_presence is totally
wrong about the presence
application, indeed when i first asked on IRC some weeks ago i get confused.

On my user page, http://wiki.freeswitch.org/wiki/User:Agx, i posted some
working example.
I tested using X-Lite and Zoiper from my home connecting to FS behind
NAT in the office.



Topic 2: is this a BUG?

1. phone A register and subsribe about presence of B
2. phone B register and A get a notified that B is online (IN)
3. phone B unregister and A get notified that B is offline (OUT)
4. phone B register and A *NEVER* get notified that B is online UNTIL A
register/resubscribe or A reboots

is FS that remove A subscribtions when B generate a presence OUT event?
is this a bug?



Topic 3: presence seems stateless if is not a phone

1. phone A subscribe about presence of test@domain (not a phone) and
about B@domain (a phone)
2. i change test@domain status to busy (using the presence tool) and A
get notified
3. i start a call from B@domain and A get notified
4. i reboot/unregister A
5. i restart/register A then A get notified about B@domain still being
on the phone but not about test@domain been busy

i looked in the code and seems the PRESENCE_PROBE stuffs looks about the
internal database of registrations
to have test@domain been persistence across FS restart/reboot do i need
to create a module myself that handle
presence using a database?



Thanks in advance, Antonio (AGX)


_______________________________________________
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
anthony.minessale at g...
Guest





PostPosted: Wed Apr 29, 2009 7:52 am    Post subject: [Freeswitch-users] dynamically change the presence status (h Reply with quote

On Wed, Apr 29, 2009 at 2:01 AM, Antonio Gallo <gallo@mctelefonia.com (gallo@mctelefonia.com)> wrote:
Quote:
I looked at FS code directly and had an improvement about the problem.


Topic 1: presence can be changed and working

The wiki page:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_presence is totally
wrong about the presence
application, indeed when i first asked on IRC some weeks ago i get confused.

On my user page, http://wiki.freeswitch.org/wiki/User:Agx, i posted some
working example.
I tested using X-Lite and Zoiper from my home connecting to FS behind
NAT in the office.



Topic 2: is this a BUG?

1. phone A register and subsribe about presence of B
2. phone B register and A get a notified that B is online (IN)
3. phone B unregister and A get notified that B is offline (OUT)
4. phone B register and A *NEVER* get notified that B is online UNTIL A
register/resubscribe or A reboots

is FS that remove A subscribtions when B generate a presence OUT event?
is this a bug?


It depends, not every phone does presence right and they all have different levels of support. 
The 2 you are using are very different from how the majority of them work (snom, polycom, linksys etc)
Did you try reversing the role of A and B

 
Quote:


Topic 3: presence seems stateless if is not a phone

1. phone A subscribe about presence of test@domain (not a phone) and
about B@domain (a phone)
2. i change test@domain status to busy (using the presence tool) and A
get notified
3. i start a call from B@domain and A get notified
4. i reboot/unregister A
5. i restart/register A then A get notified about B@domain still being
on the phone but not about test@domain been busy

i looked in the code and seems the PRESENCE_PROBE stuffs looks about the
internal database of registrations
to have test@domain been persistence across FS restart/reboot do i need
to create a module myself that handle
presence using a database?


YES
 
Quote:


Thanks in advance, Antonio (AGX)


_______________________________________________
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



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
gallo at mctelefonia.com
Guest





PostPosted: Wed Apr 29, 2009 8:15 am    Post subject: [Freeswitch-users] dynamically change the presence status (h Reply with quote

Quote:
It depends, not every phone does presence right and they all have different levels of support.
The 2 you are using are very different from how the majority of them work (snom, polycom, linksys etc)
Did you try reversing the role of A and B


I will pickup a snom320 and a gxp 20xx and will try

Quote:
Topic 3: presence seems stateless if is not a phone

Quote:
to create a module myself that handle
presence using a database?
YES



I looked at source code of conferece/fico (that generate presence from XML config) and dingaling (who use database).
So i think its not difficult to write it.
Hope to have free time Smile

Thank you, Antonio (AGX)
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