What is the purpose of presence?

I am using Linphone as the SIP Phone and in my Asterisk console, I see a warning:

[Nov 5 01:13:01] WARNING[232829]: res_pjsip_pubsub.c:3391 pubsub_on_rx_publish_request: No registered publish handler for event presence from 2000

Am I just missing something in sorcery.conf or is there more to put? I do have allow_subscribe = yes set for the endpoints but I have nothing set in sorcery.conf.

Calls connect fine, so I’m not quite sure what is the purpose of this online presence. I saw a comment on this forum stating that the presence function is only for Sangoma D series phones, but I’d still like to get an idea on what exactly is possible with this presence feature.

In Asterisk from non-Sangoma phones? Nothing. From a general sense it allows a device to, well, publish its presence information (do not disturb, etc).

1 Like

Oh, cool! That sounds useful. Is this a proprietary protocol or is there an RFC for it that I can use to implement a presence module?

There are RFCs for the standard ones, looking at the actual SIP traffic itself you can see the content type in use to determine which one. There’s no real end to end documentation, though, on how to implement the support in conjunction with the Asterisk core to make such information available and use it.

1 Like