All of the dlg_vals should be available after calling load_dialog_ctx. We are 
using it that way in our system.

Ben Newlin

From: Users <[email protected]> on behalf of nz deals 
<[email protected]>
Date: Thursday, April 4, 2024 at 9:56 AM
To: OpenSIPS users mailling list <[email protected]>
Subject: Re: [OpenSIPS-Users] dashboard stats from opensips
 EXTERNAL EMAIL - Please use caution with links and attachments

________________________________
Much appreciated Ben,

I was able to test $params so all is good with them.
I was not able to access attributes which I have set after the create_dialog.
create_dialog();
$dlg_val(caller) = $fu;
$dlg_val(callee) = $ru;
i also wanted to access $dlg_val(caller) and $dlg_val(callee) under 
event_route[E_DLG_STATE_CHANGED]

On Thu, 4 Apr 2024 at 11:10, Ben Newlin 
<[email protected]<mailto:[email protected]>> wrote:
The parameters exposed by the E_DLG_STATE_CHANGED event are documented [1].

They are accessed using the $param notation [2].

You can then use load_dialog_ctx [3] and get all the other dialog information 
you need.

[1] - 
https://opensips.org/docs/modules/3.4.x/dialog.html#event_E_DLG_STATE_CHANGED<https://opensips.org/docs/modules/3.4.x/dialog.html#event_E_DLG_STATE_CHANGED>.
[2] - 
https://www.opensips.org/Documentation/Script-CoreVar-3-4#param<https://www.opensips.org/Documentation/Script-CoreVar-3-4#param>
[3] - 
https://opensips.org/docs/modules/3.2.x/dialog.html#func_load_dialog_ctx<https://opensips.org/docs/modules/3.2.x/dialog.html#func_load_dialog_ctx>

Ben Newlin

From: Users 
<[email protected]<mailto:[email protected]>> on 
behalf of nz deals <[email protected]<mailto:[email protected]>>
Date: Wednesday, April 3, 2024 at 5:38 PM
To: OpenSIPS users mailling list 
<[email protected]<mailto:[email protected]>>, Bogdan-Andrei 
Iancu <[email protected]<mailto:[email protected]>>
Subject: Re: [OpenSIPS-Users] dashboard stats from opensips
 EXTERNAL EMAIL - Please use caution with links and attachments

________________________________
Thank you, Brett.
My thoughts have been on events and Redis ;) I'll also explore RabbitMQ, thanks 
for the suggestion. From what I gather, we can utilize E_DLG_STATE_CHANGED 
within the event route. Could you guide me on how to retrieve the 
dialogid/callid and its state? If I can access this information in the 
event_route[E_DLG_STATE_CHANGED], storing the value would be straightforward.

Thanks

On Thu, 4 Apr 2024 at 10:13, Brett Nemeroff 
<[email protected]<mailto:[email protected]>> wrote:
I'd recommend using the events and rabbitmq. You should be able to do just 
about anything with that.

What cps are you processing?

On Wed, Apr 3, 2024 at 3:46 PM nz deals 
<[email protected]<mailto:[email protected]>> wrote:
Thanks Ben,

The issue with the scheduled task is that it introduces a delay. I'm exploring 
methods to enable real-time display. By streaming events directly from 
OpenSIPS, we could achieve live updates on the display.

Thank you

Regards,
Jason


On Thu, 4 Apr 2024 at 06:15, Ben Newlin 
<[email protected]<mailto:[email protected]>> wrote:
OpenSIPS will already track some very basic statistics like this for you using 
the Statistics module.

https://opensips.org/docs/modules/3.4.x/statistics.html<https://opensips.org/docs/modules/3.4.x/statistics.html>

For example, the Dialog module exposes concurrent calls.

We have a scheduled job that queries those stats via MI and pushes them into 
our external metrics system, allowing us to create dashboards from the data.

Ben Newlin

From: Users 
<[email protected]<mailto:[email protected]>> on 
behalf of nz deals <[email protected]<mailto:[email protected]>>
Date: Wednesday, April 3, 2024 at 1:03 PM
To: Bogdan-Andrei Iancu <[email protected]<mailto:[email protected]>>
Cc: OpenSIPS users mailling list 
<[email protected]<mailto:[email protected]>>
Subject: Re: [OpenSIPS-Users] dashboard stats from opensips
 EXTERNAL EMAIL - Please use caution with links and attachments

________________________________
Hi Bogdan,

Yes, something along the lines of the OpenSIPs control panel, but I'm looking 
for very basic statistics, such as the details of currently active calls and a 
straightforward graph displaying concurrent calls.
Thank you

Regards,
Jason

On Thu, 4 Apr 2024 at 03:27, Bogdan-Andrei Iancu 
<[email protected]<mailto:[email protected]>> wrote:
Hi Jason,

Have you checked the Dashboard in OpenSIPS Control Panel ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com<https://www.opensips-solutions.com>
   https://www.siphub.com<https://www.siphub.com>

On 03.04.2024 13:54, nz deals wrote:
> Hi everyone,
>
> I'm seeking guidance on creating a dashboard. I'm considering saving
> dialog events in Redis (straight from OpenSIPS), allowing my dashboard
> to directly access the Redis cache. Do you think this is a wise
> strategy, or do you have any alternative suggestions? Any expert's
> suggestion will be highly appreciated. In fact if someone has any
> example to check, raise dialog events like call, ringing, 183,
> answered , cancel and bye etc...
>
> Thank you
>
> Regards,
> Jason
>
> _______________________________________________
> Users mailing list
> [email protected]<mailto:[email protected]>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to