[SR-Users] pua_json_publish is not realtime...

E. Schmidbauer eschmidbauer at gmail.com
Mon Oct 11 14:16:31 CEST 2021


Can you attach a sip subscribe message and json payload ($rb) which you
expect to send a notify to the subscribe?

On Fri, Oct 8, 2021 at 11:49 AM Jerry Kendall <
Jerry.Kendall at bishophosting.com> wrote:

> Hey there,
>
>
> I have this, as per documentation, that I assume is going to push out the
> publish events real-time as that is what the docs indicate...
>
> ===
>
> event_route[xhttp:request] {
>
> 	$var(call-id) = $(rb{json.parse,Call-ID});
> 	if ($(rb{json.parse,Event-Package}) == "dialog") {
> 		xlog("L_INFO", "$var(call-id)|log|received $(rb{json.parse,Event-Package}) update for $(rb{json.parse,From})");
> 		pua_json_publish($rb);
> 	}
> }
>
> ===
>
> Problem is, it does NOT send out a notification - the BLFs do not change UNTIL the devices do a re-subscribe....
>
> Does anyone know what I am missing?
>
>
> Thanks In Advance....
> Jerry
>
> __________________________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20211011/0d68881b/attachment.htm>


More information about the sr-users mailing list