it has to send a publish to update sip_presence using the pidf method.


On Wed, Oct 24, 2012 at 10:55 AM, Gerald Weber <gerald.weber@besharp.at> wrote:

Hi all,

 

i’m currently extending my list_users command to show the presence status of registered sip devices.

I have a snom 360 and a bria softphone here to test with, calling one from the other shows 2 rows in sip_dialogs table so presence

is basically working.

 

Both phones have the ability to set the presence to, e.g. busy or meeting or whatever.

 

The only problem i have is, that there is no line in sip_presence table when i change the presence on the phone (or using presence in)

Digging through the code, i found that this is  because of the if statement in src/mod/endpoints/mod_sofia/sofia_presence.c line 4204

Looks like a check for multiple registrations, but how is this intended to work with only one registration per user ?

I changed the if to if (count > 0)  for testing and i can see the correct entries in sip_registrations.

 

I’m not quite sure if i understand the purpose of this code so i didn’t raise a jira.

Is this a bug ? If not, does the sip_presence table only get filled when there are more than one registration per user ?

 

Thanks

gw

 

 

 

 

 


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900