[Freeswitch-dev] Question about sofia_presence.c

Anthony Minessale anthony.minessale at gmail.com
Wed Oct 24 22:00:40 MSD 2012


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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at 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 at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121024/3af7bce1/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list