<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi,<br>
<br>
The `dump` cmd gives you the data from DB, while the `show` gives
you the data from OpenSIPS memory (via MI). And during runtime,
the in-memory status of a destination may change (due pinging or
script/MI disabling), while the DB status is not change (still,
see
<a class="moz-txt-link-freetext" href="https://opensips.org/html/docs/modules/2.4.x/dispatcher.html#param_persistent_state">https://opensips.org/html/docs/modules/2.4.x/dispatcher.html#param_persistent_state</a>).<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit, Amsterdam, May 2020
<a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2020Amsterdam/">https://www.opensips.org/events/Summit-2020Amsterdam/</a>
OpenSIPS Bootcamp, Miami, March 2020
<a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_Bootcamp_2020/">https://opensips.org/training/OpenSIPS_Bootcamp_2020/</a>
</pre>
<div class="moz-cite-prefix">On 12/18/19 10:10 AM, solarmon wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOXfywME+bRP6KkJPPAHhtFeJq4=hD12wv2oPQymNCxyv9VaWw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr"> Hi,
<div><br>
</div>
<div>A question about the opensipsctl dispatcher show and dump
commands. They seem to show different 'state' for each
endpoint.</div>
<div><br>
</div>
<div>For example:<br>
<div><br>
</div>
<div>When using "opensipsctl dispatcher show":<br>
<br>
+----+-------+------------------------+-----------------------+-------+--------+----------+-------+--------------+<br>
| id | setid | destination | socket
| state | weight | priority | attrs | description |<br>
+----+-------+------------------------+-----------------------+-------+--------+----------+-------+--------------+<br>
| 1 | 1 | <a class="moz-txt-link-freetext" href="sip:A.B.C.D:5060">sip:A.B.C.D:5060</a> | udp:W.X.Y.Z:5060 | 2
| 1 | 0 | | |<br>
<br>
When using "opensipsctl dispatcher dump":<br>
<br>
SET:: 1<br>
URI:: <a class="moz-txt-link-freetext" href="sip:A.B.C.D:5060">sip:A.B.C.D:5060</a> state=Active
first_hit_counter=0<br>
socket:: udp:W.X.Y.Z:5060<br>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Why are the 'state' different? In "opensipsctl dispatcher
show" it says the state is "2", which is for 'Probing' as I
understand it. (and 0 is for "Active"?). But for "opensipsctl
dispatcher dump" it shows it as "Active".<br>
</div>
<div><br>
</div>
<div>On the OpenSIPS Control Panel web GUI, it shows it as DB
State as Active and Memory State as green dot (for Active).</div>
<div><br>
</div>
<div>Why does "opensipsctl dispatcher show" has the state as
"2" for Probing instead of "0" for Active?</div>
<div class="gmail-adL"><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>