[OpenSIPS-Users] dashboard stats from opensips

Ben Newlin Ben.Newlin at genesys.com
Thu Apr 4 14:10:28 UTC 2024


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 <users-bounces at lists.opensips.org> on behalf of nz deals <nzdealshelp at gmail.com>
Date: Thursday, April 4, 2024 at 9:56 AM
To: OpenSIPS users mailling list <users at lists.opensips.org>
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 <Ben.Newlin at genesys.com<mailto:Ben.Newlin at genesys.com>> 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 <users-bounces at lists.opensips.org<mailto:users-bounces at lists.opensips.org>> on behalf of nz deals <nzdealshelp at gmail.com<mailto:nzdealshelp at gmail.com>>
Date: Wednesday, April 3, 2024 at 5:38 PM
To: OpenSIPS users mailling list <users at lists.opensips.org<mailto:users at lists.opensips.org>>, Bogdan-Andrei Iancu <bogdan at opensips.org<mailto:bogdan at opensips.org>>
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 <brett at nemeroff.com<mailto:brett at nemeroff.com>> 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 <nzdealshelp at gmail.com<mailto:nzdealshelp at gmail.com>> 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 <Ben.Newlin at genesys.com<mailto:Ben.Newlin at genesys.com>> 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 <users-bounces at lists.opensips.org<mailto:users-bounces at lists.opensips.org>> on behalf of nz deals <nzdealshelp at gmail.com<mailto:nzdealshelp at gmail.com>>
Date: Wednesday, April 3, 2024 at 1:03 PM
To: Bogdan-Andrei Iancu <bogdan at opensips.org<mailto:bogdan at opensips.org>>
Cc: OpenSIPS users mailling list <users at lists.opensips.org<mailto:users at lists.opensips.org>>
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 <bogdan at opensips.org<mailto:bogdan at opensips.org>> 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
> Users at lists.opensips.org<mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240404/5fe19191/attachment-0001.html>


More information about the Users mailing list