[OpenSIPS-Users] opensipsctl dispatcher - show and dump
Bogdan-Andrei Iancu
bogdan at opensips.org
Sat Jan 4 10:46:25 EST 2020
Hi,
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
https://opensips.org/html/docs/modules/2.4.x/dispatcher.html#param_persistent_state).
Best regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
OpenSIPS Summit, Amsterdam, May 2020
https://www.opensips.org/events/Summit-2020Amsterdam/
OpenSIPS Bootcamp, Miami, March 2020
https://opensips.org/training/OpenSIPS_Bootcamp_2020/
On 12/18/19 10:10 AM, solarmon wrote:
> Hi,
>
> A question about the opensipsctl dispatcher show and dump commands.
> They seem to show different 'state' for each endpoint.
>
> For example:
>
> When using "opensipsctl dispatcher show":
>
> +----+-------+------------------------+-----------------------+-------+--------+----------+-------+--------------+
> | id | setid | destination | socket | state | weight |
> priority | attrs | description |
> +----+-------+------------------------+-----------------------+-------+--------+----------+-------+--------------+
> | 1 | 1 | sip:A.B.C.D:5060 | udp:W.X.Y.Z:5060 | 2 | 1
> | 0 | | |
>
> When using "opensipsctl dispatcher dump":
>
> SET:: 1
> URI:: sip:A.B.C.D:5060 state=Active first_hit_counter=0
> socket:: udp:W.X.Y.Z:5060
>
>
> 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".
>
> On the OpenSIPS Control Panel web GUI, it shows it as DB State as
> Active and Memory State as green dot (for Active).
>
> Why does "opensipsctl dispatcher show" has the state as "2" for
> Probing instead of "0" for Active?
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200104/c8b3d927/attachment-0001.html>
More information about the Users
mailing list