<div dir="ltr">Much appreciated Ben,<div><br><div>I was able to test $params so all is good with them. </div><div>I was not able to access attributes which I have set after the create_dialog. </div><div>create_dialog();<br>$dlg_val(caller) = $fu;<br>$dlg_val(callee) = $ru;<br></div><div>i also wanted to access $dlg_val(caller) and $dlg_val(callee) under event_route[E_DLG_STATE_CHANGED]</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 4 Apr 2024 at 11:10, Ben Newlin <<a href="mailto:Ben.Newlin@genesys.com">Ben.Newlin@genesys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg4016312805051398411">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_4016312805051398411WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">The parameters exposed by the E_DLG_STATE_CHANGED event are documented [1].<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">They are accessed using the $param notation [2].<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">You can then use load_dialog_ctx [3] and get all the other dialog information you need.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">[1] - <a href="https://opensips.org/docs/modules/3.4.x/dialog.html#event_E_DLG_STATE_CHANGED" target="_blank">
https://opensips.org/docs/modules/3.4.x/dialog.html#event_E_DLG_STATE_CHANGED</a>.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">[2] - <a href="https://www.opensips.org/Documentation/Script-CoreVar-3-4#param" target="_blank">
https://www.opensips.org/Documentation/Script-CoreVar-3-4#param</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">[3] - <a href="https://opensips.org/docs/modules/3.2.x/dialog.html#func_load_dialog_ctx" target="_blank">
https://opensips.org/docs/modules/3.2.x/dialog.html#func_load_dialog_ctx</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:black">Ben Newlin</span><span style="font-size:11pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div id="m_4016312805051398411mail-editor-reference-message-container">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> on behalf of nz deals <<a href="mailto:nzdealshelp@gmail.com" target="_blank">nzdealshelp@gmail.com</a>><br>
<b>Date: </b>Wednesday, April 3, 2024 at 5:38 PM<br>
<b>To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>>, Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>><br>
<b>Subject: </b>Re: [OpenSIPS-Users] dashboard stats from opensips<u></u><u></u></span></p>
</div>
<div>
<div>
<div>
<table border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td style="border:1pt solid rgb(182,0,0);background:white;padding:0.75pt">
<p class="MsoNormal"><b><span style="font-size:12pt;font-family:Calibri,sans-serif;color:rgb(182,0,0)"> EXTERNAL EMAIL - Please use caution with links and attachments <u></u><u></u></span></b></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Helvetica"><u></u> <u></u></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12pt;font-family:Helvetica">
<hr size="1" width="100%" align="center">
</span></div>
</div>
<p class="MsoNormal"><span style="font-size:12pt">Thank you, Brett. <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12pt">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.<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">Thanks<u></u><u></u></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">On Thu, 4 Apr 2024 at 10:13, Brett Nemeroff <</span><a href="mailto:brett@nemeroff.com" target="_blank"><span style="font-size:12pt">brett@nemeroff.com</span></a><span style="font-size:12pt">> wrote:<u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<p class="MsoNormal"><span style="font-size:12pt">I'd recommend using the events and rabbitmq. You should be able to do just about anything with that. <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">What cps are you processing? <u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">On Wed, Apr 3, 2024 at 3:46</span><span style="font-size:12pt;font-family:Arial,sans-serif"> </span><span style="font-size:12pt">PM nz deals <</span><a href="mailto:nzdealshelp@gmail.com" target="_blank"><span style="font-size:12pt">nzdealshelp@gmail.com</span></a><span style="font-size:12pt">>
wrote:<u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<p class="MsoNormal"><span style="font-size:12pt">Thanks Ben,<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span style="font-size:12pt">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.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">Thank you<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">Regards,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">Jason<u></u><u></u></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">On Thu, 4 Apr 2024 at 06:15, Ben Newlin <</span><a href="mailto:Ben.Newlin@genesys.com" target="_blank"><span style="font-size:12pt">Ben.Newlin@genesys.com</span></a><span style="font-size:12pt">> wrote:<u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">OpenSIPS will already track some very basic statistics like this for you using the Statistics module.</span><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal"><a href="https://opensips.org/docs/modules/3.4.x/statistics.html" target="_blank"><span style="font-size:11pt">https://opensips.org/docs/modules/3.4.x/statistics.html</span></a><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">For example, the Dialog module exposes concurrent calls.</span><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">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:12pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:black">Ben Newlin</span><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><span style="font-size:12pt"><u></u><u></u></span></p>
<div id="m_4016312805051398411m_-8531168973992678035m_6324705903164054122m_-5469247702632081614mail-editor-reference-message-container">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Users <</span><a href="mailto:users-bounces@lists.opensips.org" target="_blank"><span style="font-size:12pt">users-bounces@lists.opensips.org</span></a><span style="font-size:12pt;color:black">> on behalf
of nz deals <</span><a href="mailto:nzdealshelp@gmail.com" target="_blank"><span style="font-size:12pt">nzdealshelp@gmail.com</span></a><span style="font-size:12pt;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:12pt">bogdan@opensips.org</span></a><span style="font-size:12pt;color:black">><br>
<b>Cc: </b>OpenSIPS users mailling list <</span><a href="mailto:users@lists.opensips.org" target="_blank"><span style="font-size:12pt">users@lists.opensips.org</span></a><span style="font-size:12pt;color:black">><br>
<b>Subject: </b>Re: [OpenSIPS-Users] dashboard stats from opensips</span><span style="font-size:12pt"><u></u><u></u></span></p>
</div>
<div>
<div>
<div>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td style="border:1pt solid rgb(182,0,0);background:white;padding:0.75pt">
<p class="MsoNormal"><b><span style="font-size:12pt;font-family:Calibri,sans-serif;color:rgb(182,0,0)"> EXTERNAL EMAIL - Please use caution with links and attachments </span></b><span style="font-size:12pt"><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Helvetica"> </span><span style="font-size:12pt"><u></u><u></u></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12pt;font-family:Helvetica">
<hr size="0" width="100%" align="center">
</span></div>
</div>
<p class="MsoNormal"><span style="font-size:12pt">Hi Bogdan,<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12pt"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span style="font-size:12pt">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>
<u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">Thank you<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"> <u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">Regards,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">Jason<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12pt"> <u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">On Thu, 4 Apr 2024 at 03:27, Bogdan-Andrei Iancu <</span><a href="mailto:bogdan@opensips.org" target="_blank"><span style="font-size:12pt">bogdan@opensips.org</span></a><span style="font-size:12pt">>
wrote:<u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<p class="MsoNormal" style="margin-bottom:12pt"><span style="font-size:12pt">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:12pt">https://www.opensips-solutions.com</span></a><span style="font-size:12pt"><br>
</span><a href="https://www.siphub.com" target="_blank"><span style="font-size:12pt">https://www.siphub.com</span></a><span style="font-size:12pt"><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:12pt">Users@lists.opensips.org</span></a><span style="font-size:12pt"><br>
> </span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank"><span style="font-size:12pt">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</span></a><span style="font-size:12pt"><u></u><u></u></span></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12pt">_______________________________________________<br>
Users mailing list<br>
</span><a href="mailto:Users@lists.opensips.org" target="_blank"><span style="font-size:12pt">Users@lists.opensips.org</span></a><span style="font-size:12pt"><br>
</span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank"><span style="font-size:12pt">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</span></a><span style="font-size:12pt"><u></u><u></u></span></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:12pt">_______________________________________________<br>
Users mailing list<br>
</span><a href="mailto:Users@lists.opensips.org" target="_blank"><span style="font-size:12pt">Users@lists.opensips.org</span></a><span style="font-size:12pt"><br>
</span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank"><span style="font-size:12pt">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</span></a><span style="font-size:12pt"><u></u><u></u></span></p>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:12pt">_______________________________________________<br>
Users mailing list<br>
</span><a href="mailto:Users@lists.opensips.org" target="_blank"><span style="font-size:12pt">Users@lists.opensips.org</span></a><span style="font-size:12pt"><br>
</span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank"><span style="font-size:12pt">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</span></a><span style="font-size:12pt"><u></u><u></u></span></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></blockquote></div>