Add shell function to set sms-queue max-pending

This commit is contained in:
Keith Whyte 2021-09-15 22:20:37 +02:00
parent 127fd0f3ad
commit f0caa13e62

View file

@ -183,3 +183,13 @@ red ()
send "network\r"; expect "#"; send "bts $bts\r"; expect "#"; send "trx 0\r"; expect "#"; send "max_power_red $red\r";
expect "#"; send "exit\r"; expect "#"; send "exit\r"; expect "#"; send "exit\r"; expect "#"; send "exit\r"; expect "#"'
}
smsq-max()
{
if [ "$1" == "" ]; then
echo "Set max-pending to what?";
return;
fi;
expect -c 'set queue '$1'; set port <% if @osmo_stack != "split" -%>4242<% else -%>4254<% end -%>; spawn telnet localhost $port; expect ">"; send "enable\r"; expect "#"; send "sms-queue max-pending $queue\r"; expect "#";
send "sms-queue trigger\r"; expect "#";'
}