Hello,
The PUA module is usually used with some of the other pua_* modules, e.g. pua_rpc for
using RPC commands, pua_usrloc for using usrloc information and so on.
Have a look to the pua readme first section, it lists all the modules.
Regarding the general flow, usually you do handle_subscribe(..) from the presence module
in the request_route for a certain event type. If a client is subscribed with the correct
event type to an entity, you can use eg. pua_rpc to generate a NOTIFY for this event type
and entity.
Cheers,
Henning
--
Henning Westerholt –
https://skalatan.de/blog/
Kamailio services –
https://gilawa.com<https://gilawa.com/>
From: Jean-Francois Lemieux <jflemieux(a)mcjconseil.com>
Sent: Saturday, December 31, 2022 3:19 PM
To: sr-users(a)lists.kamailio.org
Subject: [SR-Users] Question about UAC and PUA modules routing behavior
Hello, I have some trouble to figure out how routing works when the request coming from
the kamailio itself (used as a user agent per example) .I try to use presence PUA...
modules. The issue I have is the NOTIFY requests aren't sent to the good destination;
it doesn't seems to obey to the contact or other informations when the device did a
SUBSCRIBE.
I don't want to ask to troubleshoot the presence module directly
I just want to know how Kamailio deals with request coming from Kamailio itself (in the
case of a NOTIFY generated by PUA_... modules
My mains questions are:
Does the pua modules when generating request like NOTIFY will pass through request_route
?
Does the pua modules when generating request like NOTIFY will be sent only when
t_relay() is used or UA kamailio based request bypass all the logic of the Kamailio proxy
behavior ?
I'm trying to understand if I can modify the NOTIFY request to change destination
before the "routing decision" is made by Kamailio
Kamailio 5.6.0 used as :
-proxy to remote pbx for call dialog
-registrar/location server
-media relaying and nat management
-...and I try to use it as a presence server instead to use the pbx behind kamailio