Community discussions

MikroTik App
 
nqaben
just joined
Topic Author
Posts: 1
Joined: Wed Feb 21, 2024 8:34 am

sxt lte failover

Wed Feb 21, 2024 8:38 am

morning im trying to make an lte fail over script for sxt lte rb version 7.13 and need to get active sim slot. if i set a variable :cursim [/interface lte settings get sim slot]
:if ($cursim=a) do={:log info message="sim a"}
:if ($cursim=b) do={:log info message="sim b"}

print
both logs show sim a even after switching to sim b

what could i be doing wrong thanks
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26387
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: sxt lte failover

Wed Feb 21, 2024 9:02 am

Post the full script, where you set the variable
 
Danamin
just joined
Posts: 1
Joined: Thu Feb 08, 2024 3:50 pm
Contact:

Re: sxt lte failover

Wed Feb 21, 2024 1:08 pm

Sometimes there may be a short delay between switching the SIM card and reading its active status.
 
martinclaro
Frequent Visitor
Frequent Visitor
Posts: 95
Joined: Sat Sep 28, 2013 6:08 am
Location: Buenos Aires, Argentina
Contact:

Re: sxt lte failover

Sat Feb 24, 2024 12:49 am

Here is a good reference for dual sim scripts: https://wiki.mikrotik.com/wiki/Dual_SIM_Application

Who is online

Users browsing this forum: No registered users and 7 guests