Hi all.

I recall the question of sending sms through OpenBSC via command-line popped-up 
few
times before. Shall we add attached snippet to openbsc/contrib?
-- 
best regards,
Max, http://fairwaves.co

#!/usr/bin/expect
# Usage: ./sms.exp 123456789 "LOL, sms from hell"
spawn telnet localhost 4242
expect "OpenBSC> "
send "subscriber imsi [lindex $argv 0] sms sender id 1 send [lindex $argv 1]\r"
expect "OpenBSC> "
send "exit\r"

Reply via email to