Add shell function to set sms-queue max-pending
This commit is contained in:
parent
127fd0f3ad
commit
f0caa13e62
1 changed files with 10 additions and 0 deletions
|
@ -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 "#";'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue