[SR-Users] Querying presence state from config file

Daniel-Constantin Mierla miconda at gmail.com
Fri Oct 1 09:17:20 CEST 2021


Hello,

if there is a rpc command for that, jsonrpcs has a function to execute
from routing blocks, then jansson module can be used to dissect the rpc
response.

If not and no exiting function in the readmes can help, then it requires
c code to implement a new function.

Cheers,
Daniel

On 01.10.21 09:07, Igor Olhovskiy wrote:
> Hello!
>
> Is there any method of querying presence (dialog) state for particular
> endpoint from config file other than that direct query to presence
> tables in database?
> Idea is to reflect server-side DND state as "confirmed" (talking) , so
> I need to skip certain PUBLISH messages not to reset this state.
>
> -- 
> Best regards,
> Igor
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
Nov 08-11, 2021 (Europe Timezone) - Nov 22-25, 2021 (America Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20211001/ec9d5fc2/attachment.htm>


More information about the sr-users mailing list