Community discussions

MikroTik App

Search found 3 matches

by zit0
Fri Oct 27, 2023 5:26 pm
Forum: General
Topic: SIP / Gigaset / Neighbor / VoIP
Replies: 1
Views: 1938

SIP / Gigaset / Neighbor / VoIP

I would like to draw attention to a general problem with the compatibility of: Neighbor protocols VS Gigaset VoIP gateways. Simplified configuration: WAN/PPPoE <--> MT <==> switch <--> Gigaset <==>: bonding 2x1Gb eth/802.3ab/mii monitoring/layer2+3/lacp 30s/no 802.1Q voip gateway: Gigaset C530IP @ f...
by zit0
Tue Mar 17, 2020 1:55 am
Forum: General
Topic: Log File Dates & Times seem to be incorrect
Replies: 8
Views: 3839

Re: Log File Dates & Times seem to be incorrect

Without a doubt there is a bug in adding a date to the today LOG row in [/log print] procedure. The problem is with correct verification of the current date taking into account time-zone by PRINT proc. and occur between 00:00:00 and time in which current hour is equal gmt-offset (when in plus). Prin...
by zit0
Sun Feb 02, 2020 3:34 am
Forum: Scripting
Topic: The script returning the day of the week is broken ?
Replies: 0
Views: 2280

The script returning the day of the week is broken ?

The script indicating the day of the week returns incorrect results for leap years.

The script lacks verification of leap years.

Something like that:
:local fully [:pick $date 7 11]
#is the year leap?
:if (($fully%4=0 and $fully%100!=0) or ($fully%400=0)) do={:set sum ($sum - 1)}