<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">The parameters exposed by the E_DLG_STATE_CHANGED event are documented [1].<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">They are accessed using the $param notation [2].<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">You can then use load_dialog_ctx [3] and get all the other dialog information you need.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">[1] - <a href="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</a>.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">[2] - <a href="https://www.opensips.org/Documentation/Script-CoreVar-3-4#param">
https://www.opensips.org/Documentation/Script-CoreVar-3-4#param</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">[3] - <a href="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</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Ben Newlin</span><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Users <users-bounces@lists.opensips.org> on behalf of nz deals <nzdealshelp@gmail.com><br>
<b>Date: </b>Wednesday, April 3, 2024 at 5:38 PM<br>
<b>To: </b>OpenSIPS users mailling list <users@lists.opensips.org>, Bogdan-Andrei Iancu <bogdan@opensips.org><br>
<b>Subject: </b>Re: [OpenSIPS-Users] dashboard stats from opensips<o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<table class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td style="border:solid #B60000 1.0pt;background:white;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:#B60000"> EXTERNAL EMAIL - Please use caution with links and attachments <o:p></o:p></span></b></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:Helvetica">
<hr size="1" width="100%" align="center">
</span></div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt">Thank you, Brett. <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">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.<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks<o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">On Thu, 4 Apr 2024 at 10:13, Brett Nemeroff <</span><a href="mailto:brett@nemeroff.com"><span style="font-size:12.0pt">brett@nemeroff.com</span></a><span style="font-size:12.0pt">> wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">I'd recommend using the events and rabbitmq. You should be able to do just about anything with that. <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">What cps are you processing? <o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">On Wed, Apr 3, 2024 at 3:46</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif"> </span><span style="font-size:12.0pt">PM nz deals <</span><a href="mailto:nzdealshelp@gmail.com" target="_blank"><span style="font-size:12.0pt">nzdealshelp@gmail.com</span></a><span style="font-size:12.0pt">>
wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks Ben,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt">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.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Thank you<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Jason<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">On Thu, 4 Apr 2024 at 06:15, Ben Newlin <</span><a href="mailto:Ben.Newlin@genesys.com" target="_blank"><span style="font-size:12.0pt">Ben.Newlin@genesys.com</span></a><span style="font-size:12.0pt">> wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">OpenSIPS will already track some very basic statistics like this for you using the Statistics module.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="https://opensips.org/docs/modules/3.4.x/statistics.html" target="_blank"><span style="font-size:11.0pt">https://opensips.org/docs/modules/3.4.x/statistics.html</span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">For example, the Dialog module exposes concurrent calls.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">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.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Ben Newlin</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<div id="m_-8531168973992678035m_6324705903164054122m_-5469247702632081614mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Users <</span><a href="mailto:users-bounces@lists.opensips.org" target="_blank"><span style="font-size:12.0pt">users-bounces@lists.opensips.org</span></a><span style="font-size:12.0pt;color:black">> on behalf
of nz deals <</span><a href="mailto:nzdealshelp@gmail.com" target="_blank"><span style="font-size:12.0pt">nzdealshelp@gmail.com</span></a><span style="font-size:12.0pt;color:black">><br>
<b>Date: </b>Wednesday, April 3, 2024 at 1:03 PM<br>
<b>To: </b>Bogdan-Andrei Iancu <</span><a href="mailto:bogdan@opensips.org" target="_blank"><span style="font-size:12.0pt">bogdan@opensips.org</span></a><span style="font-size:12.0pt;color:black">><br>
<b>Cc: </b>OpenSIPS users mailling list <</span><a href="mailto:users@lists.opensips.org" target="_blank"><span style="font-size:12.0pt">users@lists.opensips.org</span></a><span style="font-size:12.0pt;color:black">><br>
<b>Subject: </b>Re: [OpenSIPS-Users] dashboard stats from opensips</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td style="border:solid #B60000 1.0pt;background:white;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:#B60000"> EXTERNAL EMAIL - Please use caution with links and attachments </span></b><span style="font-size:12.0pt"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt;font-family:Helvetica"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:Helvetica">
<hr size="0" width="100%" align="center">
</span></div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">Hi Bogdan,<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span style="font-size:12.0pt">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.<br>
<br>
<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">Thank you<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">Regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">Jason<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">On Thu, 4 Apr 2024 at 03:27, Bogdan-Andrei Iancu <</span><a href="mailto:bogdan@opensips.org" target="_blank"><span style="font-size:12.0pt">bogdan@opensips.org</span></a><span style="font-size:12.0pt">>
wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span style="font-size:12.0pt">Hi Jason,<br>
<br>
Have you checked the Dashboard in OpenSIPS Control Panel ?<br>
<br>
Regards,<br>
<br>
Bogdan-Andrei Iancu<br>
<br>
OpenSIPS Founder and Developer<br>
</span><a href="https://www.opensips-solutions.com" target="_blank"><span style="font-size:12.0pt">https://www.opensips-solutions.com</span></a><span style="font-size:12.0pt"><br>
</span><a href="https://www.siphub.com" target="_blank"><span style="font-size:12.0pt">https://www.siphub.com</span></a><span style="font-size:12.0pt"><br>
<br>
On 03.04.2024 13:54, nz deals wrote:<br>
> Hi everyone,<br>
><br>
> I'm seeking guidance on creating a dashboard. I'm considering saving <br>
> dialog events in Redis (straight from OpenSIPS), allowing my dashboard <br>
> to directly access the Redis cache. Do you think this is a wise <br>
> strategy, or do you have any alternative suggestions? Any expert's <br>
> suggestion will be highly appreciated. In fact if someone has any <br>
> example to check, raise dialog events like call, ringing, 183, <br>
> answered , cancel and bye etc...<br>
><br>
> Thank you<br>
><br>
> Regards,<br>
> Jason<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> </span><a href="mailto:Users@lists.opensips.org" target="_blank"><span style="font-size:12.0pt">Users@lists.opensips.org</span></a><span style="font-size:12.0pt"><br>
> </span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank"><span style="font-size:12.0pt">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt">_______________________________________________<br>
Users mailing list<br>
</span><a href="mailto:Users@lists.opensips.org" target="_blank"><span style="font-size:12.0pt">Users@lists.opensips.org</span></a><span style="font-size:12.0pt"><br>
</span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank"><span style="font-size:12.0pt">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt">_______________________________________________<br>
Users mailing list<br>
</span><a href="mailto:Users@lists.opensips.org" target="_blank"><span style="font-size:12.0pt">Users@lists.opensips.org</span></a><span style="font-size:12.0pt"><br>
</span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank"><span style="font-size:12.0pt">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt">_______________________________________________<br>
Users mailing list<br>
</span><a href="mailto:Users@lists.opensips.org" target="_blank"><span style="font-size:12.0pt">Users@lists.opensips.org</span></a><span style="font-size:12.0pt"><br>
</span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank"><span style="font-size:12.0pt">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>